Code:case 18: sendOption5("Donator", "", "", "", ""); if (c.isDonator == 1) { c.teleAction = 500; } else { c.sendMessage("This is @red@donators@bla@ only feature."); c.teleAction = -1; return; } break;
|
I know I am missing a small little code, but I honestly can't remember or find for the life of me.case 18:
sendOption5("Donator", "", "", "", "");
if (c.isDonator == 1) {
c.teleAction = 500;
} else {
c.sendMessage("This is @red@donators@bla@ only feature.");
}
break;
The problem is even if a player is not "isDonator == 1" they will still teleport to a random place, and get the message. But if they do have donator status they don't get the message and teleport to the right place.
Anyone?
Code:case 18: sendOption5("Donator", "", "", "", ""); if (c.isDonator == 1) { c.teleAction = 500; } else { c.sendMessage("This is @red@donators@bla@ only feature."); c.teleAction = -1; return; } break;
in ClickingButton.java search forIf you find that line then make sure where its teleporting you is where you wanna go. If you can't find that line then search forCode:teleAction == 500in ClickingButtons, the same class your in, and put something like;Code:case 9190:
Replace what you have in DialogueHandler withCode:if(c.teleAction == 500) { c.getPA().startTeleport(6400 / 2, 6400 / 2, "modern"); c.teleAction = -1; c.sendMessage("You teleport to the center of RuneScape."); }
Code:case 18: sendOption5("Donator", "", "", "", ""); if (c.isDonator == 1) c.teleAction = 500; else { c.sendMessage("This is @red@donators@bla@ only feature."); c.teleAction = -1; c.dialogueAction = -1; } break;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |