织梦CMS - 轻松建站从此开始!

天堂系列-新天堂II殿堂级|就玩天堂2发布网站 9WTT2.COM

当前位置: 主页 > 天堂2私服 >

新天堂II游戏万能商店所在文本

时间:2015-12-01 18:14来源:最新天堂2私服发布 作者:9wtt2 点击:
天堂2私服NPC会出现一个兑换S英雄装备(重套)的选项,点击天堂私服商店会出现熟悉的用物品兑换东西的界面了。
开端设置新天堂2私服的天堂II游戏万能商店所在文本,\gameserver\data\scripts\custom\5000_MissQueen,例:

00文本一段:<td><button value="全能武器" action="bypass -h Quest 5000_MissQueen 01.htm" width=85 height=25 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
01文本一段:<td><button value="A 级武器" action="bypass -h npc_%objectId%_multisell 1000004" width=85 height=30 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>
03文本一段:<td><button value="A 级首饰" action="bypass -h npc_%objectId%_Buy 88000405" width=85 height=30 back="L2UI_ct1.button_df" fore="L2UI_ct1.button_df"></td>

用文本打开00文件 代表商店1级菜单,01.htm代表5000_MissQueen,目录下子文本也就是商店2级菜单。width=85 height=25 代表菜单字体框的长宽,L2UI_ct1.button_df" fore="L2UI_ct1.button_df",则是代表代表菜单字体框天堂2风格。
Buy 88000405            代表商店数据库 merchant_buylists      
item_id物品ID           price金钱数量              shop_iD商店ID
multisell 1000004     代表multisell文件中1000004 MXL文本

服务端关于天堂私服修改物品兑换MXL,文本地址\gameserver\data\multisell,例:
  <item id="1">
    <ingredient id="57" count="10000000" isTaxIngredient="false"/>
    <ingredient id="40000" count="200" isTaxIngredient="false"/>
    <production id="6660" count="1"/> 
释:
  <item id="1">  排序
    <ingredient id="57" count="10000000"    57是金钱的代码
    <ingredient id="40000" count="200"       40000金钱数量

可同理添加兑换天堂私服物品比拟,兑换S英雄重装的给大家做一个说明。
第一步:
打开\gameserver\data\multisell,新建一个文件名为 003.xml写入:
<?xml version='1.0' encoding='utf-8'?>
<!-- S级英雄重装兑换 NPC ID=12260 -->
<list>
<!-- SoE to Talking Island -->
<item id="1">
  <ingredient id="5906" count="1" enchant="0"/>
  <ingredient id="5906" count="1" enchant="0"/>
  <ingredient id="5907" count="1" enchant="0"/>
  <ingredient id="5907" count="1" enchant="0"/>
  <ingredient id="3881" count="1" enchant="0"/>
  <ingredient id="3882" count="1" enchant="0"/>
  <ingredient id="3883" count="1" enchant="0"/>
  <ingredient id="3875" count="1" enchant="0"/>
  <ingredient id="3877" count="2" enchant="0"/>
  <ingredient id="3879" count="1" enchant="0"/>
  <ingredient id="3888" count="1" enchant="0"/>
  <production id="6373" count="1" enchant="0"/>
</item>
<!-- SoE to Elven Village -->
<item id="2">
  <ingredient id="5906" count="1" enchant="0"/>
  <ingredient id="5906" count="1" enchant="0"/>
  <ingredient id="5907" count="1" enchant="0"/>
  <ingredient id="5907" count="1" enchant="0"/>
  <ingredient id="3881" count="1" enchant="0"/>
  <ingredient id="3882" count="1" enchant="0"/>
  <ingredient id="3883" count="1" enchant="0"/>
  <ingredient id="3875" count="1" enchant="0"/>
  <ingredient id="3877" count="2" enchant="0"/>
  <ingredient id="3879" count="1" enchant="0"/>
  <ingredient id="3888" count="1" enchant="0"/>
  <production id="6374" count="1" enchant="0"/>
</item>
</list>

打开\gameserver\data\html\default,然后查找12260.htm文件打开观测后:
在<br><a action="bypass -h npc_%objectId%_Quest"><font color="LEVEL">任务</font></a><br>前面加入一行,<a action="bypass -h npc_%objectId%_multisell 003"><font color="LEVEL">兑换S英雄装备(重套)</font></a><br>

这里说明下npc_%objectId%_multisell 003,003就是建的那个文件名如果建的那个文件,名叫做111.xml 那么003就要改成111。就变成了npc_%objectId%_multisell 111,然后保存注意要保存为utf-8的格式去试下。天堂2私服NPC会出现一个兑换S英雄装备(重套)的选项,点击天堂私服商店会出现熟悉的用物品兑换东西的界面了。

最新天堂II私服游戏服务端文件的说明:
xml文件是商店道具的脚本,<item id="1">表示道具的序号,不是要换的东西的ID。<ingredient id="5906" count="1" enchant="0"/>,ingredient id="5906" 换东西需要的道具的ID, (这里是红色搜魂石11阶段),count="2" 是需要的个数,enchant="0" 是精练等级。<production id="6373" count="1" enchant="0"/>,production id="6373" 是指要换的东西的ID,count="1" 换得的个数,enchant="0" 精练等级。这里是增加的<ingredient id="5906" count="1" enchant="0"/>,注意如果需要天堂2私服的这个东西是叠加的话,那么count="1"可以为count="2"或更多,如果该物品不是叠加的话比如武器,那么这里的count="1"必须为1方可正常。


(责任编辑:9wtt2)
织梦二维码生成器
顶一下
(5)
83.3%
踩一下
(1)
16.7%
------分隔线----------------------------
发表评论
请自觉遵守互联网相关的政策法规,严禁发布色情、暴力、反动的言论。
评价:
验证码: 点击我更换图片
栏目列表
推荐内容