Jump to content
  • 0

Warper


Hyoru

Question


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   11
  • Joined:  01/30/12
  • Last Seen:  

Hi. I need a simple warper that checks if you have cash points.

If you have at least 1 CASH you can enter,
but if you dont have cash you cannot enter.

Thanks advanced.

Link to comment
Share on other sites

5 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  183
  • Reputation:   15
  • Joined:  06/10/12
  • Last Seen:  


if(#CASHPOINTS >= 1){ warp "map",x,y; end; } else { mes "you can't have Cashpoints."; close; }

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  45
  • Topics Per Day:  0.01
  • Content Count:  122
  • Reputation:   11
  • Joined:  01/30/12
  • Last Seen:  

Thank you! 

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

if(#CASHPOINTS >= 1){ warp "map",x,y; end; } else { mes "you can't have Cashpoints."; close; }

 

you sure about using end instead of close? isn't

close2;warp "map",x,y;

better than warping then ending?

both works fine. but I guess, when you use the "end" function, if the warp is bugged, then player will be stuck with the NPC dialog window, with no close button and they can't move (solution: relogin or @refresh)

Link to comment
Share on other sites


  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10013
  • Reputation:   2346
  • Joined:  10/28/11
  • Last Seen:  

@Winz

lol...ur method is still end up using the end at the very last line.  /swt

 

if not mistaken, if the warper ever have a bugged warp location, they will still stuck at there no matter you use end or close2

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

@emistry

umm, where?

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