Jump to content
  • 0

Problem with donpcevent


arteris

Question


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/01/14
  • Last Seen:  

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  

Solution might be possible if you had read this before you create a post.

https://rathena.org/board/forum-30/announcement-9-scripting-support-easy-as-1-2-3/

 

Post your script if you want other member to help y ou debug what's wrong with it.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  15
  • Reputation:   0
  • Joined:  11/01/14
  • Last Seen:  



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


Link to comment
Share on other sites

  • 0

  • Group:  Forum Moderator
  • Topic Count:  93
  • Topics Per Day:  0.02
  • Content Count:  10015
  • Reputation:   2348
  • Joined:  10/28/11
  • Last Seen:  


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;

Link to comment
Share on other sites

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.

×
×
  • Create New...