News Information Twitch Warcraftlogs
Аватара пользователя
Stillalive
Floodneral
Class: Mage
Nickname: Stillalive
Сообщения: 1543
Rank: Floodneral
Floodneral
Stillalive

[MACRO] MAGE

Сообщение Stillalive » 02 дек 2015, 01:37

Общие для всех классов макросы.

Скрипт для моего интерфейса
local eventframe=CreateFrame("Frame")
eventframe:RegisterEvent("ADDON_LOADED")
eventframe:RegisterEvent("PLAYER_ENTERING_WORLD")
eventframe:SetScript("OnEvent", function(self, event, addon)
if addon=="Blizzard_TimeManager" or event=="PLAYER_ENTERING_WORLD" then
for i,v in pairs({
PlayerFrameTexture,
TargetFrameTextureFrameTexture,
PetFrameTexture,
PartyMemberFrame1Texture,
PartyMemberFrame2Texture,
PartyMemberFrame3Texture,
PartyMemberFrame4Texture,
PartyMemberFrame1PetFrameTexture,
PartyMemberFrame2PetFrameTexture,
PartyMemberFrame3PetFrameTexture,
PartyMemberFrame4PetFrameTexture,
FocusFrameTextureFrameTexture,
TargetFrameToTTextureFrameTexture,
FocusFrameToTTextureFrameTexture,
MinimapBorder,
MiniMapMailBorder,
MiniMapBattlefieldBorder,
MiniMapLFGFrameBorder,
CastingBarFrameBorder,
FocusFrameSpellBarBorder,
TargetFrameSpellBarBorder,
select(1, TimeManagerClockButton:GetRegions()),
select(1, GameTimeFrame:GetRegions()),

BonusActionBarFrameTexture0,
BonusActionBarFrameTexture1,
BonusActionBarFrameTexture2,
BonusActionBarFrameTexture3,
BonusActionBarFrameTexture4,
MainMenuBarTexture0,
MainMenuBarTexture1,
MainMenuBarTexture2,
MainMenuBarTexture3,
MainMenuMaxLevelBar0,
MainMenuMaxLevelBar1,
MainMenuMaxLevelBar2,
MainMenuMaxLevelBar3,

MainMenuBarLeftEndCap,
MainMenuBarRightEndCap,

SlidingActionBarTexture0,
SlidingActionBarTexture1,
ShapeshiftBarLeft,
ShapeshiftBarMiddle,
ShapeshiftBarRight,
}) do
v:SetVertexColor(.1, .1, .1)
end
elseif addon=="Blizzard_ArenaUI" then
for i,v in pairs({
ArenaEnemyFrame1Texture,
ArenaEnemyFrame2Texture,
ArenaEnemyFrame3Texture,
ArenaEnemyFrame4Texture,
ArenaEnemyFrame5Texture,
}) do
v:SetVertexColor(.1, .1, .1)
end
end
end)
hooksecurefunc("ActionButton_Update", function(btn)
local name = _G[btn:GetName().."Name"]
name:Hide()
end)


MainMenuBarTexture0:Hide()
MainMenuBarTexture1:Hide()
MainMenuBarTexture2:Hide()
MainMenuBarTexture3:Hide()

MainMenuBarLeftEndCap:Hide()
MainMenuBarRightEndCap:Hide()

MainMenuMaxLevelBar0:Hide()
MainMenuMaxLevelBar1:Hide()
MainMenuMaxLevelBar2:Hide()
MainMenuMaxLevelBar3:Hide()

BonusActionBarFrameTexture1:Hide()
BonusActionBarFrameTexture2:Hide()
BonusActionBarFrameTexture3:Hide()
BonusActionBarFrameTexture4:Hide()


БАЗОВЫЕ МАКРОСЫ НА МАГА:

1. Скрип делает камни маны на 1 кнопку (Скрипт предназначен для ванилы)

/script local c=function(a) local f,d a="Mana "..a for i=0,4 do for k=1,GetContainerNumSlots(i) do d=GetContainerItemLink(i,k) or "" if strfind(d,a) then f = 1 end end end if not f then CastSpellByName("Conjure "..a) end end c "Ruby" c "Citrine"

Аватара пользователя
Thrusher
High Floodlord
Class: Paladin
Сообщения: 3367
Rank: High Floodlord
High Floodlord
Thrusher

Re: [MACRO] MAGE

Сообщение Thrusher » 22 ноя 2017, 10:44

Макросы (БК):

Удаляет имеющийся манаген и крафтит новый. На тот случай, если нужно обновить "заряды".
Код: Выделить всё
/run for bag = 0,4,1 do for slot = 1, 32, 1 do local name = GetContainerItemLink(bag,slot); if name and string.find(name,"Mana Emerald") then PickupContainerItem(bag,slot); DeleteCursorItem(); end; end; end
/cast Conjure Mana Emerald

Все "варианты" хелсстоунов на 1й кнопке.
Код: Выделить всё
#showtooltip Master Healthstone
/use item:22105:0:0:0:0:0:0:0
/use item:22104:0:0:0:0:0:0:0
/use item:22103:0:0:0:0:0:0:0


Спам бинда ванды без отмены атаки (вандоюзеры поймут).
Код: Выделить всё
#showtooltip Shoot
/castsequence !Shoot, !Shoot


Сет фокус макрос. Если под маусовером есть цель, то в фокус берется она, если маусовера нет, то работает как обычная команда /focus и можно взять в фокус свой таргет. Очень удобная байда.
Код: Выделить всё
/focus [target=mouseover,exists]; target

vdv


cron

Вход  •  Регистрация