local areauid = 1
local mobuid = 1
local mFunc = {}
local dMob
mobiletable[areauid][mobuid] = mFunc
function mFunc:LoadMob(caller, arg)
dMob = world.D_MOBILE()
world.init_mobile(dMob, mobuid, areauid);
world.rename_mobile(dMob, "Seraph")
return dMob;
end
function mFunc:OnDeath(caller, arg)
world.interpret_mobile(dMob, "say You killed me " .. caller.name .. " you @$@#!")
end
I went into the lua dir and ran startup, but beyond that…I'm not sure where to even begin. Had I taken the time to install Lua myself, I may have a bit of an idea on what to do, but I got lazy. Also, the 'C++ forbids…' line is scaring me. :sad:
Ideas?