Skip to content

Instantly share code, notes, and snippets.

View Road-block's full-sized avatar
💭
👽

Road-block

💭
👽
View GitHub Profile
@Road-block
Road-block / 2022-11-23 08.18.35 Error - 14708.txt
Created November 23, 2022 06:25
3.4.1.46722 Wrath Classic PTR crash logs
==============================================================================
World of Warcraft: Test Build (build 46722)
Exe: F:\Games\World of Warcraft\_classic_ptr_\WowClassicT.exe
Command: "F:\Games\World of Warcraft\_classic_ptr_\WowClassicT.exe" -launcherlogin -uid wow_classic_ptr
Time: Nov 23, 2022 8:18:35.984 AM
User:
Computer:
------------------------------------------------------------------------------
@Road-block
Road-block / transcriptor.lua
Last active April 11, 2020 12:03
Razorgore
"<867.66 21:13:19> [ENCOUNTER_START] 610#Razorgore the Untamed#9#40", -- [23]
"<867.68 21:13:19> [IsEncounterInProgress()] true", -- [24]
"<872.54 21:13:24> [IsEncounterInProgress()] false", -- [25]
"<962.83 21:14:54> [IsEncounterInProgress()] true", -- [26]
"<966.09 21:14:58> [IsEncounterInProgress()] false", -- [27]
"<1014.70 21:15:46> [IsEncounterInProgress()] true", -- [28]
"<1027.63 21:15:59> [IsEncounterInProgress()] false", -- [29]
"<1056.40 21:16:28> [IsEncounterInProgress()] true", -- [30]
"<1059.65 21:16:31> [IsEncounterInProgress()] false", -- [31]
"<1101.32 21:17:13> [IsEncounterInProgress()] true", -- [32]
@Road-block
Road-block / bigcd.lua
Created October 23, 2017 21:17
1-button wall/reck/retaliation
-- 1 = Battle (Retaliation), 2 = Defensive (Shield Wall), 3 = Berserker (Recklessness) Copy the 2nd line in a macro only.
/run local p={"Retaliation","Shield Wall","Recklessness"}for s,a in ipairs(p)do local _,_,o=GetShapeshiftFormInfo(s)if(o)then CastSpellByName(a)break;end;end
@Road-block
Road-block / partial_gui.lua
Created September 25, 2017 11:41
pfUI scrollbuttons patch
child.deco_up = CreateFrame("Button", nil, child)
child.deco_up:SetPoint("TOPLEFT", child, "TOPLEFT", -4, 4)
child.deco_up:SetPoint("BOTTOMRIGHT", child, "TOPRIGHT", 4, -spacing)
child.deco_up:SetFrameStrata("DIALOG")
child.deco_up:SetFrameLevel(128)
child.deco_up:SetScript("OnClick", function()
local scroll = this:GetParent()
local current = scroll:GetVerticalScroll()
local new = current - 25
local max = scroll:GetVerticalScrollRange() + spacing
@Road-block
Road-block / smart_eat_drink.lua
Last active September 24, 2017 03:44
smart eat / drink macro (vanilla)
/run local e,d,s,u,a,p,x,z,f,b,_="INV_Misc_Fork&Knife","INV_Drink_07",strfind,UnitBuff,UseAction,"player",115,116;for i=1,32 do f=(s((u(p,i))or"",e))if(f)then x=nil end;b=(s((u(p,i))or"",d))if(b)then z=nil end;end;_=((x)and a(x))or((z)and a(z))
@Road-block
Road-block / core.lua
Created December 13, 2016 20:19
Darker UI script
local GetChildrenTree
local f = CreateFrame("Frame")
f:SetScript("OnEvent",function()
GetChildrenTree(UIParent)
end)
f:RegisterEvent("PLAYER_ENTERING_WORLD")
function GetChildrenTree(Parent)
if Parent:GetChildren() then
for _, Child in pairs({Parent:GetChildren()}) do
for _,r in pairs({Child:GetRegions()}) do
@Road-block
Road-block / ShaguScore.lua
Created January 19, 2016 11:05
ShaguScore de-globalized
local scoredItemTypes = { INVTYPE_2HWEAPON, INVTYPE_CHEST, INVTYPE_CLOAK,
INVTYPE_FEET, INVTYPE_FINGER, INVTYPE_HAND, INVTYPE_HEAD, INVTYPE_HOLDABLE,
INVTYPE_LEGS, INVTYPE_NECK, INVTYPE_RANGED, INVTYPE_RELIC, INVTYPE_ROBE, INVTYPE_SHIELD,
INVTYPE_SHOULDER, INVTYPE_TRINKET, INVTYPE_WAIST, INVTYPE_WEAPON,
INVTYPE_WEAPONMAINHAND, INVTYPE_WEAPONOFFHAND, INVTYPE_WRIST,
-- deDE
"Schusswaffe", "Zauberstab", "Armbrust",
-- enGB
"Gun", "Wand", "Crossbow" }
/script local _,_,i=strfind(GetInventoryItemLink("player",18),"\124Hitem:(%d+)")local _,_,_,_,_,p=GetItemInfo(i)local t={}t.Bows="Bow"t.Guns="Gun"t.Crossbows="Crossbow"t.Thrown="Throw"CastSpellByName((string.gsub(t[p],"^([^T])","Shoot %1")))
/script local a;if LootFrame:IsVisible() then a=GetNumLootItems();for i=a,1,-1 do LootSlot(i);end CloseLoot();else CastSpellByName("Pick Pocket");end
@Road-block
Road-block / gist:0f86d5ea6dbe36520e90
Created December 30, 2015 20:57
druid swiftshift macro
/run local g,c=GetShapeshiftFormInfo,CastShapeshiftForm;local gf;for f=1,6 do local _,_,a=g(f);if a~=nil then gf=f;break end end if gf~=nil then c(gf) end if IsAltKeyDown() then c(2) elseif IsShiftKeyDown() then c(3) else c(1) end