久久网游 发表于 2018-10-23 12:28:39

传奇在线购买物品脚本

传奇在线购买物品脚本
在线购买物品存放在EnvirUserDataBuyItemList.txt中
格局: 物品名称 物品价格(元宝) 物品说明 物品类型(1-6)
例如: 传送戒指 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

木东 发表于 2019-1-29 16:48:20

11111111111111
页: [1]
查看完整版本: 传奇在线购买物品脚本