Mob problem with Qfunc

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
Ok here's my current script im using..


Code:
[@onkillmob(Monster1)]
#ACT
Param1 0
Param2 50
Param3 50
MonGen Monster2 1 0
close 
 
[@onkillmob(Monster2)]
#ACT
Param1 0
Param2 55
Param3 55
MonGen Monster3 1 0
close

Ok so this script works fine no problems with it at all, but i dont want it working the way it does.. because atm it telling the mob to spawn on certain coords and map i dont want it to spawn on any set cords i want it to spawn any where randomly on the map..

but if i delete the Param2 / Param3 from the script. nothing happens wen i kill the mob it dont respawn at all, so i quess theres another way to do it?
but i dont how, iv searched about on forums tried a few things i can think off but getting no where, so can any one shed some light on what im doing wrong please?

Cheers
 

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
255
♫♪♫ ♦♥♠♣ ♀♂♀
Ok here's my current script im using..


Code:
[@onkillmob(Monster1)]
#ACT
Param1 0
Param2 50
Param3 50
MonGen Monster2 1 [COLOR="Red"]0[/COLOR]
close 
 
[@onkillmob(Monster2)]
#ACT
Param1 0
Param2 55
Param3 55
MonGen Monster3 1 [COLOR="Red"]0[/COLOR]
close

Ok so this script works fine no problems with it at all, but i dont want it working the way it does.. because atm it telling the mob to spawn on certain coords and map i dont want it to spawn on any set cords i want it to spawn any where randomly on the map..

but if i delete the Param2 / Param3 from the script. nothing happens wen i kill the mob it dont respawn at all, so i quess theres another way to do it?
but i dont how, iv searched about on forums tried a few things i can think off but getting no where, so can any one shed some light on what im doing wrong please?

Cheers

change the red 0 to something else like 50 which will give the spawning radius

here: Jealy Mir Commands List
there is a list of all the commands and for the mogen here is what there's written

mongen
MONGEN Yob 5 10
Spawns 5 Yobs in a 10 square radius around the map. Params: Param1 (mapname), Param2(x), Param3(y)
 
Last edited:
Upvote 0

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
Didnt work Mstation

[@onkillmob(Monster1)]
#ACT
Param1 D6066
Param2 86
Param3 86
MONGEN Monster2 1 150
close

[@onkillmob(Monster2)]
#ACT
Param1 D6066
Param2 86
Param3 86
MONGEN Monster3 1 150
close

or

[@onkillmob(Monster1)]
#ACT
Param1 D6066
MONGEN Monster2 1 150
close

[@onkillmob(Monster2)]
#ACT
Param1 D6066
MONGEN Monster3 1 150
close

or

[@onkillmob(Monster1)]
#ACT
MONGEN Monster2 1 150
close

[@onkillmob(Monster2)]
#ACT
MONGEN Monster3 1 150
close


neither of the above 3 work... ? what am i doing wrong lol ! :cursing:
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
255
♫♪♫ ♦♥♠♣ ♀♂♀
[@onkillmob(Mon1)]
#ACT
Param1 0
Param2 50
Param3 50
MONGEN Mon2 1 50
close

[@onkillmob(Mon2)]
#ACT
Param1 0
Param2 50
Param3 50
MONGEN Mon3 1 50
close

not sure but this type of code should work.. works on my server

try it on a smaller map with about 50 coords so that you can see where it spawns..
 
Upvote 0

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
Cheers will give this a try soon also theres no mobs on the map im doing this on atm so wen i do @mobcount i can see if it spawned or not :)
 
Upvote 0

Diversity

Dedicated Member
Dedicated Member
Feb 3, 2010
70
1
34
one other thing, do you know if there is a command to check wat day of the month it is.. ?
 
Upvote 0

mStation

Golden Oldie
Golden Oldie
Oct 29, 2003
2,042
69
255
♫♪♫ ♦♥♠♣ ♀♂♀
i just know that there is a command which is something like this:
#IF
DAYOFWEEK SUN
#ACT
do something

if day of the week is sunday then do something

the param can be SUN,MON,TUE,WED,THU,FRI,SAT

i don't think there is a command to check which day (number) of the month it is.. not sure..
 
Upvote 0