Jump to content
  • 0

Pay poring coin for VIP


Question

Posted

Hi, I need to request a script for paying "quantity" of "poring coins" for "vip" + "duration"? If the correct amount has been paid, then automatically registered to login.sql = vip user and duration countdown?

Please help me :3

 

 

1 answer to this question

Recommended Posts

Posted


mapname,x,y,z script npc_name sprite_id,{

mes "Would you like to trade "+ getitemname(.itemid) +" x"+ .amount +" for VIP time?";

mes "Each set of "+ .amount +" will earn you "+ .vip_time_minutes +" VIP minutes.";

if( select( "YES:NO" ) == 2 || countitem(.itemid) < .amount ) { close; } //Not enough item / clicked close;

next;

mes "How many sets would you like to turn in?";

menu "1 set: 5 sets: 10 sets",-;

switch( @menu ) {

case 1:

delitem .itemid, .amount;

vip_time .vip_time_minutes;

break;

case 5:

if( countitem( .itemid ) < .amount * 5 ){ mes "Sorry, you don't have that much"; close; }

delitem .itemid, .amount*5;

vip_time ( .vip_time_minutes * 5 );

break;

case 10:

if( countitem(.itemid) < .amount * 10 ){ mes "Sorry, you don't have that much"; close; }

delitem .itemid, .amount*10;

vip_time ( .vip_time_minutes * 10 );

break;

}

mes "Thank you. Your VIP status has been updated.";

mes "Your remaining VIP time is: "+ vip_status(3) +"";

close;

}

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