if(!p.withinDistance(blah)) {
npc.walkTo(spawnPointX, spawnPointY);
}
|
Hey i need it so that if u walk a certain amount of squares away from a npc it returns to its origional spawn id.
if possible id like it so i can use different amounts of squars using this:
Code:public static int ToFar(int type) { switch (type) { case 1: case 9: return 3; case 1265: case 1267: return 6; case 100: return 3;
dont tell me 2 rip from devo... i tried so much
^
Code:COMPILING... NPCHandler.java:624: cannot find symbol symbol : variable p location: class NPCHandler if(!p.withinDistance(8)) { ^ NPCHandler.java:625: cannot find symbol symbol : variable spawnPointX location: class NPCHandler walkTo(spawnPointX, spawnPointY); ^ NPCHandler.java:625: cannot find symbol symbol : variable spawnPointY location: class NPCHandler walkTo(spawnPointX, spawnPointY); ^ 3 errors DivinePk - chris Press any key to continue . . .
cmon guys help please
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |