22pk论坛 发表于 2016-9-3 09:34:39

在传奇私服版本里添加在线购买物品开区功能脚本

有些GM想方便玩家能在线通过NPC买游戏装备那么就在以下设置添加脚本

在线购买物品存放在Envir\UserData\BuyItemList.txt中

通过以下脚本可以直接显示购买列表中的物品及价格.

(@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

z_l_j 发表于 2016-9-3 09:37:18

太好了这版本我找了好久了:funk::funk:

流口水的兔子 发表于 2016-9-8 01:27:53

流口水的兔子感谢ing

雪千寻 发表于 2016-9-9 02:00:54

哈哈瞧你说的

八卦神探 发表于 2016-9-9 23:26:24

八卦神探加油啊顶哦

魔力月光 发表于 2016-9-10 22:34:28

魔力月光来看看是个好贴

薛丁山 发表于 2016-9-11 20:40:37

顶叹为观止

战长沙 发表于 2016-9-12 18:02:18

战长沙支持你一下下

极地大冒险2 发表于 2016-9-13 16:20:13

极地大冒险2支持楼主用户楼主楼主英明呀

tuoxie 发表于 2016-9-14 13:18:51

tuoxie厉害强没的说了
页: [1] 2
查看完整版本: 在传奇版本里添加在线购买物品开区功能脚本