Jump to content
  • 0

Doubt about 'monster' script command


Question

Posted (edited)

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

2 answers to this question

Recommended Posts

Posted

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";
Posted

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.

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