Jump to content
  • 0

Doubt about 'monster' script command


Echoes

Question


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   6
  • Joined:  03/30/13
  • Last Seen:  

Hello there, Echoes here :P New to the community..
(I searched for similar topics but I didn't found anything, sorry if there were any similar topic..)
 
This is my doubt:

*monster     "<map name>",<x>,<y>,"<name to show>",<mob id>,<amount>{,[b]"<event label>"[/b],<size>,<ai>};
*areamonster "<map name>",<x1>,<y1>,<x2>,<y2>,"<name to show>",<mob id>,<amount>{,[b]"<event label>"[/b],<size>,<ai>};

 

The "<event label>", I don't understand how to use that.
On the examples where it says how to use it, this appears.

<Normal NPC object definition. Let's assume you called him NPCNAME.>
monster "prontera",0,0,"Quest Poring",1002,10,"NPCNAME::OnPoringKilled";

 

The NPCNAME, which exactly need to be?

I have this as my actual script:

-	script	EventoPayonDungeon#1	-1,{
OnNPCKillEvent:
	if (killedrid == 1015 && strcharinfo(3) == "pay_dun00"){
		set evnt,evnt+1;
		if (evnt == 2){
			announce "Zombie Master: ¡¿Quién osa matar a mis subditos?!",pay_dun00,00xFF0000;
		}
		if (evnt == 4){
			announce "Zombie Master: ¡Se arrepentirán de matar a mis esclavos!",pay_dun00,00xFF0000;
			areamonster "pay_dun00",147,173,156,164,"Zombie Master",1298,1,"EventoPayonDungeon#1::OnZombieMKilled";
			set evnt,0;
		}
	end;
	}
OnZombieMKilled:
	set $ZombieMKilled,$ZombieMKilled+1;
	if ($ZombieMKilled == 1) goto Success;
	end;
Success:
	announce "Zombie Master: ¡Esta no será la última vez que ataque! ¡Volveré!",pay_dun00,00xFF0000;
	set $ZombieMKilled,0;
	end;
}

 

And I got this mapserv-sql error:

[Error] npc_event: event not found [EventoPayonDungeon#1::OnZombieMKilled]

 

What I'm doing wrong?

Help please C: Thanks.

Edited by Echoes
Link to comment
Share on other sites

2 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  38
  • Topics Per Day:  0.01
  • Content Count:  276
  • Reputation:   24
  • Joined:  07/06/13
  • Last Seen:  

Did you add your script to conf? If yes? Double check it maybe you mispelled it. If its correct? Check if you use<TABS>between headers? If yes? Try reducing script name length.

-	script	EventoPayDun	-1,{
------------------------------------------------
areamonster "pay_dun00",147,173,156,164,"Zombie Master",1298,1,"EventoPayDun::OnZombieMKilled";
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  34
  • Topics Per Day:  0.01
  • Content Count:  155
  • Reputation:   6
  • Joined:  03/30/13
  • Last Seen:  

Did you add your script to conf? If yes? Double check it maybe you mispelled it. If its correct? Check if you use<TABS>between headers? If yes? Try reducing script name length.

-	script	EventoPayDun	-1,{
------------------------------------------------
areamonster "pay_dun00",147,173,156,164,"Zombie Master",1298,1,"EventoPayDun::OnZombieMKilled";

Ok, I'll try.

Thanks for the advice.

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