mob spawn npcs

mississ1

Dedicated Member
Dedicated Member
Mar 23, 2007
81
0
32
i am after to make an npc that can spawn a mob if given a certain item etc. how do i use the npc_def txts to do this?
 

jewjewbee

Dedicated Member
Dedicated Member
May 5, 2007
99
2
35
[@main]
Hi <$USERNAME>, if you have a youritem, I can\
spawn some monsters for you.\
Do you have it?\
<Yes/@check>\
<Nevermind/@exit>
[@check]
#IF
CHECKITEM youritem 1
#ACT
TAKE youritem 1
MONGEN Yob 5 10 mapname coord(x) coord(y) spawns 5 yob mobs in a 10 square radius arround the map, x, y coords you set using Param1 (mapname), Param2(x), Param3(y)
break
#ELSESAY
You do not have what I require.\
<Close/@exit>
 
Upvote 0

mississ1

Dedicated Member
Dedicated Member
Mar 23, 2007
81
0
32
i have my npc text set at,
[@main]
Hello <$USERNAME> if you have a
woomahorn, i can\
spawn woomataurus for you.\
<i have one/@check> \
<i dont have one/@exit>
[@check]
#IF
CHECKITEM woomahorn 1
#ACT
TAKE woomahorn 1
MONGEN woomataurus 1 0 param1
0,param2 347,param3 198
break
#ELSESAY
you dont have the item needed.\
EXIT/@exit
but the mob wont spawn
 
Last edited:
Upvote 0

jewjewbee

Dedicated Member
Dedicated Member
May 5, 2007
99
2
35
i have my npc text set at,
[@main]
Hello <$USERNAME> if you have a
woomahorn, i can\
spawn woomataurus for you.\
<i have one/@check> \
<i dont have one/@exit>
[@check]
#IF
CHECKITEM woomahorn 1
#ACT
TAKE woomahorn 1
MONGEN woomataurus 1 0 0 347 198
break
#ELSESAY
you dont have the item needed.\
EXIT/@exit
that should work,
 
Upvote 0

Killmaster

Legend
Legendary
Golden Oldie
Loyal Member
Nov 13, 2003
3,967
27
274
i have my npc text set at,
[@main]
Hello <$USERNAME> if you have a
woomahorn, i can\
spawn woomataurus for you.\
<i have one/@check> \
<i dont have one/@exit>
[@check]
#IF
CHECKITEM woomahorn 1
#ACT
TAKE woomahorn 1
MONGEN woomataurus 1 0
param1 0
param2 347
param3 198
break
#ELSESAY
you dont have the item needed.\
EXIT/@exit

--------------
the param's should be on there own line. that should work fine.
 
Upvote 0

Bon

Legend
Legendary
Jul 29, 2004
6,741
342
330
Kent, UK
killmasters 1 is the right 1

or u can use this

MONGENEX map 260 256 mobname amount spread (or its spread then amount, pretty sure ammount > spread tho)

that all goes on same line, eg.

MONGENEX EvilMirf5KR 260 256 WarLordsGuard 1 1
 
Upvote 0

mississ1

Dedicated Member
Dedicated Member
Mar 23, 2007
81
0
32
anywhere else need to be updated for it to work? cos mob still aint spawning from npc
 
Upvote 0

koni

V.I.P
VIP
Mar 14, 2006
1,111
1
165
Southampton UK
ok, this is a script i made on bandet server when we had a mob spawn npc in the contest room, you will need to change the level requirements and monster names etc but it works 100% correctly as we had it on the go for quite a while, feel free to use it, obviously for it to work the monsters in the list need to be in the database, if you cant get this script to work you will be doing something wrong your end.

enjoy

for it to check items and take items just change the first section of the txt to an item check like km has on his script

spawn command explained:

[@dl1]
#ACT
Param1 0139 - map name
Param2 29 - cord x
Param3 29 - cord y
MonGen DemonLord 1 1 - monstername x1 level 1
close





[@main]
#IF
checklevel 50
#SAY
Go, and fight.....or something!\ \
By the way, do you want some <mobs/@spawnlist1> to fight also?\
#ELSESAY
Go and lvl some more u need to be 50 to use me!\

[@spawnlist1]
#if
CHECKMONMAP 0139 2
#act
goto @tomany
#elseact
goto @spawnlist

[@spawnlist]
#SAY
I see you are an experienced fighter\
Prehaps you would like to test yourself agaisnt\
some monsters?\
<DemonLord/@dl1> - <omaking/@hp1>\
<mutantknight/@mi12> - <SkeletonLord/@sklo>\
<next/@next2>

[@next2]
#say
continued\
<yimoogi/@fear> - <smugglerslord/@ds> - <mysticking/@lp> - <septicking/@go>\
<DragonMaster/@dm> - <Lucifer/@lu> - <DarkLord/@dl> - <Crusade/@cru> - <WarriorLord/@wlo>\
<exit/@exit>

[@dl1]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen DemonLord 1 1
close

[@kof1]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen Greatfoxspirit 1 1
close

[@hp1]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen OmaKing 1 1
close

[@mi12]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen Mutantknight 1 1
close

[@sklo]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen SkeletonLord 1 1
close

[@fof99]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen OmakingSpirit 1 1
close

[@fear]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen Yimoogi 1 1
close

[@ds]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen SmugglersLord 1 1
close

[@lp]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen MysticKing 1 1
close

[@go]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen SepticKing 1 1
close

[@wm]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen WiddowMaker 1 1
close

[@sv]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen SupremeVermin 1 1
close

[@gs]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen GeneticSnake 1 1
close

[@dm]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen DragonMaster 1 1
close

[@lu]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen Lucifer 1 1
close

[@dl]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen DarkLord 1 1
close

[@wl]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen WolfLord 1 1
close

[@cru]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen Crusade 1 1
close

[@wlo]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen WarriorLord 1 1
close

[@ch]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen CrystalHog1 1 1
close

[@vil]
#ACT
Param1 0139
Param2 29
Param3 29
MonGen Viperlord 1 1
close

[@tomany]
#say
Iam sorry no more then 2 monsters can be in the room\
when you use me to spawn mobs, kill whats here and\
remove pets you can bring your pets back in once\
the monster you choose has spawned\\
have fun\
<OK/@exit>
 
Last edited:
Upvote 0