Jump to content
  • 0

R> OnPCMoveToOtherMapEvent


hakuren

Question


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

i don't know if this command is exist but can someone help me with this

i want an npc check if the player is moving to other map without using any mapflag loadevent

and it will say dispbottom "You've move to other map";

is this possible or not?

-<TAB>script<TAB>TestChecker<TAB>-1,{
OnPCMoveToOtherMapEvent:
dispbottom "You've move to other map";
end;
}

Edited by hakuren
Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

I don't know if this will work but you can try.

-<TAB>script<TAB>TestChecker<TAB>-1,{
OnInit:
defpattern 1, "([^:]+):.*\\(@go|@warp|<INSERT OTHER WARP COMMANDS WITH | BETWEEN EACH>)(\\s.*)?","warped";
activatepset 1;
end;

warped:
dispbottom "You've changed maps.";
end;
}

Edited by _Dynosawr_
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

I don't know if this will work but you can try.

-<TAB>script<TAB>TestChecker<TAB>-1,{
OnInit:
defpattern 1, "([^:]+):.*\\(@go|@warp|<INSERT OTHER WARP COMMANDS WITH | BETWEEN EACH>)(\\s.*)?","warped";
activatepset 1;
end;

warped:
dispbottom "You've changed maps.";
end;
}

i mean this npc will check if the player move to other map

like OnPCLoadMapEvent it checks the player if this player move with this set map (ex. prontera mapflag loadevent)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  69
  • Reputation:   10
  • Joined:  05/14/12
  • Last Seen:  

You want it to CHECK if they moved maps? Or you want it to check WHAT map they moved? You need to specify further :\

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  120
  • Topics Per Day:  0.03
  • Content Count:  295
  • Reputation:   6
  • Joined:  12/02/11
  • Last Seen:  

You want it to CHECK if they moved maps? Or you want it to check WHAT map they moved? You need to specify further :\

Check if player moved to other map sir

(ex. player 1 currently at prontera and move to morocc npc will check and says dispbottom "you've moved to other map";.)

so i requesting a new npc command "OnPCMoveToOtherMapEvent".

Edited by hakuren
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...