와우 인벤 개발자 애드온 포럼

전체보기

모바일 상단 메뉴

본문 페이지

[잡담] 애드온이 업데이트가 안되서 직접 수정해보고싶습니다

아이콘 흑빛토끼
댓글: 3 개
조회: 774
2020-10-26 10:40:40
local addonName, addon = ...


local classLoader = addon:NewModule("classLoader", "AceEvent-3.0")
local class
local L = LibStub("AceLocale-3.0"):GetLocale("bIamPrepared")


local _G = _G
local tinsert = table.insert
local tremove = table.remove
local tsort = table.sort
local wipe = table.wipe
local type = type
local pairs = pairs
local floor = math.floor
local ceil = math.ceil
local LoadAddOn = LoadAddOn
local PlaySound = PlaySound

local function getClassName()
local class = select(2, UnitClass('player'))
return class:sub(1,1) .. class:sub(2):lower()
end

-------------------------------------------------------------------------------
-- Frame functions
-------------------------------------------------------------------------------

function classLoader:OnInitialize()
--addon:Print("classLoader:OnInitialize()")
class = getClassName()
end

function classLoader:OnEnable()
--addon:Print("classLoader:OnEnable()")
local loaded, message = LoadAddOn(addonName .. '_' .. class);
if ( not loaded) then
PlaySound(SOUNDKIT.TELL_MESSAGE);
--addon:Print("'"..addonName .. '_' .. class.."' Addon Error: "..message);
return
end

end

function classLoader:OnDisable()
--addon:Print("classLoader:OnDisable()")
end

function classLoader:GetClassModule()
return LibStub("AceAddon-3.0"):GetAddon(addonName .. '_' .. class)
end


function classLoader:CommonScanSpells(currentActiveSpells)
--wipe(currentActiveSpells)

-- Specialization spells (Active)
local name, texture, offset, numSpells = GetSpellTabInfo(2)
for id=1, numSpells do
if not IsPassiveSpell(id + offset, "book") then
local spellName, _, icon, _, _, _, spellid = GetSpellInfo(id + offset, "book")
local slotType, slotid = GetSpellBookItemInfo(id + offset, "book")
spellid = addon:GetOriginSpellId(spellid)
if slotType == "FLYOUT" then
local _, _, numSlots, isKnown = GetFlyoutInfo(slotid)
for i=1, numSlots do
local foSpellID, foOverrideSpellID, foIsKnown, foSpellName, foSlotSpecID = GetFlyoutSlotInfo(slotid, i)
if foIsKnown then
tinsert(currentActiveSpells, {foSpellName, GetSpellTexture(foOverrideSpellID), foSpellID})
end
end
elseif slotType == 'SPELL' then
tinsert(currentActiveSpells, {spellName, icon, spellid})
end
end
end

-- racial spells
name, texture, offset, numSpells = GetSpellTabInfo(1) -- general skill tab
for id=1, numSpells do
if not IsPassiveSpell(id + offset, "book") then
local spellName, subSpellName, icon, _, _, _, spellid = GetSpellInfo(id + offset, "book")
local slotType, slotid = GetSpellBookItemInfo(id + offset, "book")
if slotType == 'SPELL' and subSpellName == L["종족 특성"] then
tinsert(currentActiveSpells, {spellName, icon, spellid})
end
end
end

return currentActiveSpells
end

이런식으로 되어있는데 
마법책에 보면 
소둠땅전에는 총2칸이던 스킬창이 
소둥땅되면서 3칸으로 바뀌어서 
3전째인 직업특성 스킬이 표시가안됩니다
그래서 3번째직업특성이 보이게 수정만하면될거 같은데 
어떤걸 바꿔하야는지 잘모르겟습니다
알려주시면 감사합니다

Lv30 흑빛토끼

모바일 게시판 하단버튼

댓글

새로고침
새로고침

모바일 게시판 하단버튼

지금 뜨는 인벤

더보기+

모바일 게시판 리스트

모바일 게시판 하단버튼

글쓰기

모바일 게시판 페이징

최근 HOT한 콘텐츠

  • 와우
  • 게임
  • IT
  • 유머
  • 연예
AD