Recently, I have updated and activated the Rathena VIP system.
Now, I have build a new NPC to exchange CashPoints for VIP status.
//===== Config ===== set $precogmct,300; // Price (in CashPoints) for 15 days set $daysweek,15; //15 days for 2 weeks VIP
function script vipct { mes "I can provide you "+$daysweek+" days of VIP subscription in exchange for "+$precogmct+" CashPoints"; mes "What do you thing?"; if(select("Yes, I want IT!!:No, not for now.") == 2) close; if(#CASHPOINTS < $precogmct){ mes "You don't have enough CASHPOINTS!! Come back later."; close; }
if(getgroupid() == 0 || getgroupid() == 5){ set .@RandomFinalize,rand(100,999); mes "Are you sure you want to exchange ^FF0000"+$precogmct+"^000000 CashPoints? If your 100% sure type the number ^0000FF"+.@RandomFinalize+"^000000."; input .@Finalize; if(.@Finalize!=.@RandomFinalize) { next; mes "You really should thing about it First!."; close; }
atcommand "@vip +"+$daysweek+"d "+strcharinfo(0); //set #CASHPOINTS,#CASHPOINTS - $precogmct; mes "Thank you very Much! We have added "+$daysweek+" days of VIP subscription to your account!"; close; }
mes "Your account level doesn't allow me to give you VIP status. Only normal and VIP account can have VIP status!"; close; }
Question
acidcooler
Hi There,
Recently, I have updated and activated the Rathena VIP system.
Now, I have build a new NPC to exchange CashPoints for VIP status.
However, the atcommand line doesn't work.
This is suposed to make a @vip +15d mycharname.
Can anyone figure it our why doesn't work?
Br,
Link to comment
Share on other sites
7 answers 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.