"I wrote Kaev a PM to translate it, he will do it asap"
hallo ich habe folgendes problem und zwar habe ich mein boss script fertig und habe da spells eingefügt soweit alles super nur das problem ist:
das der boss die spells sowort castet also nach vorgegebener zeit natürlich aber ich möchte das der boss ne abkling zeit hat.
zb habe ich den spell: KataKlysmus
und der spell hat normal 1 min bis er gecastet wird, problem ist der boss castet den sofort
wie kann man das beheben ??
danke.
hallo ich habe folgendes problem und zwar habe ich mein boss script fertig und habe da spells eingefügt soweit alles super nur das problem ist:
das der boss die spells sowort castet also nach vorgegebener zeit natürlich aber ich möchte das der boss ne abkling zeit hat.
zb habe ich den spell: KataKlysmus
und der spell hat normal 1 min bis er gecastet wird, problem ist der boss castet den sofort
wie kann man das beheben ??
danke.
Code:
-- Copyright (C) 2013 - 2014 Fire of Destiny <http://fire-of-destiny.com/>
-- Scripted my Xaver aka Mojo
local BOSS = 700101
local function Kataklysm(eventId, dely, calls, creature) --donerknal
creature:CastSpell(creature, 6343, true)
end
local function Dead(event, delay, pCall, creature, player, killed)
if (creature:GetHealthPct() <= 0) then -- Wenn Boss ToT < 0% Letzter Text
creature:SendUnitYell("Finish", 0) --Boss Schreit Text
creature:RemoveEvents()
end
end
local function Phase1(event, delay, pCall, creature, player, pMisc)
if (creature:GetHealthPct() <= 80) then
creature:RemoveEvents()
creature:SendUnitYell("Cast Kataklysmus", 0)
[COLOR="#00FF00"]creature:RegisterEvent(Kataklysm, 200, 1) --- Kataclysm = Spell, 200 ms, 1 = one cats[/COLOR]
creature:RegisterEvent(Dead, 1000, 0)
end
end
local function Start(event, creature, target, player)
creature:RegisterEvent(Phase1, 1000, 0)
end
RegisterCreatureEvent(BOSS, 1, Start)