Within a NPC script. How do i make it so that if a player Disconnects, it goes to a certain map?
How do i make it check if all Mobs are killed on the map, then a message cm.sendOk("test"); is input.
Within a NPC script. How do i make it so that if a player Disconnects, it goes to a certain map?
How do i make it check if all Mobs are killed on the map, then a message cm.sendOk("test"); is input.
Last edited by natkemon; 08-07-13 at 06:08 PM.
That wouldn't be a NPC script. Is this for an event?
Second one add to killMonster function or giveExpToChar
if (c.getPlayer().getMap().getAllMonster().size() < 1 && c.getPlayer().getMap().getId() == mapidhere) {
//dosomethinghere
Unless if it's not in the event scripts, you could still code it to force warp if they used a NPC upon disconnect.