Jump to content

Question

Posted

hye i was trying to edit the script by adding a command to recall the npc, but i failed, can someone correct this for me?

-	script	Script	server	-1,{


OnAtcommand:
OnPCLoadMapEvent:
if( strcharinfo(3) == "chry_fld"){



	mes "^00c000III Server Guide III^000000";
	mes "Welcome to DolphinRO";
	mes "here are aditional options";
	mes "you may explore";
	next;
	switch(select("- Leave Me Alone:- Guide Me"))
	{
		case 1:
			mes "^00c000III Server Guide III^000000";
			mes "Good bye.";
			end;
		case 2:
			mes "^00c000III Server Guide III^000000";
			mes "Please select which would you like?";
			switch(select("- Basic Guide:- NPC Guide:- Exit")){
			
				case 1:
					mes "^00c000III Server Guide III^000000";
					mes "Basic";
					end;
				
				case 2:
					mes "^00c000III Server Guide III^000000";
					mes "NPC";
					close;
					}
			
	}
								}
			

			OnInit:
			bindatcmd "server","server::OnAtcommand";
			end;

}

chry_fld	mapflag	loadevent 

The error :

[Error]: npc_event: event not found [server::OnAtcommand]

Thanks.

2 answers to this question

Recommended Posts

  • 0
Posted

you wrote two time Script on line 1.

this should fix your script. I changed a few things because I don't own your customizations ?
 

-	script	SGuide	-1,{

OnAtcommand:
OnPCLoadMapEvent:
if( strcharinfo(3) == "prontera"){
	mes "^00c000III Server Guide III^000000";
	mes "Welcome to DolphinRO";
	mes "here are aditional options";
	mes "you may explore";
	next;
	switch(select("- Leave Me Alone:- Guide Me"))
		{
			case 1:
				mes "^00c000III Server Guide III^000000";
				mes "Good bye.";
				end;
			case 2:
				mes "^00c000III Server Guide III^000000";
				mes "Please select which would you like?";
				switch(select("- Basic Guide:- NPC Guide:- Exit")){	
				case 1:
					mes "^00c000III Server Guide III^000000";
					mes "Basic";
					end;
				
				case 2:
					mes "^00c000III Server Guide III^000000";
					mes "NPC";
					close;
				case 3: // you forgot case 3 for Exit!
					//<your script>
					}
			
		}
	}
OnInit:
		bindatcmd "server","SGuide::OnAtcommand";
		end;	
}

prontera	mapflag	loadevent

 

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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...