Hello there, Echoes here 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]
Question
Echoes
Hello there, Echoes here
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:
The "<event label>", I don't understand how to use that.
On the examples where it says how to use it, this appears.
The NPCNAME, which exactly need to be?
I have this as my actual script:
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 EchoesLink to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.