Petey Pablo Posted November 13, 2012 Group: Members Topic Count: 152 Topics Per Day: 0.03 Content Count: 569 Reputation: 11 Joined: 11/24/11 Last Seen: March 7, 2022 Share Posted November 13, 2012 How to fix this? [Warning]: Unable to restore stack! Double continuation! [Debug]: Previous script (lost): [Debug]: Source (NPC): BKTriggers (invisible/not on a map) [Debug]: Current script: [Debug]: Source (NPC): TimeoutCtrl (invisible/not on a map) Quote Link to comment Share on other sites More sharing options...
AnnieRuru Posted November 13, 2012 Group: Members Topic Count: 18 Topics Per Day: 0.00 Content Count: 2044 Reputation: 682 Joined: 10/09/12 Last Seen: December 20, 2020 Share Posted November 13, 2012 script.c else if(st->state != END && st->rid){ //Resume later (st is already attached to player). if(st->bk_st) { ShowWarning("Unable to restore stack! Double continuation!\n"); //Report BOTH scripts to see if that can help somehow. ShowDebug("Previous script (lost):\n"); script_reportsrc(st->bk_st); ShowDebug("Current script:\n"); script_reportsrc(st); script_free_state(st->bk_st); st->bk_st = NULL; } } it just like OnPCDieEvent topic just now when having multiple event labels trigger on same player, that error message is "event queue full" this one however can be reproduce by prontera,154,183,5 script asdas 100,{ attachrid 2000000; mes "asdasdasd"; next; mes "asdasdas"; close; } dual-client from account_id 2000001 click on that npc it keep sending dialog to account_id 2000000 [Warning]: Unable to restore stack! Double continuation! [Debug]: Previous script (lost): [Debug]: Source (NPC): asdas at prontera (154,183) [Debug]: Current script: [Debug]: Source (NPC): asdas at prontera (154,183) in other words, some of your GM in your server send npc:bk twice to your player to perform a bot-check this error should be consider minor because it is an utility script ... and I don't think this will harm your server at all but if this error happens in an event script than its another story ... 1 Quote Link to comment Share on other sites More sharing options...
sonyinside Posted March 8, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 01/21/13 Last Seen: April 6, 2021 Share Posted March 8, 2013 (edited) [Warning]: Unable to restore stack! Double continuation! [Debug]: Previous script (lost): [Debug]: Source (NPC): botcheck(invisible/not on a map) [Debug]: Current script: [Debug]: Source (NPC): botcheck(invisible/not on a map) i had same issue with my script OnNPCKillEvent: sleep2 100; if (rand(100) != 1) { end; } mes "[botcheck]"; mes "answer this"; next; when someone uses an AOE skill and a lot of monsters killed this message always appears, how to prevent it? what use the var? or is there another way?thanks Edited March 8, 2013 by sonyinside Quote Link to comment Share on other sites More sharing options...
Brian Posted March 8, 2013 Group: Members Topic Count: 75 Topics Per Day: 0.02 Content Count: 2223 Reputation: 593 Joined: 10/26/11 Last Seen: June 2, 2018 Share Posted March 8, 2013 Try removing the 'sleep2' and see if it still happens.If the [Warning] still happens, you could do something like: script does the rand() check if it's going to Bot Check them, first set a temporary char variableset @is_bot_check, 1; add a check right after OnNPCKillEvent so if (@is_bot_check == 1), meaning they are in the middle of a both check, then the script won't try to check them again at the same time at the end of your script, right before 'close'set @is_bot_check, 0; 1 Quote Link to comment Share on other sites More sharing options...
sonyinside Posted March 10, 2013 Group: Members Topic Count: 0 Topics Per Day: 0 Content Count: 2 Reputation: 0 Joined: 01/21/13 Last Seen: April 6, 2021 Share Posted March 10, 2013 Brian thank for ur help, when i remove sleep2then this mesage appear [Warning]: npc_event: player's event queue is full, can't add event 'BotKiller::OnNPCKillEvent' ! but its work using sleep2 and temp char variable,no warning appear Quote Link to comment Share on other sites More sharing options...
Question
Petey Pablo
How to fix this?
Link to comment
Share on other sites
4 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.