Jump to content
  • 0

Recall Map Item


Pneuma

Question


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

*mapwarp "<from map>","<to map>",<x>,<y>;
This command will collect all characters located on the From map and warp them
wholesale to the same point on the To map, or randomly distribute them there if
the coordinates are zero. "Random" is understood as a special To map name and
will mean randomly shuffling everyone on the same map.

I would like to beable to use this command in a Continuous item(Item Type 11) and the item act like:

Uses Item > dispbottom message shows "Input Map to Recall From" : Input Box Shows up > Gets your current location(map,x,y cords) and warps everyone from that map to your spot

Link to comment
Share on other sites

4 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

dispbottom "Input the map players call from.";

input .@mapname$;

getmapxy .@currentmap$,.@x,.@y,0;

mapwarp .@mapname$,.@currentmap$,.@x,.@y;

end;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  33
  • Topics Per Day:  0.01
  • Content Count:  399
  • Reputation:   198
  • Joined:  11/09/11
  • Last Seen:  

script {

mes "Type the map name from which players will be warped.";

next;

input .@mapnamefrom$;

mes "Now, type the map name to which players will be warped.";

next;

input .@mapnameto$;

mapwarp .@mapnamefrom$,.@mapnameto$,100,50;

close;

end;

}

Do one of two things, make the above into a function, or be lazy (and messy) and just place it in the script field for an item. Untested, but should work.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Jtynne, I dont want it to have input for both; I want it to automatically warp everyone from the map you input to your current location; Also like I asked, dispbottom, not message

Edited by Pneuma
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  82
  • Topics Per Day:  0.02
  • Content Count:  846
  • Reputation:   137
  • Joined:  02/26/14
  • Last Seen:  

Thanks

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...