|
|
Source code |
1 2 3 4 |
trySkill("Savage Whirlwind", fdvars.Triggered or ((PlayerMana >= 390) and (TargetHealthPct <= 30)))
tryAction("20", fdvars.Triggered or (TargetHasBuff("Vulnerable") and (PlayerRage >= 25) and (not(Race == "Beast" or Race == "Humanoid"))))
trySkill("Attack Weakener", fdvars.Triggered or (IsTargetBoss and TargetHasBuff("Vulnerable") and PlayerMana >= 210 and PlayerRage < 10))
trySkill("Open Flank", fdvars.Triggered or (TargetHasBuff("Vulnerable") and PlayerRage >= 10))
|
This post has been edited 1 times, last edit by "frafall" (May 24th 2014, 3:49pm)
|
|
Source code |
1 |
vars.Race = function () return UnitRace("target") end
|
This post has been edited 4 times, last edit by "BlankMinded" (May 24th 2014, 8:11pm)
|
|
Source code |
1 2 3 |
local cooldown, remain = GetSkillCooldown(tab, slot)
if remain and remain <= config.CutCD then
UseSkill(tab, slot)
|

|
|
Source code |
1 2 3 4 |
UseSkill(x,y) pr(GetSkillCooldown(x,y)) wait 0.2 pr(GetSkillCooldown(x,y)) |

This post has been edited 2 times, last edit by "frafall" (May 25th 2014, 5:54am)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
function TestCutCD(tab, slot)
if not tab or not slot then
api.FDMsg("Please use: '/fdiyce TestCutCD tab slot' where tab,slot indicates the skill to use from skillbook.")
return
end
if GotTarget and IsEnemy and not TargetIsDead then
try("skill", ""..tab..","..slot, true)
local cooldown, remain = GetSkillCooldown(tab, slot)
api.FDMsg(string.format("%.3f CD %.2f/%.2f", GetTime(), cooldown, remain))
else
api.FDMsg("Please target a mob before testing this")
end
end
|
Quoted
25.781 CD 1.00/0.00 0.000 Charged Chop, 1s cooldown
25.945 CD 1.00/0.00 0.164 Cooldown not triggered
26.117 CD 1.00/0.90 0.336 Cooldown started 0.1s ago - at 0.236
26.273 CD 1.00/0.80 0,492 Cooldown started 0.2s ago - at 0.292
This post has been edited 1 times, last edit by "frafall" (May 25th 2014, 1:20pm)
This post has been edited 1 times, last edit by "BlankMinded" (May 25th 2014, 7:19pm)
|
|
Source code |
1 |
/run for k,v in pairs(_G) do if string.find(k,"SLASH_CAST") then DEFAULT_CHAT_FRAME:AddMessage(k.." = "..v) end end |
|
|
Source code |
1 |
/run for k,v in pairs(SlashCmdList) do DEFAULT_CHAT_FRAME:AddMessage(k.." = "..type(v)) end |
|
|
Source code |
1 2 |
/run csbn = CastSpellByName
/run CastSpellByName=function(n) DEFAULT_CHAT_FRAME:AddMessage("CastSpellByName called") csbn(n) end
|
|
|
Source code |
1 |
/run CastSpellByName=csbn |
|
|
Source code |
1 |
SlashCmdList["CAST"](nil, "Charged chop") |
This post has been edited 1 times, last edit by "pietroasp" (May 26th 2014, 1:04am)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 |
local fd = FuzzyDIYCE
local api = fd.API
local fdvars = fd.FDVars
local ext = fd.Extensions
local ExtNotify = ext.Notification
--
-- Try to get the damage done in log as well
--
local prev = 0
function DamageDone(event)
local now = GetTime()
if now > prev then
ExtNotify.Message(string.format("%s; %s; %s; %s; %s", _source, _damage, _target, _skill, _type))
prev = now
end
end
-- Register event
api.RegisterForEvent(DamageDone, "COMBATMETER_DAMAGE")
-- Set the environment for the scripts to run in
api.SetDefaultScriptApartment()
local bleeds = {500081}
function TestWWD(...)
if GotTarget and IsEnemy and not TargetIsDead then
local BleedTimer = api.CreateFDTimer("Bleed", 0, 1)
local t_bleed = api.GetFDTimer("Bleed")
trySkill("Slash", PlayerRage >= 25, BleedTimer(8))
trySkill("Charged Chop", PlayerMana >= 260)
trySkill("Tactical Attack", TargetHasBuff(bleeds) and PlayerRage >= 15)
trySkill("Probing Attack", PlayerRage >= 20 and not TargetHasBuff("Vulnerable"))
trySkill("Open Flank", TargetHasBuff("Vulnerable") and PlayerRage >= 10)
ExtNotify.Message(string.format("timer; %.4f; rage; %d; mana; %d; bleed; %s; vulnerable; %s",
t_bleed, PlayerRage, PlayerMana,
tostring(TargetHasBuff(bleeds)), tostring(TargetHasBuff("Vulnerable"))))
end
end
|
This post has been edited 2 times, last edit by "frafall" (May 27th 2014, 2:59pm)

Quoted
Statistics time 14.59s
Total skills used: 31 (2.12/s)
Charged Chop: 17 (1.16/s)

This post has been edited 6 times, last edit by "frafall" (May 29th 2014, 9:03pm)
Quoted
Click Frequenc CutCD FakeGCD Avg Runs
Test1 250ms 100ms 250ms 1.06 1.09 1.03 1.09 1.05 1.05
Test2 250ms 100ms 250ms 1.09 1.10 1.09 1.10 1.10 1.04
Test3 250ms 100ms 250ms 1.03 1.10 0.97 0.98 1.05 1.04
Test4 250ms 100ms 250ms 1.06 1.08 1.04 1.07 1.07 1.05
Test5 250ms 100ms 250ms 1.05 1.06 1.05 1.06 1.08 1.02
Quoted
Click Frequency CutCD FakeGCD Per Sec
Test1 250ms 100ms 250ms 1.06 1.08 1.04 1.07 1.03 1.09
Test2 250ms 100ms 250ms 1.07 1.06 1.06 1.05 1.14 1.06
Test3 250ms 100ms 250ms 0.86 0.86 0.81 0.87 0.85 0.89
Test4 250ms 100ms 250ms 1.04 1.02 1.04 1.08 1.05 1.03
Test5 250ms 100ms 250ms 0.88 0.88 0.89 0.91 0.92 0.79
This post has been edited 5 times, last edit by "frafall" (May 31st 2014, 9:24am)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
local fd = FuzzyDIYCE
local api = fd.API
local fdvars = fd.FDVars
local ext = fd.Extensions
local script = fd.Scripts.compiled
-- Set the environment for the scripts to run in
api.SetDefaultScriptApartment()
local state = 0
local stamp = 0
function UpdateLatency(skill)
local name = string.gsub(skill, "_", " ")
-- Kick off a test attack
if state == 0 then
trySkill(name, true)
stamp = GetTime()
state = 1
-- We done attack, waiting for cooldown to start
elseif state == 1 then
local inCD, remain = isInCooldown(name)
if inCD then
api.FDMsg(string.format("Cooldown for skill '%s' started, latency %.4f", name, GetTime()-stamp))
state = 2
end
-- We got cooldown, waiting for it to finish
elseif state == 2 then
local inCD, remain = isInCooldown(name)
if not inCD then
api.FDMsg(string.format("Cooldown for skill '%s' finished, total %.4f", name, GetTime()-stamp))
state = 0
end
end
end
|
Quoted
Cooldown for skill 'Charged Chop' started, latency 0.3750
Cooldown for skill 'Charged Chop' finished, total 1.3750
Cooldown for skill 'Charged Chop' started, latency 0.3125
Cooldown for skill 'Charged Chop' finished, total 1.3125
Cooldown for skill 'Charged Chop' started, latency 0.4375
Cooldown for skill 'Charged Chop' finished, total 1.3740
Cooldown for skill 'Charged Chop' started, latency 0.3125
Cooldown for skill 'Charged Chop' finished, total 1.3125
This post has been edited 5 times, last edit by "frafall" (Jun 1st 2014, 6:00pm)