I was wondering if anyone has a list with all the WoW arcemu lua function arguments.
ex:
function This_Function(Unit, event)
I also get an error(:3: attempt to index local 'player' (a number value)) whenever a spell is cast with
Code:
function Damage_Or_Heal(Unit, event, player)
if(player:GetCurrentSpellId() == 49895) then
if(Unit:IsFriendly(target) == "True") then
Player:Heal(Unit, 49895, 665)
player:SendAreaTriggerMessage("All skills at max Have fun!")
end
if(Unit:IsFriendly(target) == "False")then
Unit:DealDamage(Unit, 443, 49895)
end
end
end
RegisterServerHook(10, "Damage_Or_Heal")