Jump to content
  • 0

Problem with donpcevent


Question

Posted

Hello guys!

I was testing my scripts and when the script goes on with "donpcevent", it freezes my client (character can not move anymore) and all commands that i try to use after that, he just "speak" it (without a @command functions) and it shows up a baloon where my character is (like the NPC baloon to initiate a talk).

 

Also, i put a "debugmes" in the npc destination of "donpcevent", but the server does not shows it up (so, i think the script is bugging when using "donpcevent").

 

Does anyone has a solution for this? Thanks!

post-29853-0-66813300-1454085075_thumb.jpg

3 answers to this question

Recommended Posts

  • 0
Posted


- script customcommands -1,{
 
OnInit:
sleep 10;
 
//@adm
bindatcmd("adm","ADM::OnADM");
}

 



- script ADM -1,{
end;
 
OnADM:
switch(select("Daily:Monthly")){
case 1: close2; donpcevent "timer#global1::OnBug00"; end;
case 2: close2; donpcevent "timer#global1::OnBug01"; end;
}
close;
}

 



- script timer#global1 -1,{
 
OnBug00:
OnClock0001:
query_sql "UPDATE `XXXaccount` SET `vip` = `vip` - 1 WHERE `vip` > '0'";
 
end;
}


  • 0
Posted


OnADM:

mes "Pick your option.";

switch(select("Daily:Monthly")){

case 1: close2; donpcevent "timer#global1::OnBug00"; end;

case 2: close2; donpcevent "timer#global1::OnBug01"; end;

}

close;

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...