Page 2 of 2

Re: Shantotto's quest line - 95% complete

Posted: Sat Dec 22, 2012 4:04 am
by ik2012
Got as far as creating the door .lua, seems to work OK...
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));
in lua_baseentity.cpp

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;
Thanks

Re: Shantotto's quest line - 95% complete

Posted: Sat Dec 22, 2012 11:31 am
by bluekirby0

Re: Shantotto's quest line - 100% complete

Posted: Sat Dec 22, 2012 1:37 pm
by ik2012
Thanks kirby

Quest is 100% now, patch in first post ^^

Re: Shantotto's quest line - 100% complete

Posted: Thu Jan 03, 2013 7:02 pm
by ik2012
R2179 per whasf :D