Talon Posted September 21, 2014 Group: Members Topic Count: 24 Topics Per Day: 0.01 Content Count: 78 Reputation: 1 Joined: 09/01/14 Last Seen: October 22, 2016 Share Posted September 21, 2014 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 Quote Link to comment Share on other sites More sharing options...
GmOcean Posted September 21, 2014 Group: Members Topic Count: 31 Topics Per Day: 0.01 Content Count: 666 Reputation: 93 Joined: 04/27/12 Last Seen: August 17, 2015 Share Posted September 21, 2014 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; } Quote Link to comment Share on other sites More sharing options...
Question
Talon
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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.