Re: npc
If its only 1 mob u have to kill best way is Qfunction.
[@Onkillmob(MobName)]
#IF
CHECK [500] 1 <<-- Flag if ur using
#ACT
SET [500] 0
GIVE Prize 1
GIVE Prize 1
#SAY
You killed the boss well done brother :P
Or If you want them to clear the whole cave, then kill the mob do this.
[@Onkillmob(Mobs That Are In Cave)]
#IF
CHECK [500] 1
CHECKMONMAP MAPNAME 1 <<--- Will make sure there is less than 1 mob on map.
#ACT
MONGEN Boss 1 1
Param1 (MapNumber)
Param2 (Cord X)
Param3 (Cord Y)
LINEMSG 0 "The boss has been spawned at (Cords), Go kill It"
BREAK
hope this helps