I've made this function in order to have a 24h VIP Ticket(I've put 40 seconds to test), but it's not working. Can someone see what's wrong ?
function script vip1 {
set $nivelVip, 1;
query_sql "UPDATE `login` SET `group_id` = "+$nivelVip+" WHERE `group_id` = 0 AND `account_id` = "+getcharid(3);
dispbottom "Conta VIP inserida com sucesso! Relogue seu personagem para ativá-la.";
addtimer 40000, "vip1::OnTempo2";
end;
OnTempo2:
dispbottom "Período VIP terminado.";
query_sql "UPDATE `login` SET `group_id` = 0 WHERE `group_id` = 1 AND `account_id` = "+getcharid(3);
end;
}
Question
Saruman
I've made this function in order to have a 24h VIP Ticket(I've put 40 seconds to test), but it's not working. Can someone see what's wrong ?
Link to comment
Share on other sites
3 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.