
Сообщение от
Камурик
Корочее, я протестил твой код, он работает как ты и написал, слишком рано, т.е. без метки, нужно задержку дописать и будет идеально)
крч вместо этого
PHP код:
SendChatMessage(L.YellFrostBeacon, "SAY")
это
PHP код:
if not mod.tFrame then mod.tFrame = CreateFrame("frame") end
local d = .5
mod.tFrame:SetScript("OnUpdate",function(s,e)
d=d-e
if d < 0 then
local t = GetRaidTargetIndex("player")
if t then t = _G["RAID_TARGET_" ..t] t = "{".. t .."}" .. L.YellFrostBeacon .. "{".. t .."}" else t = L.YellFrostBeacon end
SendChatMessage(t, "SAY")
mod.tFrame:SetScript("OnUpdate",nil)
end
end)