Recent changes Random page
GAMING
Gaming
 
StarCraft Wiki
Super Smash Wiki
Halopedia
Diablo Wiki
FFXIclopedia
Grand Theft Wiki
See more...

User:Egingell

From WoWWiki

Jump to: navigation, search

Contents

/Sig

My Addons

!!EGLoader 
Loads my OnDemand addons.
Works as of patch 2.4.2.
BigSpender 
Confirm purchases over a preset cost.
Works as of patch 2.4.2.
ComboCounter 
Shows how many combo points your Druid or Rogue has.
Works as of patch 2.4.2.
CtrlInvite 
Special clicks on a player's name to ignore, add friend, invite to your guild, or invite to your group.
Works as of patch 2.4.2.
EasyDestroy 
Destroy an Item without that pesky "Are you sure?" popup.
Works as of patch 2.4.2.
JokeAddon 
Confuse and annoy your friends.
NoBoPWarning 
Bypasses the confirmation dialog when you're not grouped and you loot a BoP item.
Works as of patch 2.4.2.
NoBuff 
Automatically removes unsolicited buffs.
Works as of patch 2.4.2.
NoUIScreenshot 
Automatically hide UI when taking a screenshot.
Works as of patch 2.4.2.
OneClickBuyOut 
BuyOut the Auction item without confirmation.
Works as of patch 2.4.2.
OneSpiritResWarning 
Remove the second confirmation dialog when spirit rez'ing.
Works as of patch 2.4.2.
RememberTracking 
Remember what you were tracking and set tracking to that.
Works as of patch 2.4.2.
RepStanding 
Add standing name (Friendly, Honored, etc) to the watched reputation bar.
Works as of patch 2.4.2.
ServerRep 
Add a tooltip to the reputation frame that shows all your character's reputation for the current realm.
Works as of patch 2.4.2.
SkillsTip 
Add Weapon skill rating to the tooltip.
Works as of patch 2.4.2.
SmartEnchant 
Don't ask if you want to replace an enchantment if it's the same enchantment.
Broken and unfixable as of patch 2.4.0.
Stocker 
Automatically buy items from vendors to complete a stack.
Works as of patch 2.4.2.
TPMacroButton 
Use TinyPad to create movable Macro buttons.
TradesBar 
A clickable, movable, scalable toolbar with all your profs and some select spells on it.
Works as of patch 2.4.2.
UnInvite 
Add a "block" button to the static popup frame that asks if you want to accept the guild/duel/party/trade request.
Works as of patch 2.4.2.
WoW_Realm_Status 
Add the realm status to your PHP enabled website.
Works as of 05:48, 26 May 2008 (UTC).
XRayVision 
Adds contents of bags to the tooltip. Fixed for Lua 5.0
Works as of patch 2.4.2.

Note: Just because I have not confirmed an addon as functional, doesn't necessarily mean that it is not functional.

My Realms

My Guilds

My Characters

Treader

Jaguero

Naggirath

Grimely

Havis

Flaminio

Basselandi

Greybeerd

Pesch

Sillazee

Siltonna

User Functions

-- Returns a list of values in whatever order you specify in order and only those you specify in order.
-- Mostly useful for functions that return multiple values.
-- This function is horribly inefficient, I just wanted to see if it could be done.
ret1, ret2, ... retN = GetReturnValues(order, functionCall) -- [talk]
-- Return how many times needle is contained in haystack.
ret = CountChars(haystack, needle) -- [talk]
-- Imp strsub. Returns a string starting from start to length characters from start (identical to the PHP function of the same name).
ret = substr(string, start [, length]) -- [talk]
-- Split a string into groups of "length" each ending with "endChars" (identical to the PHP function of the same name).
ret = ChunkSplit(string [, length [, endChars]]) -- [talk]
-- Return the exact position the cursor is at based on scale.
x, y = GetCursorScaledPosition() -- [talk]
-- Unregister an event from all applicable frames.
UnregisterEventFromAllFrames(string) -- [talk]
-- Tell the API to stop listen for events (...)
Frame:UnregisterEvents(frame, string, ...) -- [talk]
-- Tell the API to listen for events (...)
Frame:RegisterEvents(frame, string, ...) -- [talk]
-- Register a slash command (add all commands at the end).
SlashCmdList_AddSlashCommand(name, func, ...) -- [talk]
-- Add a message to the chat frame when you gain or lose money.
-- PLAYER_MONEY Event -- [talk]
-- Make a simple context menu.
-- Context Menu Maker -- [talk]

What I think functions look like (or should look like) on the inside

strtrim

function strtrim(str, chars)
    if not chars then
        chars = " \t"
    end
    return string.match(str, "["..chars.."]*(.*)["..chars.."]*")
end

OpenAllBags

-- Helper function
local function AllBagsOpen(bags)
    for _,v in pairs(bags) do
        if not v:IsShown() then
            return false
        end
    end
    return true
end

function OpenAllBags(arg)
    local available_bags = {}
    for i=1, NUM_CONTAINER_FRAMES + NUM_BANKBAGSLOTS, 1 do
        local frame = getglobal("ContainerFrame"..i)
        if frame then
            available_bags[i] = frame
        end
    end
    if arg == true or arg == 1 then
        for _,v in pairs(available_bags) do
            v:Show()
            v:SetChecked(1)
        end
    elseif not arg then
        if AllBagsOpen(available_bags) then
            for _,v in pairs(available_bags) do
                v:Hide()
                v:SetChecked(0)
            end
        else
            for _,v in pairs(available_bags) do
                v:Show()
                v:SetChecked(1)
            end
        end
    else
        _ERRORMESSAGE('Usage: OpenAllBags([boolean])')
    end
end

getglobal

function getglobal(name)
    return _G[name]
end

EnableAllAddOns

function EnableAllAddOns()
    for i = 1, GetNumAddOns() do
        EnableAddOn(i)
    end
end

DisableAllAddOns

function DisableAllAddOns()
    for i = 1, GetNumAddOns() do
        DisableAddOn(i)
    end
end

mod

function mod(input, mod)
    local neg = 1
    if input < 0 then
        neg = -1
    end
    input = abs(input)
    mod = abs(mod)
    return neg * ((input / mod) - floor(input / mod)) * mod
end