티스토리 뷰
397 - Use UNIT_SPELL_CAST_SUCCEEDED for seeds (the true cast)
mysticalos
Do to a bug in transcriptor, which i filed here, we've been blinded to this being there all along. But it's there, tested myself. Most accurate timers i ever did see.
In fact, even if timer wasn't there at all, if you just add a flash and shake to the true cast, you can just move off that alone, right at 0, every time. it's wonderful
Here is my code example although you'll probably do it better. But it is still a million times cleaner then a damage hack with timing variations based on distance from the missles and what not.
local function warnSeeds() warnMoltenSeed:Show() specWarnMoltenSeed:Show() SeedsCountdown:Start(60) timerMoltenSeedCD:Start(60) end local function clearSeedsActive() seedsActive = false end function mod:UNIT_SPELLCAST_SUCCEEDED(uId, spellName) if spellName == GetSpellInfo(100386) and not seedsActive then -- The true molten seeds cast. self:SendSync("Seeds")--Send a sync out just in case somoene does not get this event. seedsActive = true timerMoltenInferno:Schedule(2.25)--Always delay Molten Inferno timer, cause it starts when seeds land. if self.Options.warnSeedsLand then--Warn after they are on ground, typical strat for normal mode. Time not 100% consistent. self:Schedule(2.25, warnSeeds) else self:warnSeeds() end self:Schedule(17.5, clearSeedsActive)--Clear active/warned seeds after they have all blown up. end end function mod:OnSync(event, arg) if event == "Seeds" and not seedsActive then--Fire event if you recieve a sync and have NOT already fired event off UNIT_SPELLCAST_SUCCEEDED seedsActive = true timerMoltenInferno:Schedule(2.25)--Always delay Molten Inferno timer, cause it starts when seeds land. if self.Options.warnSeedsLand then--Warn after they are on ground, typical strat for normal mode. Time not 100% consistent. self:Schedule(2.25, warnSeeds) else self:warnSeeds() end self:Schedule(17.5, clearSeedsActive)--Clear active/warned seeds after they have all blown up. end end
'Code' 카테고리의 다른 글
ElvUI 플러그인 식으로 따로 빼기 (1) | 2011.12.21 |
---|---|
ElvUI v3 DBM 스킨관련 문제 (1) | 2011.12.04 |
Bigwigs 씨앗 타이머 ticket (2) | 2011.09.22 |
Meat Edition, github 오픈 (0) | 2011.09.19 |
바람의천국님, 카피를 하셨다고 왜 말을 못하시나요 (1) | 2011.09.17 |
Meat Edition 리카운트 특징 (0) | 2011.04.12 |
최근에 올라온 글
최근에 달린 댓글
글 보관함
- Total
- 108,028
- Today
- 3
- Yesterday
- 36