Jump to content
  • 0

NPC Event Not Found


Dolphin86

Question


  • Group:  Members
  • Topic Count:  255
  • Topics Per Day:  0.06
  • Content Count:  706
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

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.

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.01
  • Content Count:  82
  • Reputation:   7
  • Joined:  12/29/18
  • Last Seen:  

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

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  255
  • Topics Per Day:  0.06
  • Content Count:  706
  • Reputation:   16
  • Joined:  01/07/12
  • Last Seen:  

works like a champ !

Edited by Dolphin86
  • Like 1
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...