Download
(2Kb)
Download
Updated: 10-01-17 11:01 AM
Pictures
File Info
Compatibility:
Shadows of Argus (7.3.0)
Updated:10-01-17 11:01 AM
Created:01-05-14 12:12 PM
Downloads:5,009
Favorites:26
MD5:

Darkmoon Faire Cannon  Popular! (More than 5000 hits)

Version: 1.5.0
by: AlleyKat [More]

Automatically cancels the "Wings" buff on the Darkmoon Faire Cannon daily quest.
Because of latency defects, does not grant a 5/5 hit.
Experimental.

The default flying is 7.45 seconds, but you can set you own time via /dmfctimer slash command:

/dmfctimer your_time_in_seconds

something like /dmfctimer 7.4 will be ok
also you can run this command without any arguments, just to show current flying time

ALSO sometimes this addon can stuck during the game loading process or zone switching (very very slow HDD, or network lags), just reinit it with /dmfctimer slash command (no argument)

-- 1.5.0
reset timer to defaut 6.123456789 (dunno, funny number)

-- 1.4
a slash command to set the flying time

-- 1.3.3
6.2 TOC bump

-- 1.3.2
waiting zone id changing //o

-- 1.3.1
- bug: GetCurrentMapAreaID() unavailable during VERY slow login :C

-- 1.3
- bug: GetCurrentMapAreaID() unavailable during slow login
+ no longer use netstat to correct the landing time.
Optional Files (0)


Post A Reply Comment Options
Unread 01-14-18, 07:31 PM  
craigtrevor
A Kobold Labourer

Forum posts: 0
File comments: 4
Uploads: 0
replace all text in the "DarkmoonFaireCannon.lua" with this one:

Code:
    local BuffName = GetSpellInfo(102116); -- Magic Wings
     
    local fuba_dmf = CreateFrame("Frame", "fuba_dmf", UIParent);
    fuba_dmf:RegisterEvent("UNIT_AURA");
    fuba_dmf:Hide();
     
    fuba_dmf:SetScript("OnEvent", function(self, event, ...)
        if (event == "UNIT_AURA") and (GetCurrentMapAreaID() == 823) and (UnitAura("player", BuffName)) then
            fuba_dmf:UnregisterEvent("UNIT_AURA");
            local _, _, l = GetNetStats();
            l = 6.15 - l/2000;
            C_Timer.After(l, function()
                CancelUnitBuff("player", BuffName);
            end)
            C_Timer.After(10, function()
                fuba_dmf:RegisterEvent("UNIT_AURA");
            end)
        end
    end)
Worked perfectly for me in around 10 test flights.
Report comment to moderator  
Reply With Quote
Unread 03-05-15, 10:16 AM  
fuba
A Murloc Raider

Forum posts: 8
File comments: 19
Uploads: 0
replace all text in the "DarkmoonFaireCannon.lua" with this one:

Lua Code:
  1. local BuffName = GetSpellInfo(102116); -- Magic Wings
  2.  
  3. local fuba_dmf = CreateFrame("Frame", "fuba_dmf", UIParent);
  4. fuba_dmf:RegisterEvent("UNIT_AURA");
  5. fuba_dmf:Hide();
  6.  
  7. fuba_dmf:SetScript("OnEvent", function(self, event, ...)
  8.     if (event == "UNIT_AURA") and (GetCurrentMapAreaID() == 823) and (UnitAura("player", BuffName)) then
  9.         fuba_dmf:UnregisterEvent("UNIT_AURA");
  10.         local _, _, l = GetNetStats();
  11.         l = 7.5 - l/2000;
  12.         C_Timer.After(l, function()
  13.             CancelUnitBuff("player", BuffName);
  14.         end)
  15.         C_Timer.After(10, function()
  16.             fuba_dmf:RegisterEvent("UNIT_AURA");
  17.         end)
  18.     end
  19. end)

Works almost perfect but sometimes you just get 3 of 5 points, maybe it depends on latency calculation or framerate, dont really sure.
Last edited by fuba : 04-08-15 at 05:33 PM.
Report comment to moderator  
Reply With Quote
Unread 12-10-14, 04:36 PM  
Artick
A Kobold Labourer

Forum posts: 0
File comments: 2
Uploads: 0
This mod doesn't work at this moment. I tried it with all my chars and nothing. Hope you cant fix it. Thks in advance.
Report comment to moderator  
Reply With Quote
Unread 01-08-14, 08:22 AM  
pinderhughes
A Defias Bandit

Forum posts: 2
File comments: 1
Uploads: 0
Warning, questhelperlite breaks it, disable that or else it delays the trigger or something.
Last edited by pinderhughes : 01-08-14 at 02:12 PM.
Report comment to moderator  
Reply With Quote
Unread 01-07-14, 04:54 AM  
theslyrover
A Kobold Labourer

Forum posts: 0
File comments: 1
Uploads: 0
Thumbs up Works Perfectly!

I fail so hard at the darn cannon. This works perfectly, thank you!
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: