How do i get a mob to spawn in lua scripts?
Posted: Fri Aug 21, 2015 4:01 am
at the moment fishing is a bust. So im trying to make a work around for a server that involves trading a giant shell bug to an NPC to spawn the NM so that people can fight it and get the drop. Using the Survival guide as that too has no code.
http://pastebin.com/0VDAdi7p
every time i trade a giant shell bug to the Survival guide the server spits out the following text.
[Debug] SpawnMob: mob <17396141> not found
[Error] luautils::onTrade: scripts/zones/Castle_Oztroja/npcs/Survival_Guide.lua:25. attempt to index a nul value
Ive checked the database tables and mobid 17396141 belongs to Odontotyrannus. I'm not quite sure why its refusing to spawn the mob. Is there somewhere else it has to be added?
PS: same thing happens when i run @spawnmob
http://pastebin.com/0VDAdi7p
every time i trade a giant shell bug to the Survival guide the server spits out the following text.
[Debug] SpawnMob: mob <17396141> not found
[Error] luautils::onTrade: scripts/zones/Castle_Oztroja/npcs/Survival_Guide.lua:25. attempt to index a nul value
Ive checked the database tables and mobid 17396141 belongs to Odontotyrannus. I'm not quite sure why its refusing to spawn the mob. Is there somewhere else it has to be added?
PS: same thing happens when i run @spawnmob