Jump to content
  • 0

how to limit ticket pass?


Brynner

Question


  • Group:  Members
  • Topic Count:  118
  • Topics Per Day:  0.03
  • Content Count:  1942
  • Reputation:   197
  • Joined:  01/08/12
  • Last Seen:  

for example. i set mithril coins as a ticket pass for you to able to go to this map.

example. you need to have 1 mithril coin for you to alllow to enter pvp_n_1-1. but 1 mithril coin is limited for 5 entry to the map. after you use 5 entry. you need to get another mithril to enter again this map.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  24
  • Reputation:   0
  • Joined:  06/01/12
  • Last Seen:  

Here.. Try this one.

You can view my script here. http://www.mediafire.com/view/?5izu0qyngyalhr4

And the download link is here. http://www.mediafire.com/?5izu0qyngyalhr4

Just pm me if there are any bugs/errors.

Edited by xDeMiGoD
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  2997
  • Reputation:   1130
  • Joined:  05/27/12
  • Last Seen:  

set .@item, 674;
set .@warps, 5;
mes "[Warper]";
if (map_entry) {
 mes "You have "+map_entry+" warps remaining. Warp now?";
 if(select("Warp:Cancel")==2) close;
 set map_entry, map_entry-1;
 warp "pvp_n_1-1",0,0;
 close; }
else if (countitem(.@item)) {
 mes "Oh, so you have a "+getitemname(.@item)+"!";
 mes "I'll let you proceed if you give it to me.";
 if(select("Yes:No")==2) close;
 delitem .@item,1;
 set map_entry, .@warps;
 mes "You have "+map_entry+" warps available.";
 close; }
else {
 mes "You'll need a "+getitemname(.@item)+" before speaking to me.";
 close; }

@xDeMiGoD: Link is broken.

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