I realize its been a while so heres a script that I was inspired to make. Its purpose is to allow several stages of the same mob. For instance I have a (S)OmaWarrior and when it dies it re-spawns as (M),(L),(XL) etc..
The intresting part is that the server can clear up any unkilled higher ranking monsters. For instance the (XL)OmaWarrior hasn't been killed and the respawn time for (S)OmaWarrior has cycled. Using robot you can kill the undead mob.
For this code to work you must have the following mobs in your DB:
(S)OmaWarrior
(M)OmaWarrior
(L)OmaWarrior
(XL)OmaWarrior
Heres the NPC code:
Qfunction
Robot (Set to run at your respawn time interval - Search if you don't know wtf that means.)
I have tested this with lemon source but im pritty sure the clearmon command is in TDs. Any questions just ask
Im not sure on the sendmsg command im still a little rusty.
Thanks
Chris
The intresting part is that the server can clear up any unkilled higher ranking monsters. For instance the (XL)OmaWarrior hasn't been killed and the respawn time for (S)OmaWarrior has cycled. Using robot you can kill the undead mob.
For this code to work you must have the following mobs in your DB:
(S)OmaWarrior
(M)OmaWarrior
(L)OmaWarrior
(XL)OmaWarrior
Heres the NPC code:
Qfunction
Code:
[@OnKillMob((S)OmaWarrior)]
#ACT
gmexecute mob (M)OmaWarrior
SENDMSG 0 "The monster has resurrected stronger!!"
close
[@OnKillMob((M)OmaWarrior)]
#ACT
gmexecute mob (L)OmaWarrior
SENDMSG 0 "The monster has resurrected stronger!!"
close
[@OnKillMob((L)OmaWarrior)]
#ACT
gmexecute mob (XL)OmaWarrior
SENDMSG 0 "The monster has resurrected stronger!!"
close
Code:
Code=====
gmexecute CLEARMON 0 (M)OmaWarrior 0
gmexecute CLEARMON 0 (L)OmaWarrior 0
gmexecute CLEARMON 0 (XL)OmaWarrior 0
Information=====
Command breakdown:
gmexecute CLEARMON <MAP NUMBER> <MOB NAME> <DROP Y/N>
Replace mapnumber or mob name with * to kill every mob on map or all maps
Im not sure on the sendmsg command im still a little rusty.
Thanks
Chris
Last edited: