/run SetCVar("fstack_preferParentKeys", 0)
8.2.5 이전처럼 프레임명 보고싶을때 이렇게 입력하면됨
fstack_preferParentKeys 0 |
fstack_preferParentKeys 1 |
WOW 스크립트 저장소
local _login = CreateFrame("FRAME")
_login:RegisterEvent("PLAYER_ENTERING_WORLD")
_login:SetScript("OnEvent", function()
if not AreAccountAchievementsHidden() then
ShowAccountAchievements(0)
end
_login:UnregisterEvent("PLAYER_ENTERING_WORLD")
end)
로그인할때 자동으로 적용됨
EnUS--Spell Alert
local _SAt = {}
local _SAn = {}
local _SAch = IsInGroup(2) and "INSTANCE_CHAT" or IsInRaid() and "RAID" or IsInGroup(1) and "PARTY" or "YELL"
_SAt = {
--[spellID] = true, --spellName
[47788] = true, --수호 영혼
[33206] = true, --고억
} --타게팅
_SAn = {
--[spellID] = true, --spellName
[62618] = true, --방벽
[64843] = true, --천찬
} --논타겟
local alert=CreateFrame("Frame")
alert:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
alert:SetScript("OnEvent", function(...)
local _,combatEvent,hideCaster,sourceGUID,sourceName,sourceFlags,sourceRaidFlags,destGUID,destName,destFlags, destRaidFlags,spellID,spellName,_,param1,_,_,param4 = CombatLogGetCurrentEventInfo()
if combatEvent=="SPELL_CAST_SUCCESS" and sourceGUID == UnitGUID("player") then
if _SAt[spellID] and destGUID ~= UnitGUID("player") then
SendChatMessage(destName.." 님께 "..GetSpellLink(spellID), _SAch)
elseif _SAn[spellID] then
SendChatMessage(GetSpellLink(spellID).." 사용!", _SAch)
end
end
end)
--Spell Alert
local _SAt = {}
local _SAn = {}
local _SAch = IsInGroup(2) and "INSTANCE_CHAT" or IsInRaid() and "RAID" or IsInGroup(1) and "PARTY" or "YELL"
_SAt = {
--[spellID] = true, --spellName
[47788] = true, --Guardian Spirit
[33206] = true, --Pain Suppression
} --targeting spells
_SAn = {
--[spellID] = true, --spellName
[62618] = true, --Power Word: Barrier
[64843] = true, --Divine Hymn
} --non targeting spells
local alert=CreateFrame("Frame")
alert:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
alert:SetScript("OnEvent", function(...)
local _,combatEvent,hideCaster,sourceGUID,sourceName,sourceFlags,sourceRaidFlags,destGUID,destName,destFlags, destRaidFlags,spellID,spellName,_,param1,_,_,param4 = CombatLogGetCurrentEventInfo()
if combatEvent=="SPELL_CAST_SUCCESS" and sourceGUID == UnitGUID("player") then
if _SAt[spellID] and destGUID ~= UnitGUID("player") then
SendChatMessage(GetSpellLink(spellID).." on "destName, _SAch)
elseif _SAn[spellID] then
SendChatMessage(GetSpellLink(spellID).." up!", _SAch)
end
end
end)
/run SetCVar("chatClassColorOverride", 1);ReloadUI();
--채팅창 이름 직업색상 표시
for k in next, getmetatable(ChatTypeInfo).__index do
SetChatColorNameByClass(k, true)
end
SetCVar("showArenaEnemyFrames", 1)
1. 크기/ 위치조정
if not IsAddOnLoaded("Blizzard_ArenaUI") then LoadAddOn("Blizzard_ArenaUI") end
for k=1, MAX_ARENA_ENEMIES do
local AF=_G["ArenaEnemyFrame"..k];
AF:SetScale(1); --창 크기
AF:ClearAllPoints();
if k == 1 then
AF:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", 50, -250); -- 프레임 위치
else
AF:SetPoint("TOPRIGHT", _G["ArenaEnemyFrame"..(k - 1)], "TOPRIGHT", 0, -100); -- 프레임 간격
end
AF.SetPoint = function() end;
end
Script (다소 제한적임)
/run LoadAddOn("Blizzard_ArenaUI");local AF=ArenaEnemyFrames;AF:Show();AF:SetScale(1);AF:ClearAllPoints();AF:SetPoint("CENTER", UIParent, "CENTER", 0, 0);AF.SetPoint = function() end
2. 테스트용 스크립트
/run LoadAddOn("Blizzard_ArenaUI") ArenaEnemyFrames:Show() ArenaEnemyFrame1:Show() ArenaEnemyFrame2:Show() ArenaEnemyFrame3:Show() ArenaEnemyFrame1CastingBar:Show() ArenaEnemyFrame2CastingBar:Show() ArenaEnemyFrame3CastingBar:Show()
for i = 1, MAX_BOSS_FRAMES do
local f = _G["Boss"..i.."TargetFrame"]
f:UnregisterAllEvents()
f.Show = function() end
f:Hide()
end -- 보스프레임 숨기기
2. Move
local BF
for i=1, MAX_BOSS_FRAMES do
BF=_G["Boss"..i.."TargetFrame"];
BF:SetScale(1); --프레임 크기
BF:ClearAllPoints();
if i == 1 then
BF:SetPoint("TOPRIGHT", UIParent, "TOPRIGHT", 50, -250); --프레임 위치
else
BF:SetPoint("TOPRIGHT", _G["Boss"..(i - 1).."TargetFrame"], "TOPRIGHT", 0, -100); --프레임 간격
end
BF.SetPoint = function() end;
end
Script
/run local B;for i=1, MAX_BOSS_FRAMES do B=_G["Boss"..i.."TargetFrame"];B:SetScale(1);B:ClearAllPoints();B:SetPoint("CENTER",UIParent,"CENTER",0,0+(1-i)*100);B.SetPoint = function()end;end
if not IsAddOnLoaded("Blizzard_BattlefieldMap") then
LoadAddOn("Blizzard_BattlefieldMap")
end;
BattlefieldMapFrame:SetScale(1.5);
Script
/run LoadAddOn("Blizzard_BattlefieldMap");BattlefieldMapFrame:SetScale(1.5)
예시 |
/run local p,N,c,n=0 for b=0,4 do for s=1,GetContainerNumSlots(b) do n=GetContainerItemLink(b,s) if n and string.find(n,"9d9d9d") then N={GetItemInfo(n)} c=GetItemCount(n) p=p+(N[11]*c)UseContainerItem(b,s) print(n) end end end print(GetCoinText(p))
/run for b=0,4 do for s=1,GetContainerNumSlots(b)do local K,D=GetContainerItemLink(b,s),GetContainerItemID(b,s);if K and MerchantFrame:IsShown()then if IsArtifactPowerItem(D)or string.find(K,"9d9d9d")then UseContainerItem(b,s)print(K)end;end;end;end
local LOC=LossOfControlFrame;
LOC.RedLineTop:Hide();
LOC.blackBg:Hide();
LOC.RedLineBottom:Hide();
LOC:SetScale(0.7); --Scale
select(2,LossOfControlFrame:GetChildren()):SetAlpha(0)
Scale TimeLeft.SecondsTextLossOfControlFrame.TimeLeft:SetScale(0.5) -- 남은시간 크기
--"초" 숫자 크기조절
hooksecurefunc("LossOfControlFrame_SetUpDisplay", function(self)
local SC=self.TimeLeft.SecondsText;
local F,S,O=SC:GetFont();
SC.scrollTime = nil;
SC:SetFont(F,12,O)
end)
LossOfControlFrame.TimeLeft.SecondsText:SetAlpha(0)-- "초" 숨김
API