Bump. :/
|
|
Well, in NPC.java, here's my code.
The first NPC works, and is facing the right direction, but the second one doesn't change. Anything after the first NPC is ignored. How can I fix this?Code:public int getFaceDirection() { switch(getId()) { case 9713: //Npc Id return 6; //direction case 9711: return 8; } return 1; //direction for npcs not mentioned above (like the default direction) }
Bump. :/

Wrong mystic
Code:public int getFaceDirection() { switch(getId()) { case 9713: //Npc Id return 6; //direction case 9711: return 8; default: return 1; } }

That's because it's pretty much that same as what you have in the first post. Do what Mystic said. It's much easier to tell what's going on.
| « Packet handling | Developer wanted. » |
| Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |