@above, What kind of sucky answer was that o_O You didn't solve his problem at all
OT:
The problem is this:
Code:
if(playerCommand.startsWith("royalzone") && (c.playerRights == 3) && (c.playerRights == 6)) {
c.getPA().spellTeleport(2368, 4957, 0);
c.startAnimation(13288);
c.teleTimer = 8;
c.gfx0(2516);
c.teleEndAnimation = 13285;
}
&& means AND. You can't be 3 AND 6. What you're looking for is OR. Use || instead of &&.
Code:
if(playerCommand.startsWith("royalzone") && (c.playerRights == 3) || (c.playerRights == 6)) {
c.getPA().spellTeleport(2368, 4957, 0);
c.startAnimation(13288);
c.teleTimer = 8;
c.gfx0(2516);
c.teleEndAnimation = 13285;
}
That should work Feel free to rep/thank