- 0
Sign in to follow this
Followers
0
help with F Ticket AddVip wanted to integrate it with the npc I have
Asked by
sonyk2
-
Recently Browsing 0 members
No registered users viewing this page.
Good morning sorry for the inconvenience
I wanted your help if possible kk
I tried to edit but I'm noob
// ------------------------------------------------ -------------------------------------------------- ------------
script de função F_TicketAddVip5 {
query_sql "SELECT` days` FROM` viptable` WHERE` vipacc_id` = '" + getcharid (3) + "'",. @ checkDays;
if (. @ checkDays> 0) {
set. @ setDays, (. @ checkDays + 5);
query_sql "UPDATE` viptable` set` days` = '" +. @ setDays + "'? WHERE` vipacc_id` ='" + getcharid (3) + "'";
query_sql "SELECT` group_id` FROM` login` WHERE` account_id` = '" + getcharid (3) + "'",. @ nível de usuário;
if (. @ userLevel <1)
query_sql "
else {
query_sql" UPDATE` login` set `group_id` = '1' WHERE` account_id` = '" + getcharid (3) + "
query_sql "SELECT` userid` FROM` login` ONDE` account_id` = '" + getcharid (3) + "'",. @ userID $;
query_sql "SELECT` email` FROM` login` ONDE` account_id` = '" + getcharid (3) + "'",. @ userEmail $;
query_sql "INSERT INTO` viptable` (` vipacc_id`, `vip_id`,` days`, `email`) VALUES ('" + getcharid (3) + "', '" +. @ userID $ + "', '5 ',' "+. @ accEmail $ +" ') ";
}
atcommand "@reloadpcdb";
dispbottom "Você erigido 5 dias de conta VIP, parabéns!";
specialeffect 338;
fim;
Retorna;
}
wanted to use with this npc
vipadmin.txt
Edited by sonyk2Share this post
Link to post
Share on other sites