Jump to content
  • 0

Got debug in this script [Emistry Bomb_Poring_Event]


lolmin21

Question

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  18
  • Topics Per Day:  0.00
  • Content Count:  2044
  • Reputation:   682
  • Joined:  10/09/12
  • Last Seen:  

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 off

the 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 bracket

and 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 by AnnieRuru
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  7
  • Topics Per Day:  0.00
  • Content Count:  13
  • Reputation:   0
  • Joined:  11/24/13
  • Last Seen:  

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