Page 1 of 1

How do i get a mob to spawn in lua scripts?

Posted: Fri Aug 21, 2015 4:01 am
by ssj4puar
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

Re: How do i get a mob to spawn in lua scripts?

Posted: Fri Aug 21, 2015 6:14 am
by tabitaru
!

Re: How do i get a mob to spawn in lua scripts?

Posted: Fri Aug 21, 2015 7:45 am
by ssj4puar
thank you. i changed the positions last night but i had been up for 20 hours or something must had forgotten to restart the server. looks like its running fine.

Re: How do i get a mob to spawn in lua scripts?

Posted: Fri Aug 21, 2015 8:28 am
by tabitaru
!

Re: How do i get a mob to spawn in lua scripts?

Posted: Mon Sep 14, 2015 2:41 am
by tabitaru
!