so i was looking at this buff lua and i wanted to know if anyone can make it so it casts on the target only if the target is 255+
this is what i am using but its for anylvl i tryed to edit it my self but i failed
plz and thx and +Rep if u can and it works!
Code:
local Buff_Message1 = "#buffup"
function OnChat_Buffzor(event, player, message, type, language)
if (message == Buff_Message1) then
if (player:IsInCombat() == true) then
player:SendAreaTriggerMessage("You cannot Buff Up in Combat!")
else
if (player:IsDead() == true) then
player:SendAreaTriggerMessage("You cannot Buff Up while Dead!")
else
player:CastSpellOnTarget(48068, player)
player:CastSpellOnTarget(48161, player)
player:CastSpellOnTarget(20217, player)
player:CastSpellOnTarget(48161, player)
player:CastSpellOnTarget(20217, player)
player:CastSpellOnTarget(48469, player)
player:CastSpellOnTarget(42995, player)
player:CastSpellOnTarget(48073, player)
end
end
end
end
RegisterServerHook(16, "OnChat_Buffzor