Some of them are just copy paste from other mobs / npc lua files with just the mobid changed.
trade, spawning and starting enmity from qmx.lua works. OnEngage or Onfight functions like popping pets work, hiding pop spot after mob dead too.
But noticed that stuff in onMobInitialize didn't work, like
Code: Select all
-----------------------------------
-- onMobInitialize Action
-----------------------------------
function onMobInitialize( mob )
-- Add regen and gain effects..
mob:addStatusEffect( EFFECT_REGEN, 50, 3, 0 );
mob:addStatusEffect( EFFECT_REGAIN, 7, 3, 0 );
end
Currently using a build of rev 3707 on local test server. Using Visual Studio 2010 express to compile.
Edit: even with a clean download from SVN, build and sql tables, mobs aren't receiving the effects in onMobInitialize.