Moving onto the mob scripts and I am now crashing the server when I try to defeat one of the required mobs.
When debugging the crash I get a break point at
Code: Select all
DSP_DEBUG_BREAK_IF(lua_isnil(L,-1) || !lua_isnumber(L,-1));
Please tell me it was something stupid I did with this:
Code: Select all
-----------------------------------
-- Area: FeiYin
-- NPC: Colossus
-----------------------------------
-----------------------------------
require("scripts/globals/keyitems");
-----------------------------------
-- onMobSpawn Action
-----------------------------------
function OnMobSpawn(mob)
end;
-----------------------------------
-- onMobDeath
-----------------------------------
function onMobDeath(mob, killer)
-- Curses, Foiled A-Golem!?
if(killer:hasKeyItem(SHANTOTTOS_NEW_SPELL)) then
killer:delKeyItem(SHANTOTTOS_NEW_SPELL);
killer:addKeyItem(SHANTOTTOS_EX_SPELL);
end
end;