留言

MayHill · 2022-11-04 16:06:20

快速賣出舊版本裝備的功能 可以直接改QuickVendor.lua 裡的GEAR_OUTLEVEL_TABLE 簡易修復 
使用在60級滿等的角色上 我自己是沒發現問題 非滿等角色就不知道了
打舊本的時候方便很多  以下資訊供您參考 

local GEAR_OUTLEVEL_TABLE = {
    [0] = 30,   -- vanilla gear uses a different check, this is here just because
    [1] = 35,   -- BC gear is outdated when player reaches level 90
    [2] = 35,   -- wotlk gear is also outdated when player reaches level 90
    [3] = 35,  -- cata gear is outdated when player reaches level 100
    [4] = 40,  -- pandaria gear is also outdated when player reaches level 100
    [5] = 45,  -- draenor gear is outdated when player reaches level 110
    [6] = 50,  -- legion gear is outdated when player reaches level 120
    [7] = 60,  -- BFA gear is outdated when player reaches level 130
    [8] = 130,  -- ...
    [9] = 130,
    [10] = 130,
};

Dololo · 2022-11-04 17:15:36

感謝分享~~
50級以前可以隨意選擇地圖來練等,所以也沒有分哪個地圖一定是幾等,所以是不是該把 1~7 全部寫 60 呢? 🤔

MayHill · 2022-11-04 17:46:30

以下是過期裝備的判斷function
上面的table應該只是給一個數值讓玩家等級帶進判斷而已  判斷的基礎是裝等還有裝備需求等級
如果全部60 會造成非滿等角色 拿到已經為過期裝備的物品 但依然被判斷為非過期裝備

老實說我是覺得沒啥太大差別 畢竟用這個功能的人應該都是滿等回去刷舊本

        -- *** Outdated gear ***
        if (((quality == 3) or (quality == 4)) and ((itemClassId == LE_ITEM_CLASS_ARMOR) or (itemClassId == LE_ITEM_CLASS_WEAPON)) and (equipSlot ~= "")) then
            if (EXTVENDOR_DATA['config']['quickvendor_oldgear']) then
                -- always ignore items from the account's expansion level (or higher)
                if (expacID < GetAccountExpansionLevel()) then
                    -- ignore items with a minimum level requirement within 10 levels of the player, regardless of item level or expac (timewarped fix)
                    if (itemReqLevel < (playerLevel - 10)) then
                        if ((playerLevel >= (GEAR_OUTLEVEL_TABLE[expacID] or 999)) or ((expacID == 0) and (playerLevel >= (itemLevel + 12)))) then
                            return true, L["QUICKVENDOR_REASON_OUTDATED_GEAR"], "Outdated rare/epic equipment";

BTW 我只看大概 也不是很懂code 以上分析都是憑感覺豪洨的 實際涉及的判斷function可能根本跟我說的運作方式不一樣www