Jump to content
  • 0
Sign in to follow this  
khenma

help on this error... NPC timer

Question

g_room1-3,64,185,3	script	RFYL Event	668,{		// We need to use attachnpctimer because the mes command below 		// needs RID attach		attachnpctimer;		initnpctimer;		npctalk "We will start in a short time, give me 15 seconds";		end;	OnTimer15000:		npctalk "Ok 5 seconds more";		end;	OnTimer6000:		npctalk "4";		end;	OnTimer7000:		npctalk "3";		end;	OnTimer8000:		npctalk "2";		end;	OnTimer9000:		npctalk "1";		end;	OnTimer10000:		stopnpctimer;		mes "[Man]";		mes "Ok Let us start the RFYL Event";		mes "Good Luck to all participants!";		monster "g_room1-3",64,185,"Poring",1002,4,"NPCNAME::OnLabel";		for (set .@i, 0; .@i < .mobnumber; set .@i, .@i + 1){		set .@mobGID, monster "g_room1-3",64,185,"Killer Poring",1002,4;		unitattack .@mobGID, getcharid(3);		}		close;		detachnpctimer;		// and remember attachnpctimer and detachnpctimer can only be used 		// while the NPC timer is not running!	}			

help_zps6e6f234a.jpg

 

################:case 2: ####################

 

errorTarchangel_zps225b1172.jpg

 

 

 

 

 

 

Share this post


Link to post
Share on other sites

3 answers to this question

Recommended Posts

  • 0

For first error: Try enclosing all arguments to the monster script command in brackets? Some changes were made to the script parser engine yesterday, so I'm still new to this because I haven't had time to test yet.

 

For the second error, it seems you're missing a file in your GRF. Maybe it's a custom item you wanted to have a custom sprite and didn't add it properly?

Share this post


Link to post
Share on other sites
  • 0

For first error: Try enclosing all arguments to the monster script command in brackets? Some changes were made to the script parser engine yesterday, so I'm still new to this because I haven't had time to test yet.

 

For the second error, it seems you're missing a file in your GRF. Maybe it's a custom item you wanted to have a custom sprite and didn't add it properly?

 

with brackets on line 38 only?

Share this post


Link to post
Share on other sites
  • 0

Yes. Don't ask me why (because I have no idea) but this script passes the parser (I just edited line 38):

 

g_room1-3,64,185,3	script	RFYL Event	668,{		// We need to use attachnpctimer because the mes command below 		// needs RID attach		attachnpctimer;		initnpctimer;		npctalk "We will start in a short time, give me 15 seconds";		end;	OnTimer15000:		npctalk "Ok 5 seconds more";		end;	OnTimer6000:		npctalk "4";		end;	OnTimer7000:		npctalk "3";		end;	OnTimer8000:		npctalk "2";		end;	OnTimer9000:		npctalk "1";		end;	OnTimer10000:		stopnpctimer;		mes "[Man]";		mes "Ok Let us start the RFYL Event";		mes "Good Luck to all participants!";		monster "g_room1-3",64,185,"Poring",1002,4,"NPCNAME::OnLabel";		for (set .@i, 0; .@i < .mobnumber; set .@i, .@i + 1){		set .@mobGID, monster ("g_room1-3",64,185,"Killer Poring",1002,4);		unitattack .@mobGID, getcharid(3);		}		close;		detachnpctimer;		// and remember attachnpctimer and detachnpctimer can only be used 		// while the NPC timer is not running!	}

Share this post


Link to post
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.   Restore formatting

  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.

Loading...
Sign in to follow this  

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.