Hello rathena, I made this script, more can be used several times, the variable # vipfree not being saved in global_reg_value, can someone help me.
- script test -1,{
// ---------Settings ----------------------------------
set .nomen$,"^1E90FF[Ragbrus]^000000";
set $nvVip, 1;
set $dVip, 7;
// ----------------------------------------------------------
if (# vipfree == 1) {
mes. nomen $;
mes "have you received" + strcharinfo (0) + ".";
close;
}
mes .nomen$;
mes "Hello" + strcharinfo (0) + "Welcome to Ragbrus!";
mes "do you want to receive your starter kit and 7 days VIP?";
next;
if(select("yes:no")== 2)
{
mes .nomen$;
mes "I'll be waiting for you if you change your mind!";
close;
}
mes .nomen$;
mes "right, here is";
mes "Make good use!";
getitem 607,50;
getitem 12020,50;
getitem 12028,50;
query_sql "UPDATE `login` SET `level` = "+$nvVip+", `dvip` = DATE_ADD(CURDATE(),INTERVAL "+$dVip+" DAY) WHERE `group_idl` = 0 AND `account_id` = "+getcharid(3);
dispbottom "Vip successfully entered! Have a nice game ";
atcommand "@adjgroup 1"+strcharinfo(0);
close;
set #vipfree,1;
end;
}
Question
Beret
Hello rathena, I made this script, more can be used several times, the variable # vipfree not being saved in global_reg_value, can someone help me.
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.