Spawning mobs

smoochy boys on tour

-Viper-

Dedicated Member
Dedicated Member
May 3, 2005
84
0
52
Hey whats the command on an npc to spawn for example:

10 hens
8 pigs
5 cows
2 deer
1 Orc

And then the npc not work until all the mobs are dead in the room, I know you can scan for specific mobs on the map (CHECKMONMAP Hen) but would there be a quicker way to scan if any mobs are alive on the map other than scanning each then acting upon it?

Thanks,

Viper

EDIT: Also I would like the make the room not allow drops, is there anyway I can make a mob in this room drop something that goes directly into your bag even though the map doesn't allow drops?

EDIT2: Ok, I know how to spawn multiple mobs mobs on a map now, but how would I go about the rest?
 
Last edited:

nightwalker

Dedicated Member
Dedicated Member
May 2, 2003
53
0
102
think it sommet like

MongenP "mapid,x,y,z" mobname mobqty

mapid = 0,1,2,3,3,d005 ect
x = x co-ordinate
y = y co-ordinate
z = cant remember but might be respawn rate or delay
mobname = name of mob
mobqty = how many u wanna spawn
 
Upvote 0

-Viper-

Dedicated Member
Dedicated Member
May 3, 2005
84
0
52
Ya I knew that mate, figured out before but really I need to find out the other things, ie how I can discover whether any mobs are alive on a map rather than 1 mob at a time, and also whether I can get a mob to drop something into your bag on a no drops map ...

Thanks anyways,

Viper
 
Upvote 0

nightwalker

Dedicated Member
Dedicated Member
May 2, 2003
53
0
102
think the cmd to chek if all mobs are dead is !checkmonmap "mapid" 1 mobname and checkmonmap "mapid" 1 mobname !checkmonmap is not equal to and checkmonmap equal to with regards to the item this can be done through the mapquest [mondie] feature is u need a lil hlp with this let me know


example of chekmonmap
[@Monster]
#IF
checkmonmap E007 30
#SAY
The monster very are also many, first hits brushes again!
#ELSEACT
Param1 E007
Param2 20
Param3 20
MONGEN hen 20 10
MONGEN cow 20 10
MONGEN pig 20 10
MONGEN bull 20 10
close

to give item after mob dies

in mapquest.txt add

mapid [195] 1 [MonDie] mobname * [MapQuest_Def\filename] [@main]

and in MapQuest_Def\filename.txt

[@main]
#if
check [195] 1
#act
give itemname 1
EventMsg [private] "you have recovered the xyz congratz."
set [195] 0
break

you will need to set the flag to 1 via the npc who gives the quest also u may need to chose a different flag
 
Last edited:
Upvote 0

-Viper-

Dedicated Member
Dedicated Member
May 3, 2005
84
0
52
Ok thanks, will this work even if the map doesn't allow drops?

Will give it a test tomorrow, thanks again Nightwalker,

Viper
 
Upvote 0

Amenovis

Golden Oldie
Golden Oldie
Loyal Member
Jan 9, 2006
1,105
0
143
Germany
yeah must work no drop on a map means only no drop on the ground but in that case nothingis going on the ground so it have to work

lg

ameno
 
Upvote 0

-Viper-

Dedicated Member
Dedicated Member
May 3, 2005
84
0
52
No mate had a job interview and got the job so will be busy over next few weeks, I'll see if I can get my offline server back up at the weekend and try ...

Viper
 
Upvote 0