|
NEVERMIND
Lol nevermind, it does this automatically spen you do just ::npc 1
and it's not a spawned npc in spawn.cfg
All my npcs hp is 120, i changed in npc.cfg and it does nothing :/
Anyone know the problem?
Thanks!
use this ::npc
Code:if(playerCommand.startsWith("npc")) { try { int newNPC = Integer.parseInt(playerCommand.substring(4)); if(newNPC > 0) { NPCHandler.spawnNpc(c, newNPC, c.absX, c.absY, c.heightLevel, 0, NPCHandler.getNpcListHP(newNPC), 7, 70, 70, false, false); c.sendMessage("You spawn a Npc."); } else { c.sendMessage("No such NPC."); } } catch(Exception e) { c.sendMessage("Use ::npc [NPC id]"); } }
no problem
« Previous Thread | Next Thread » |
Thread Information |
Users Browsing this ThreadThere are currently 1 users browsing this thread. (0 members and 1 guests) |