i added makeglobobj stuff (void) becouse on my server its handled in a cfg file...
its wierd cus it gives no errors (if i use outside con area it sends message) so evrything else is working. it just doesent make obj when i click on case...
here is some stuff you guys might need to help me:
Code:
if(questid == 1)
{
if(playerLevel[24] >= 0)
{
if(absX < 3270 && absX > 3200)
{
if(absY < 2880 && absY > 2810)
{
sendMessage("You Magically Construct A Dummy!");
addSkillXP((5*playerLevel[24]), 24);
makeGlobalObject(absX,absY-1,823,1,10);
} else {
sendMessage("You need to be at the con site... Type ::construction");
}
}
} else {
sendMessage("You need A Higher Construction Level To Make This...");
}
}
my void: (i dident delete the handled stuff so it might somehow not run both....)
Code:
public void makeGlobalObject(int x, int y, int typeID, int orientation, int tileObjectType){ //Makes Global objects
for (Player p : server.playerHandler.players){
if(p != null){
client person = (client)p;
if((person.playerName != null || person.playerName != "null")){
if(person.distanceToPoint(x, y) <= 60){
person.createNewTileObject(x, y, typeID, orientation, tileObjectType);}}}}}
if you guys need more just say what you need and il post.
rep+ for whoever helps me fix!! :lock: