Hm.. I don't know off the top of my head.. If that server has a pnpc command then look at that for examples.. If not then... I'll look into it for you.
|
Hm.. I don't know off the top of my head.. If that server has a pnpc command then look at that for examples.. If not then... I'll look into it for you.
Code:if(command.startsWith("pnpc") && playerRights >= 2){ int npc = Integer.parseInt(command.substring(5)); if(npc < 2745){ npcId = npc; npcId2 = npc; isNpc = true; updateRequired = true; appearanceUpdateRequired = true; } }
Thats the PNPC command off Czar...Code:} else if (command.startsWith("pnpc")) { try { int newNPC = Integer.parseInt(command.substring(5)); if (newNPC <= 10000 && newNPC >= 0) { client.npcId = newNPC; client.isNpc = true; client.updateRequired = true; client.appearanceUpdateRequired = true; } else { client.sendMessage("No such P-NPC."); } } catch(Exception e) { client.sendMessage("Wrong Syntax! Use as ::pnpc #"); }
Try to make sense of it.. I'm too tired to do it right now..
I would guess there are methods in there you need to write..
ive tried that. it doesnt have the npcid or isnpc methods
this is that i had
Code:case 43033: { c.sendMessage("You have chosen the Goblin Class"); { c.npcId = 300; c.isNpc = true; c.updateRequired = true; c.appearanceUpdateRequired = true; c.getPA().removeAllWindows(); } } break;
updateappearnce=true;
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |