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

Post Reply
User avatar
ssj4puar
Posts: 21
Joined: Tue May 26, 2015 12:02 am

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

Post by ssj4puar » 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

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

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

Post by tabitaru » Fri Aug 21, 2015 6:14 am

!
Last edited by tabitaru on Sun Oct 18, 2015 6:59 am, edited 1 time in total.

User avatar
ssj4puar
Posts: 21
Joined: Tue May 26, 2015 12:02 am

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

Post by ssj4puar » Fri Aug 21, 2015 7:45 am

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.

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

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

Post by tabitaru » Fri Aug 21, 2015 8:28 am

!
Last edited by tabitaru on Sun Oct 18, 2015 6:58 am, edited 1 time in total.

User avatar
tabitaru
Posts: 99
Joined: Sun Apr 12, 2015 4:49 am

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

Post by tabitaru » Mon Sep 14, 2015 2:41 am

!

Post Reply