//==================================================
// gef_fild10 - Geffen Field
//==================================================
gef_fild10,0,0 monster Orc Warrior 1023,179,5000,0,"sample_npc_name::OnKill"
gef_fild10,0,0 monster Orc Lady 1273,55,5000,0,"sample_npc_name::OnKill"
gef_fild10,0,0 monster Orc Baby 1686,27,5000,0,"sample_npc_name::OnKill"
gef_fild10,0,0,0,0 boss_monster Orc Lord 1190,1,7200000,600000,0,"sample_npc_name::OnKill"
gef_fild10,46,350,5,5 monster Blue Plant 1079,3,900000,450000,"sample_npc_name::OnKill"
gef_fild10,287,61,5,5 monster Blue Plant 1079,3,900000,450000,"sample_npc_name::OnKill"
gef_fild10,300,253,5,5 monster Green Plant 1080,3,360000,180000,"sample_npc_name::OnKill"
add a npc event to each of the monster in gef_fild10, and load the npc.
- script sample_npc_name -1,{
OnKill:
if (!mobcount(strcharinfo(3), strnpcinfo(3)+"::OnBossKill")) {
if (.monster_kill < 10000) {
.monster_kill++;
if (.monster_kill >= 10000) {
monster strcharinfo(3), 0, 0, "Lord of Orcs", 1190, 1, strnpcinfo(3)+"::OnBossKill";
}
}
else {
.monster_kill = 0;
}
}
end;
OnBossKill:
// rewards
end;
}