当前插件以支持自动更新,请前往该网址下载最新版本:插件下载
注意
配置再次更改。目前,我没有足够的时间来更新文档,所以请备份您的配置文件。
权限
该插件使用Oxide的权限系统。要分配权限,请使用oxide.grant <user or group> <name or steam id> <permission>。要删除权限,请使用oxide.revoke <user or group> <name or steam id> <permission>。
请使用JSONLint-JSON验证程序。确保您的配置格式正确。
预制配置示例
在商店-商店类别
您必须将所有想要的物品放在这里(包括所有商店)
新:命令
当然,对于命令,您不能出售命令...可以,但是您只是免费向玩家提供硬币^^像区域命令一样,您可以放置$ player.id,$ player.name,$ player.x,$ player.y,$ player.z您可以通过放置以下内容来使其变形:
"cmd": ["teleport.topos $player.id 45 20 1022"],(45 20 1022是经纱的特定位置)
然后在商店-商店清单中
您可以在商店内添加想要的物品。您可以有多个商店都出售相同的商品。您可以选择在1家商店中是否可以购买或/和出售商品以及哪些商品。
在NPC USERID中:您必须用于/npc_list获取NPC ID的列表并放置要成为该市场的NPC的ID。您可以使用“ 0”作为ID,这将激活该/shop命令。如果为“ 0”市场已经确定,/shop将无法使用,并且只能通过NPC进入商店。
组态
可以GUIShop.json在oxide/config目录下的文件中配置此插件的设置和选项。建议使用JSON编辑器或验证站点(例如jsonlint.com),以避免格式问题和语法错误。
默认配置
原始作者
所有的功劳归于Reneb和Nogrod以获取原始插件,并在之后进行维护。
注意
配置再次更改。目前,我没有足够的时间来更新文档,所以请备份您的配置文件。
权限
该插件使用Oxide的权限系统。要分配权限,请使用oxide.grant <user or group> <name or steam id> <permission>。要删除权限,请使用oxide.revoke <user or group> <name or steam id> <permission>。
- guishop.allow -确定是否允许玩家进入建筑物禁区内的商店
- guishop.use -只有获得许可的玩家才能使用商店
- /shop -打开商店GUI
- shop.buy
- shop.sell
- shop.show
请使用JSONLint-JSON验证程序。确保您的配置格式正确。
预制配置示例
在商店-商店类别
您必须将所有想要的物品放在这里(包括所有商店)
代码:
"NAME OF THE ITEM": {
"buy": "BUYPRICE",
"img": "URLOFTHEIMAGE",
"item": "RUSTITEMNAME",
"cooldown": "0",
"sell": "SELLPRICE"
},
代码:
"NAME OF THE ITEM": {
"buy": "BUYPRICE",
"img": "URLOFTHEIMAGE",
"cmd": ["cmd1", "cmd2", "cmd3"],
"cooldown": "0",
"sell": "SELLPRICE"
}
"cmd": ["teleport.topos $player.id 45 20 1022"],(45 20 1022是经纱的特定位置)
然后在商店-商店清单中
您可以在商店内添加想要的物品。您可以有多个商店都出售相同的商品。您可以选择在1家商店中是否可以购买或/和出售商品以及哪些商品。
代码:
"NPC USERID": {
"buy": [
"ITEM1",
"ITEM2",
"ITEM3",
"ETC"
],
"description": "MARKET DESCRIPTION",
"name": "MARKET NAME",
"sell": [
"ITEM1",
"ITEM2",
"ETC"
]
}
组态
可以GUIShop.json在oxide/config目录下的文件中配置此插件的设置和选项。建议使用JSON编辑器或验证站点(例如jsonlint.com),以避免格式问题和语法错误。
默认配置
代码:
{
"Message - Bought": "You've successfully bought {0}x {1}",
"Message - Error - Item Doesnt Exist": "WARNING: The item you are trying to buy doesn't seem to exist",
"Message - Error - Item Not Set Properly": "WARNING: The admin didn't set this item properly! (item)",
"Message - Error - Item Not Valid": "WARNING: It seems like it's not a valid item",
"Message - Error - No Action In Shop": "You are not allowed to {0} in this shop",
"Message - Error - No Action Item": "You are not allowed to {0} this item here",
"Message - Error - No Buy Price": "WARNING: No buy price was given by the admin, you can't buy this item",
"Message - Error - No Chat Shop": "You may not use the chat shop. You might need to find the NPC Shops.",
"Message - Error - No Econonomics": "Couldn't get informations out of Economics. Is it installed?",
"Message - Error - No NPC": "The NPC owning this shop was not found around you",
"Message - Error - No Sell Price": "WARNING: No sell price was given by the admin, you can't sell this item",
"Message - Error - No Shop": "This shop doesn't seem to exist.",
"Message - Error - Not Enough Items": "You don't have enough of this item.",
"Message - Error - Not Enough Money": "You need {0} coins to buy {1} of {2}",
"Message - Error - Redeem Kit": "WARNING: There was an error while giving you this kit",
"Message - Sold": "You've successfully sold {0}x {1}",
"Shop - Shop Categories": {
"Apple": {
"buy": "1",
"img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
"item": "apple",
"sell": "1"
},
"Airdrop": {
"buy": "1000",
"img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
"cmd": ["airdrop.toplayer $player.id", "say $player.name bought an airdrop. Kill him!!!"],
"sell": "1000"
},
"Assault Rifle": {
"buy": "10",
"img": "http://vignette3.wikia.nocookie.net/play-rust/images/d/d1/Assault_Rifle_icon.png/revision/latest/scale-to-width-down/100?cb=20150405105940",
"item": "assault rifle",
"sell": "8"
},
"BlueBerries": {
"buy": "1",
"img": "http://vignette1.wikia.nocookie.net/play-rust/images/f/f8/Blueberries_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111338",
"item": "blueberries",
"sell": "1"
},
"Bolt Action Rifle": {
"buy": "10",
"img": "http://vignette1.wikia.nocookie.net/play-rust/images/5/55/Bolt_Action_Rifle_icon.png/revision/latest/scale-to-width-down/100?cb=20150405111457",
"item": "bolt action rifle",
"sell": "8"
},
"Build Kit": {
"buy": "10",
"img": "http://oxidemod.org/data/resource_icons/0/715.jpg?1425682952",
"item": "kitbuild",
"sell": "8"
}
},
"Shop - Shop List": {
"1234567": {
"buy": [
"Apple",
"BlueBerries",
"Assault Rifle",
"Bolt Action Rifle"
],
"description": "You currently have {0} coins to spend in this farmers market",
"name": "Fruit Market",
"sell": [
"Apple",
"BlueBerries",
"Assault Rifle",
"Bolt Action Rifle"
]
},
"5498734": {
"buy": [
"Assault Rifle",
"Bolt Action Rifle"
],
"description": "You currently have {0} coins to spend in this weapons shop",
"name": "Weaponsmith Shop",
"sell": [
"Assault Rifle",
"Bolt Action Rifle"
]
},
"chat": {
"0": [
"Build Kit",
"Airdrop"
],
"description": "You currently have {0} coins to spend in this builders shop",
"name": "Build"
}
}
}
所有的功劳归于Reneb和Nogrod以获取原始插件,并在之后进行维护。