[NPC Release] Monster Regeneration Script

smoochy boys on tour

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
175
Darlington, UK
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
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
Robot (Set to run at your respawn time interval - Search if you don't know wtf that means.)

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
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
 
Last edited:

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
Thats exactly the same system as i use on fourheroes? lol

oh btw... () dont work... cant remmeber wot the problem was with it now, but there was a problem

hense why i use {}...
 

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
Thats exactly the same system as i use on fourheroes? lol

oh btw... () dont work... cant remmeber wot the problem was with it now, but there was a problem

hense why i use {}...


weird () dnt work on 2.3 or 2.6 ? because it works fine for me on 2.3
 

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
175
Darlington, UK
I was inspired by yours ben I do give you credit for coming up with the idea in the first place :)

I have no problems with (), weird.
 

Shank

The_Mafia
VIP
Dec 4, 2008
2,082
17
165
actually it was used in massacre n other servers way before ben used it :s
 

IceMan

Hero's Act Mir 2
Legendary
Apr 17, 2003
8,544
2
370
350
nice idea but Qfun cant handle the load if u use this setup alot

best todo it on mapquest
 

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
175
Darlington, UK
its fine for bosses, i dont understand why any 1 would use it for mass mobs. I also saw the post ben made a while back regarding qfunction picking up its ball and going home..
 

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
theres actually a fix to qfunction problem, just gotta know how to fix it, and no, its not coding


and also i belive the problem with () may have been the drop files, or mapquest problem, i cant really remmeber..... but there was defo a reason as to why i never used it

the actual system worked ok tho i think
 

BloodDemon

Golden Oldie
Golden Oldie
Jul 20, 2003
649
19
175
Darlington, UK
does it have anything to do with random? would make sense i suppose.

Edit==

I figured out what putting () in a mob name at start buggers up. You cant left click attack the mob u gota keep hold of shift to attack
 
Last edited:

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
does it have anything to do with random? would make sense i suppose.

Edit==

I figured out what putting () in a mob name at start buggers up. You cant left click attack the mob u gota keep hold of shift to attack
well there u go then, told u there was some reason why i done it :thumbup1:
 

Cba2KillU

LOMCN Veteran
Veteran
Apr 7, 2010
692
1
105
ive used this in my upcoming server.

but im useing a npc t spawn the (s)omawarrior etc

but only way i can kill it is by holding shift (pking way)
 

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
145
Can you add #IF into this script? I really need to put a #IF

So example

[@OnKillMob((M)GhoulLord)]
#IF
Checklevelex = 50
#ACT
gmexecute mob (L)GhoulLord
SENDMSG 0 "The monster has resurrected stronger!!"
close

Remember this is an example i wouldnt do for bosses. I got better things in mind.

Could this be done?:thumbup2:

PS:I wanna try this on tao pets. So they get stronger per lvl but they would need kill:P But i could add @killpet:)
 

Bon

Legend
Legendary
Jul 29, 2004
6,726
330
300
Kent, UK
if u did @killpet it wouldnt run the script....

if u want a tao pet that levels up, do it via a key7 8 9 0 key...

if wotever level spawn wotever pet.. simple
 

ashleyuk

Dedicated Member
Dedicated Member
Loyal Member
Nov 18, 2008
2,000
23
145
Yes that is 1 way but i wanted it to auto spawn after the other 1 dies @ level 100 + and the @killpet script i all ready got. It doens't work for taos ATM due to cheatin to level there pets:P

Any ideas how make it check level = 100 & Spawns it?:)

Key 7/8/9 could be used in the near future.

If this doesnt work ill make it any level but hard to kill the pet to get it harder:P And no TUing it.

Any ideas?? Thanks.

PS:I only want it to make it stronger once. Etc Zombie -> AdvZombie.