[HELP] NPC script, Player DC, goes to a chosen map.

Results 1 to 6 of 6
  1. #1
    Sorcerer Supreme natkemon is offline
    Member +Rank
    Jul 2008 Join Date
    424Posts

    [HELP] NPC script, Player DC, goes to a chosen map.

    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.


  2. #2
    Grand Master StripedCow is offline
    Grand MasterRank
    Jun 2011 Join Date
    813Posts

    Re: [HELP] NPC script, Player DC, goes to a chosen map.

    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

  3. #3
    Sorcerer Supreme natkemon is offline
    Member +Rank
    Jul 2008 Join Date
    424Posts

    Re: [HELP] NPC script, Player DC, goes to a chosen map.

    Quote Originally Posted by StripedCow View Post
    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
    Yes it is a Event

  4. #4
    Grand Master StripedCow is offline
    Grand MasterRank
    Jun 2011 Join Date
    813Posts

    Re: [HELP] NPC script, Player DC, goes to a chosen map.

    Quote Originally Posted by natkemon View Post
    Yes it is a Event
    That's handled in playerExit function of an event script.

  5. #5
    Grand Master Xerixe is offline
    Grand MasterRank
    Apr 2008 Join Date
    MalaysiaLocation
    3,603Posts

    Re: [HELP] NPC script, Player DC, goes to a chosen map.

    Unless if it's not in the event scripts, you could still code it to force warp if they used a NPC upon disconnect.

  6. #6
    Sorcerer Supreme natkemon is offline
    Member +Rank
    Jul 2008 Join Date
    424Posts

    Re: [HELP] NPC script, Player DC, goes to a chosen map.

    Quote Originally Posted by Xerixe View Post
    Unless if it's not in the event scripts, you could still code it to force warp if they used a NPC upon disconnect.
    How do i force the warp through the NPC?



Advertisement