魔獸世界修改DBC檔案以更改遊戲模型的方法2007-02-24 19:21
所需要的工具有:MyWarCraftStudio - 從客戶端MPQ檔案里提取DBC檔案
WDBtoCSV - 將WDB檔案轉換成CSV檔案,以獲得物品的編號
DBCUtil - 解壓縮及壓縮DBC檔案
MPQMaster - 生成MPQ檔案,以供程式讀取。
修改方法:以[卓越法袍]變更為[信仰長袍]為例
[1] 進入WOW安裝檔案目錄下的WDB資料夾,將itemcache.wdb複製到WDBtoCSV所在的資料夾。再把itemcache.wdb拖動到wdbtocsv.exe上面,以生成itemcache.wdb
[2] 用記事本打開生成的itemcache.wdb。推薦使用EditPlus。用查找方式依次找到
[卓越法袍]16923,501,4,1,卓越法袍,卓越法袍,卓越法袍,卓越法袍,34047,4,00000000,291748,58349,20,00010000,11111111,76,60,0,0,0,0,0,0,0,00000000,1,0,5,27,6,16,7,17,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,0.000000,0.000000,0,0.000000,0.000000,0,0.000000,0.000000,0,0.000000,0.000000,0,0.000000,0.000000,0,116,0,10,10,0,0,0,0,0,0.000000,18037,1,0,-1,0,-1,0,0,0,-1,0,-1,0,0,0,-1,0,-1,0,0,0,-1,0,-1,0,0,0,-1,0,-1,1,,0,0,0,0,0,7,0,0,0,211,100,0,0,0,
[信仰長袍]22512,501,4,1,信仰長袍,信仰長袍,信仰長袍,信仰長袍,36354,4,00000000,651451,130290,20,11111111,11111111,92,60,0,0,0,0,0,0,0,00000000,1,0,6,21,5,27,7,26,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,-1,0,0.000000,0.000000,0,0.000000,0.000000,0,0.000000,0.000000,0,0.000000,0.000000,0,0.000000,0.000000,0,138,0,0,0,0,0,0,0,0,0.000000,18040,1,0,-1,0,-1,21363,1,0,-1,0,-1,0,0,0,-1,0,-1,0,0,0,-1,0,-1,0,0,0,-1,0,-1,1,,0,0,0,0,0,7,0,0,0,525,100,0,0,0,
並且記錄下相應物品的藍色編號
[3] 使用MyWarCraftStudio將最新補丁檔案,如patch.mpq檔案里的ItemDisplayInfo.dbc導出至DBCUtil所在資料夾。再把ItemDisplayInfo.dbc拖動到DBCUtil.exe上面,以生成解壓後的ItemDisplayInfo.dbc。
[4] 用記事本打開ItemDisplayInfo.dbc。用第二步所找到的物品編號查找方式依次找到
[卓越法袍]34047,"","","","","INV_Chest_Cloth_03",1,0x0,1,0x0,0,7,0,0,"Robe_RaidPriest_B_01_Sleeve_AU","Robe_RaidPriest_B_01_Sleeve_AL","","Robe_RaidPriest_B_01_Chest_TU","Robe_RaidPriest_B_01_Chest_TL","Robe_RaidPriest_B_01_Robe_LU","Robe_RaidPriest_B_01_Robe_LL","",0,
[信仰長袍]36354,"","","","","INV_Chest_Cloth_43",1,0x0,1,0x0,0,7,0,0,"Robe_RaidPriest_C_01Blue_Sleeve_AU","Robe_RaidPriest_C_01Blue_Sleeve_AL","","Robe_RaidPriest_C_01Blue_Chest_TU","Robe_RaidPriest_C_01Blue_Chest_TL","Robe_RaidPriest_C_01Blue_Robe_LU_U","Robe_RaidPriest_C_01Blue_Robe_LL","",0,
刪除紅顏色部分,使用綠色部分替代,生成更改後的[卓越法袍]代碼,保存。
[卓越法袍]34047,"","","","","INV_Chest_Cloth_43",1,0x0,1,0x0,0,7,0,0,"Robe_RaidPriest_C_01Blue_Sleeve_AU","Robe_RaidPriest_C_01Blue_Sleeve_AL","","Robe_RaidPriest_C_01Blue_Chest_TU","Robe_RaidPriest_C_01Blue_Chest_TL","Robe_RaidPriest_C_01Blue_Robe_LU_U","Robe_RaidPriest_C_01Blue_Robe_LL","",0,
[5] 把ItemDisplayInfo.dbc拖到DBCUtil.exe上面,重新生成加密後的DBC檔案,並且另建temp\DBFilesClient目錄,將加密後的DBC檔案剪貼到此目錄中。
[6] 使用MPQMaster新建MPQ檔案,檔案名稱可以按patch-x.mpq的方式建立。X可為3 4 5 6 ……
在MPQMaster的右邊空白處右鍵點擊,在對話框中選擇添加temp資料夾
[7] 把生成的patch-x.mpq檔案剪貼到wow的data目錄中。