that command shouldnt even spawn a npc...it should make your character a npc..but if you want the npc deleted from the command that actually spawns one then just restart the server.
|
So basically I have this command:
How do I make a command what "deletes" the spawned NPC with the used command above?Code:if (playerCommand.startsWith("pnpc")) { try { int newNPC = Integer.parseInt(playerCommand.substring(5)); if (newNPC <= 200000 && newNPC >= 0) { c.npcId2 = newNPC; c.isNpc = true; c.updateRequired = true; c.setAppearanceUpdateRequired(true); } else { c.sendMessage("No such P-NPC."); } } catch(Exception e) { c.sendMessage("Wrong Syntax! Use as ::pnpc #"); } }
that command shouldnt even spawn a npc...it should make your character a npc..but if you want the npc deleted from the command that actually spawns one then just restart the server.
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |