| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | ||||||||||||||||||||||||||
2 | 《天堂2》multisell 和 buylists 翻譯註解工具說明 | |||||||||||||||||||||||||
3 | ||||||||||||||||||||||||||
4 | 工具簡介 | |||||||||||||||||||||||||
5 | 本工具以 Excel VBA 編寫,主要功能是將 XML 檔案中的註解文字(例如 <!-- Adena -->)翻譯為中文。 | |||||||||||||||||||||||||
6 | 翻譯字典來源為客戶端 ItemName-tw 文件,依照物品的 id 進行精準對應。 | |||||||||||||||||||||||||
7 | 支援輸出 UTF-8 格式,並可選擇: | |||||||||||||||||||||||||
8 | 覆蓋原始檔案 | |||||||||||||||||||||||||
9 | 或輸出到新資料夾 | |||||||||||||||||||||||||
10 | ||||||||||||||||||||||||||
11 | 通用翻譯器模組 | |||||||||||||||||||||||||
12 | multisell 和 buylists 的翻譯邏輯已合併成一個「通用翻譯器」模組。 | |||||||||||||||||||||||||
13 | 工具會自動判斷 XML 檔案內容是 multisell 或 buylists,並呼叫對應的處理函數。 | |||||||||||||||||||||||||
14 | 使用者只需執行一次,即可同時處理兩種格式的檔案。 | |||||||||||||||||||||||||
15 | ||||||||||||||||||||||||||
16 | 範例展示 | |||||||||||||||||||||||||
17 | ||||||||||||||||||||||||||
18 | 範例 1:multisell.xml | |||||||||||||||||||||||||
19 | ||||||||||||||||||||||||||
20 | <item> | |||||||||||||||||||||||||
21 | <ingredient id="57" count="200000" /> <!-- Adena --> | |||||||||||||||||||||||||
22 | <production id="955" count="1" /> <!-- Scroll: Enchant Weapon (D-grade) --> | |||||||||||||||||||||||||
23 | </item> | |||||||||||||||||||||||||
24 | <item> | |||||||||||||||||||||||||
25 | <ingredient id="57" count="24000" /> <!-- Adena --> | |||||||||||||||||||||||||
26 | <production id="956" count="1" /> <!-- Scroll: Enchant Armor (D-grade) --> | |||||||||||||||||||||||||
27 | </item> | |||||||||||||||||||||||||
28 | <item> | |||||||||||||||||||||||||
29 | <ingredient id="57" count="440000" /> <!-- Adena --> | |||||||||||||||||||||||||
30 | <production id="951" count="1" /> 【沒有注解】 | |||||||||||||||||||||||||
31 | </item> | |||||||||||||||||||||||||
32 | ||||||||||||||||||||||||||
33 | ||||||||||||||||||||||||||
34 | 翻譯後 | |||||||||||||||||||||||||
35 | <item> | |||||||||||||||||||||||||
36 | <ingredient id="57" count="200000" /> <!-- 金幣 --> | |||||||||||||||||||||||||
37 | <production id="955" count="1" /> <!-- 武器強化卷軸D級 --> | |||||||||||||||||||||||||
38 | </item> | |||||||||||||||||||||||||
39 | <item> | |||||||||||||||||||||||||
40 | <ingredient id="57" count="24000" /> <!-- 金幣 --> | |||||||||||||||||||||||||
41 | <production id="956" count="1" /> <!-- 防具強化卷軸D級) --> | |||||||||||||||||||||||||
42 | </item> | |||||||||||||||||||||||||
43 | <item> | |||||||||||||||||||||||||
44 | <ingredient id="57" count="440000" /> <!-- 金幣 --> | |||||||||||||||||||||||||
45 | <production id="951" count="1" /> <!-- 武器強化卷軸C級 --> | |||||||||||||||||||||||||
46 | </item> | |||||||||||||||||||||||||
47 | ||||||||||||||||||||||||||
48 | ||||||||||||||||||||||||||
49 | ||||||||||||||||||||||||||
50 | 範例 2:buylist.xml | |||||||||||||||||||||||||
51 | ||||||||||||||||||||||||||
52 | 原始檔: | |||||||||||||||||||||||||
53 | <item id="1829" price="500" count="5" restock_delay="60" /> <!-- Scroll of Escape: Clan Hall --> | |||||||||||||||||||||||||
54 | <item id="735" price="2400" count="1" restock_delay="60" /> <!-- Haste Potion --> | |||||||||||||||||||||||||
55 | ||||||||||||||||||||||||||
56 | 翻譯後 | |||||||||||||||||||||||||
57 | <item id="1829" price="500" count="5" restock_delay="60" /> <!-- 根據地返回卷軸 --> | |||||||||||||||||||||||||
58 | <item id="735" price="2400" count="1" restock_delay="60" /> <!-- 攻擊加速藥水 --> | |||||||||||||||||||||||||
59 | ||||||||||||||||||||||||||
60 | ||||||||||||||||||||||||||
61 | ||||||||||||||||||||||||||
62 | 操作流程 | |||||||||||||||||||||||||
63 | ||||||||||||||||||||||||||
64 | 1. 準備字典檔 | |||||||||||||||||||||||||
65 | 工具只讀取 Sheet1 表中的資料。 | |||||||||||||||||||||||||
66 | A 欄:id=xxxx | |||||||||||||||||||||||||
67 | B 欄:name=[中文名稱] | |||||||||||||||||||||||||
68 | 注意:「Sheet1」表名稱不可更改。 | |||||||||||||||||||||||||
69 | ||||||||||||||||||||||||||
70 | 2. 更換字典版本 | |||||||||||||||||||||||||
71 | 根據需要,將不同版本的字典替換到 Sheet1。 | |||||||||||||||||||||||||
72 | 已備份多個版本,可隨時切換。 | |||||||||||||||||||||||||
73 | ||||||||||||||||||||||||||
74 | 3. 執行工具 | |||||||||||||||||||||||||
75 | 在 Sheet1 表中有運行按鈕或下的按鈕,直接點擊即可。 | |||||||||||||||||||||||||
76 | ||||||||||||||||||||||||||
77 | 若按鈕被刪除,可手動進入 VBA 執行 BatchTranslateXMLCommentsUniversal。 | |||||||||||||||||||||||||
78 | ||||||||||||||||||||||||||
79 | 4. 啟用巨集 | |||||||||||||||||||||||||
80 | 請確認 Excel 的 Macro 功能已開啟,否則工具無法執行。 | |||||||||||||||||||||||||
81 | ||||||||||||||||||||||||||
82 | ||||||||||||||||||||||||||
83 | ||||||||||||||||||||||||||
84 | ||||||||||||||||||||||||||
85 | ||||||||||||||||||||||||||
86 | ||||||||||||||||||||||||||
87 | ||||||||||||||||||||||||||
88 | ||||||||||||||||||||||||||
89 | ||||||||||||||||||||||||||
90 | ||||||||||||||||||||||||||
91 | ||||||||||||||||||||||||||
92 | ||||||||||||||||||||||||||
93 | ||||||||||||||||||||||||||
94 | ||||||||||||||||||||||||||
95 | ||||||||||||||||||||||||||
96 | ||||||||||||||||||||||||||
97 | ||||||||||||||||||||||||||
98 | ||||||||||||||||||||||||||
99 | ||||||||||||||||||||||||||
100 | 5. 輸出模式選擇 |