I want to use this script in an item for example.. 670,Gold_Coin_Moneybag,Bag of Gold Coins,0,100000,,400,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{} thanks..
- script vip_for_1week -1,{
OnPCLoginEvent:
if (getgroupid() != 0) end;
// first time logging into this account
if (#VIP_expire == 0) {
set #VIP_expire, gettimetick(2) + (7*86400); // 7 days
dispbottom "Welcome to the server!";
dispbottom "You have been upgraded to a VIP for 1 week.";
}
if (#VIP_expire > gettimetick(2)) {
// they still have time left
dispbottom "VIP Rental : expires in " + callfunc("Time2Str",#VIP_expire);
atcommand "@adjgroup 1";
deltimer strnpcinfo(3)+"::OnPCLoginEvent";
if ((#VIP_expire - gettimetick(2)) < 2147483) { // prevent overflow error
addtimer (#VIP_expire - gettimetick(2)) *1000, strnpcinfo(3)+"::OnPCLoginEvent";
} else {
addtimer 2147483000, strnpcinfo(3)+"::OnPCLoginEvent";
}
} else if (#VIP_expire > 1) {
set #VIP_expire, 1;
atcommand "@adjgroup 0";
dispbottom "Your VIP Rental has expired.";
}
end;
}
Question
blakbord
I want to use this script in an item for example..
670,Gold_Coin_Moneybag,Bag of Gold Coins,0,100000,,400,,,,,0xFFFFFFFF,7,2,,,,,,{},{},{}
thanks..
Link to comment
Share on other sites
8 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.