Mob Death & Spawn

Desolation Mir2 (Med Rate Server)

Dumachi

LOMCN Veteran
Veteran
May 18, 2007
384
1
43
Romania
ok, lets say a mob dies, and i want it to spawn another mob onces it dies, like a weaker mob How would i do this, so as soon as it dies it spawns more mobs?
 

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
Mov A0 %USERMAP
Mov A1 %USERX
Mov A2 %USERY
ForMatStr "%s,%s,%s,0" %A0 %A1 %A2
MonGenP %A9 WeakerMob 1

Add that to MonDie from MapQuest on that map/mob
 
Upvote 0

idaBigA

Holley Mir 3!!
VIP
Oct 28, 2003
1,969
118
290
Stoke, UK
A0 = stores the map the user is currently on
A1 = stores the current X co-ord of the user
A2 = stores the current Y co-ord of the user

FormatStr puts it all into 1 string

%S fetches the data from the end of the command, and they are fetched in the order you see them.. so "%S,%S,%S" %A0 %A1 %A2 would fetch A0 first and put it in place of the first %S, it would fetch A1 second and put it in place of the Second %S etc.

e.g If I am map 0 (Bichon) at 75,100 the string would look like this

"0,75,100,0"

Now we do the MonGenP command which spawns mobs at a specific Map,X,Y,Radius..

So
Map = 0
X = 75
Y = 100
Radius from Co-ord = 0
Weaker Mob = MOb Name
Qty = 1
So the Final command if you had written it without variables would look like this

MonGenP "0,75,100,0" WeakerMob 1

Does that make sense?
 
Upvote 0

Dumachi

LOMCN Veteran
Veteran
May 18, 2007
384
1
43
Romania
erm, i tryed this, dosent work, could you tell me how to get this working please, appreciate it m8 ;)

it just comes up in a text box ingame, the commad line does, when i kill this mob.
 
Last edited:
Upvote 0

Geordiehc

Mad Dog Geo
VIP
Jul 4, 2007
2,827
49
175
Redditch, UK
lol was working on the same thing myself today.

I think whoever kills the mob gets the mobs spwned on them so to do it on whole grp will be very hard, you would have to check the grp and move all ther coordinates to variables and then spwn the mobs on them variables.
 
Upvote 0

chimera

LOMCN VIP
VIP
Jul 30, 2003
1,054
23
215
UK
How are you going to check the %usernames of people in a group? I don't think that's possible (could be wrong but I've not come accross or heard of a way yet)....you can however check group size and spawn mobs in a radius around %username very easily and it's a less intensive script. :)
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
123
Germany
another also possible way is not to use mondie u can also use monai if the boss have 0 hp spawn other mobs

with group
checkgroupcount x

if
grpcount 2
act

if
grpcount 3
act

isnt that hard with ida´s part
 
Upvote 0