function on_DoSpellSkill(Actor, TagActor, MagicID)
local Magic = MagicID
local D79 = actor:getVal_D(79)
if (Magic == 140) or (Magic == 26) or (Magic == 44) then--
actor:setVal_D(79,D79+1000)
end
end
function on_DoSpellSkill(Actor, TagActor, MagicID)
ctor:setVal_D(78)
ctor:setVal_D(79)
local D78 = actor:getVal_D(78)
local D79 = actor:getVal_D(79)
local Magic = MagicID
if (Magic == 140) or (Magic == 26) or (Magic == 44) then--
actor:setVal_D(78,D78+1000)
actor:setVal_D(78,D78+1000)
end
end
function on_DoSpellSkill(Actor, TagActor, MagicID)
--actor:setVal_D(78,0)
--actor:setVal_D(79,0)
local D78 = 0
local D79 = 0
if MagicID == 140 or MagicID == 26 or MagicID == 44 then
actor:setVal_D(78,D78+1000)
actor:setVal_D(79,D79+1000)
end
end
2021-05-28 13:13:25 {0219} [string "D:\MirServer\Mir200\LuaScripts\System\BindEvent.lua"]:73: attempt to index a nil value (global 'actor')
stack traceback:
[string "D:\MirServer\Mir200\LuaScripts\System\BindEvent.lua"]:73: in function 'on_DoSpellSkill'