npc [ Mob Check Command ]

12345678

Dedicated Member
Dedicated Member
Sep 1, 2004
163
0
42
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
 
Upvote 0

^G0trex

Golden Oldie
Golden Oldie
Nov 7, 2003
1,946
28
135
Bham
Re: npc

Or if there's only the 1 mob on the map (i.e. a KR) you can just add this to your NPC:

[@main]
#IF
CHECKMONMAP D515 0
#ACT
GIVE GoldChest
#ELSEACT
break
 
Upvote 0