Jump to content
  • 0

Save Location Function


Peopleperson49

Question


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

This might seem like a noobie request, especially for me, however... For some reason I can't remember the command to detect a characters location. I just want to be able to detect there exact map, x, and y location. But I don't want to use the memo or save command. Say they kill a monster in prontera. They box pops up and says type the word "Turtle". They mess it up so it they get warped to another room. There they are challenged to kill another monster or complete a task. They pass or fail. Fail they are jailed. Pass they need to go back to the exact location where they came from. Since I never know where this will happen at I can't use preset cordinates. Currently I just use return, but that takes them back to there savepoint. So if they accidently typed the wrong word the first time they have to go all the way back to where they were.

set #antibotmap,"";

set #antibotx,;

set #antiboty,;

warp "#antibotmap",#antibotx,#antiboty;

Peopleperson49

Link to comment
Share on other sites

3 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  75
  • Topics Per Day:  0.02
  • Content Count:  2223
  • Reputation:   593
  • Joined:  10/26/11
  • Last Seen:  

Here's the script command: getmapxy

getmapxy #antibotmap$, #antibotx, #antiboty, 0;

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  218
  • Topics Per Day:  0.05
  • Content Count:  1180
  • Reputation:   141
  • Joined:  01/27/12
  • Last Seen:  

I tried to get that to work but I'm still having issues. When you fail to input the correct word in my anti-bot script it is spost to do the getmapxy and then warp you to the test area. If you pass the test your get warped back to your getmapxy location. However, if you pass it just ignores the warp as if it gave invalid map and coordinates.

Peopleperson49

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  43
  • Reputation:   2
  • Joined:  01/17/12
  • Last Seen:  

you have to paste the code snippet here then, else figure out on your own

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