2015年4月—2024年4月,论坛已建立9周年,欢迎加入QQ群讨论:419848937

multisell兑换系统使用教程

主要是游戏中一些经典任务、游戏资料的科普.
回复
头像
天堂之手
Mr.GL
Mr.GL
帖子: 263
注册时间: 2018-02-24 21:37

multisell兑换系统使用教程

帖子 天堂之手 » 2018-03-24 19:41

1.如何編寫multisell下的xml檔案
我們以001.xml來看

<?xml version='1.0' encoding='utf-8'?>

<!-- 說明這個檔案的內容 --> <<他是讓妳知道妳這個選單物品內容

<list>

<!-- 物品交換明細 什麼東西換什麼東西--> ] <<不懂英文就COPY一個XML來寫就好
<item id="1"> <<第一項物品編碼 千萬不能重覆
<ingredient id="57" count="2100" enchant="0"/> <<需要第一項物品編號57數量2100
<ingredient id="21" count="1" enchant="0"/> <<需要第二項物品編號21數量1
<production id="22" count="1" enchant="0"/> <<換取物品編號22數量1
</item>
以此累推
<!-- [wooden_breastplate] for [leather_shirt]+[adena];5400 -->
<item id="2"> <<記得編號要按照順序改下來不能有重複的
<ingredient id="57" count="5400" enchant="0"/>
<ingredient id="22" count="1" enchant="0"/>
<production id="23" count="1" enchant="0"/>
</item>
....

</list>

2.檔案名稱要求有2種方法
一.依照NPC編號 如果這個NPC只有賣這些不會跟其他NPC重複的話
二.請確定XML編號有無重覆

3.給予相關NPC對應販售連結
例如:
假設妳的XML編號是001
那server\l2j\gameserver\data\html\default/12618這個檔案裡面連結需要更改如下
<a action="bypass -h npc_%objectId%_multisell 001">購買東西</a>
只要給予001做對應即可 不要用到副檔名 不然會連結失敗
图片

回复