lolmin21 Posted December 17, 2013 Posted December 17, 2013 Need help to remove it. Bomb_Poring.txt Quote
AnnieRuru Posted December 17, 2013 Posted December 17, 2013 (edited) you never say how to reproduce the problem so I just read the script well I spotted 1 error though [Info]: Character 'AnnieRuru' logged off. [Error]: script_rid2sd: fatal error ! player not attached! [Debug]: Function: getmapxy (4 parameters): [Debug]: Data: variable name='.@mapnvz$' index=0 [Debug]: Data: variable name='.@xnvz' index=0 [Debug]: Data: variable name='.@ynvz' index=0 [Debug]: Data: number value=0 [Debug]: Source (NPC): bombevent (invisible/not on a map)can be reproduce by using a GM99 and start the event, then immediately log offthe problem should be here StartEvent: // line 143 ... start the event initnpctimer; ..... OnTimer10000: // line 380 if(getmapusers("quiz_01") == 1){ killmonsterall "quiz_01"; mapannounce "quiz_01","You have survive and WIN, approach the Reward NPC please.",0; enablenpc "Reward NPC"; end; // <-----THIS ONE is inside the bracket } OnPCDieEvent: getmapxy .@mapnvz$,.@xnvz,.@ynvz,0;the end; should be outside the bracketand this script make extensive use of sleep2 command ... should be using sleep command to avoid some undesirable situation ... other than that explain more in detail EDIT: I also didn't see any OnPCLogoutEvent in this script ... Edited December 17, 2013 by AnnieRuru Quote
lolmin21 Posted December 17, 2013 Author Posted December 17, 2013 (edited) It will be like this? Debug not appear again OnTimer10000: if(getmapusers("quiz_01") == 1){ killmonsterall "quiz_01"; mapannounce "quiz_01","You have survive and WIN, approach the Reward NPC please.",0; enablenpc "Reward NPC"; } end; // <--- Already put outside the bracket Thank you. Edited December 17, 2013 by lolmin21 Quote
Question
lolmin21
Need help to remove it.

Bomb_Poring.txt
2 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.