Jump to content

Question

Posted

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;
 
} 

 

3 answers to this question

Recommended Posts

Posted

change your script from "FUNCTION" become a "NPC"

 

But it's a function for this item:

 

20682,Ticket_Vip,Ticket VIP #1,0,10000,,10,,,,,0xFFFFFFFF,7,2,,,,,,{ callfunc "vip1"; },{},{}

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...