Jump to content
  • 0

how to limit ticket pass?


Question

Posted

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.

2 answers to this question

Recommended Posts

Posted

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.

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...