Fixed that problem, and it created another one.
|
Spoiler for spoiler:
Ok I fixed this problem, now it created another one.
This code works flawlessly.. for the pillar. Now if i click any other object in the game I get teleported to the inside of the sara pillar.Code:if (object.getId() == 26303 && player.getX() == 2871 && player.getY() == 5279) { if (player.getSkills().getLevel(Skills.RANGE) < 70) ; player.getPackets().sendGameMessage( "You need 70 ranged to access this area."); } else { player.useStairs(9095, new WorldTile(2871, 5269, 2), 2, 1); }
Fixed that problem, and it created another one.
Code:if (object.getId() == 26303 && player.getX() == 2871 && player.getY() == 5279) { if (player.getSkills().getLevel(Skills.RANGE) < 70){ player.getPackets().sendGameMessage( "You need 70 ranged to access this area."); } else { player.useStairs(9095, new WorldTile(2871, 5269, 2), 2, 1); } }
You had this:
A ; means the end of a line. By using { } that means, if conditions in the if statement are met, execute what's between { }.Code:if (player.getSkills().getLevel(Skills.RANGE) < 70);
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |