gm下载站 发表于 2024-1-14 16:42:40

龙族引擎NPC在线购买物品列表脚本

龙族引擎在线购买物品列表
NPC列表文件说明:
在线购买物品列表存放在Envir\UserData\BuyItemList.txt中

物品格式:
物品名称 物品价格(元宝) 物品说明 物品类型(1-6)
注:物品类型(1-6)对应[@BuyListX]中的X
例如:
传送戒指 50 可以在当前地图中随机移动 1
麻痹戒指 50 是对方处于暂时的麻痹状态 1
玩家在游戏中可使用 @购买 购买物品.例如: @购买 传送戒指
玩家在游戏中可使用 @价格查询 查询物品价格.例如: @价格查询 传送戒指

使用示例 通过以下脚本可以直接显示购买列表中的物品及价格;
(@BuyShopItem )
[@main]
#SAY
欢迎来到〖<$SERVERNAME>〗在线购物系统!<您的帐户现有元宝>:<$GAMEGOLD>个\
请选择你要购买的物品类别:\
╔┄┄┄┄┄┄╗ ╔┄┄┄┄┄┄╗╔┄┄┄┄┄┄╗\
┆『<武器/@BuyList1>』┆┆『<衣 服/@BuyList2>』┆ ┆『<首 饰/@BuyList3>』┆\
╚┄┄┄┄┄┄╝ ╚┄┄┄┄┄┄╝╚┄┄┄┄┄┄╝\
╔┄┄┄┄┄┄╗ ╔┄┄┄┄┄┄╗╔┄┄┄┄┄┄╗\
┆『<宝石专区/@BuyList4>』┆┆『<技能书籍/@BuyList5>』┆ ┆『<特殊物品/@BuyList6>』┆\
╚┄┄┄┄┄┄╝╚┄┄┄┄┄┄╝ ╚┄┄┄┄┄┄╝\
==========================================================\
<物品价格全部之能用元宝进行购买.本服务器1元人民币=10元宝>\

[@BuyList1]
#IF
#ACT
SetBuyType 1
#SAY
<$ShowBuyList1>
<首页/@BuyListHomePage><上页/@BuyListPreviousPage><下页/@BuyListNextPage> <尾页/@BuyListLastPage><返回/@main>\

[@BuyList2]
#IF
#ACT
SetBuyType 2
#SAY
<$ShowBuyList2>
<首页/@BuyListHomePage><上页/@BuyListPreviousPage> <下页/@BuyListNextPage> <尾页/@BuyListLastPage><返回/@main>\

[@BuyList3]
#IF
#ACT
SetBuyType 3
#SAY
<$ShowBuyList3>
<首页/@BuyListHomePage><上页/@BuyListPreviousPage><下页/@BuyListNextPage> <尾页/@BuyListLastPage> <返回/@main>\

[@BuyList4]
#IF
#ACT
SetBuyType 4
#SAY
<$ShowBuyList4>
<首页/@BuyListHomePage> <上页/@BuyListPreviousPage> <下页/@BuyListNextPage> <尾页/@BuyListLastPage> <返回/@main>\

[@BuyList5]
#IF
#ACT
SetBuyType 5
#SAY
<$ShowBuyList5>
<首页/@BuyListHomePage> <上页/@BuyListPreviousPage> <下页/@BuyListNextPage> <尾页/@BuyListLastPage> <返回/@main>\

[@BuyList6]
#IF
#ACT
SetBuyType 6
#SAY
<$ShowBuyList6>
<首页/@BuyListHomePage> <上页/@BuyListPreviousPage> <下页/@BuyListNextPage> <尾页/@BuyListLastPage> <返回/@main>\

[@BuyShopItems_]
你确定要购买:<$BUYITEM>吗 \ \

<购买/@BuyItem> <返回/@main> <关闭/@Exit>\

[@BuyItem]
#IF
#ACT
BuyShopItem %BuyItem


页: [1]
查看完整版本: 龙族引擎NPC在线购买物品列表脚本