Jump to content
  • 0

Pay poring coin for VIP


Talon

Question


  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  78
  • Reputation:   1
  • Joined:  09/01/14
  • Last Seen:  

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

 

 

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  666
  • Reputation:   93
  • Joined:  04/27/12
  • Last Seen:  


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;

}

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