Hi! I am trying to get the shop NPC to sell a "Heli Attack" command to a predefined location. I am running the HeliControl plugin on the server, and tried with the following config in GUIShop:
After buying a "Heli Attack", the heli icon (in InfoPanel) is active for a second, but soon becomes blank and no heli arrives. Anyone got an idea how to make this work?Code:"Heli Attack": { "buy": "1000", "img": "https://vignette.wikia.nocookie.net/play-rust/images/f/ff/Rock_icon.png/revision/latest?cb=20151106061532", "cmd": ["callheli pos -1749 17 -459 1"], "cooldown": "0", "sell": "1500" },
GUI Shop
GUI Shop based on Economics. Supports NPC
Total Downloads: 11,480 - First Release: Aug 29, 2015 - Last Update: May 3, 2018
- 5/5, 38 likes
-
hmm try maybe this, i use the player pos who is buy it
Code:"Call a Heli": { "buy": "250000", "img": "", "cmd": ["callheli $player.id"], "cooldown": "86400", "sell": "0" },
-
-
Code:"cmd": ["spawn patrolhelicopter \"x y z\"" ],
Code:"cmd": ["spawn patrolhelicopter \"100 0 -74\"" ],
-
-
Im trying to modify the code to fit my server but no matter what I do it keeps giving me errors in the console, can some1 share their code with me so i can use that or try to compare it plz?
-
I know I have seen a guishop screenshot of a copy of this plugin with actual "categories" shown when you open /shop across the screen. How do I obtain this and how much do I have to pay ?
I would like this. -
The shop is automatically increasing prices the more an item is bought and decreasing the sell price the more the item is sold. How do I disable this?
Last edited by a moderator: Oct 11, 2017 -
"Shop - Shop List": {
"chat": {
"buy": [
"Build",
"Build2",
"all your items"
],
"description": "",
"name": ""
[DOUBLEPOST=1507666043][/DOUBLEPOST]how do I change the format?
I want to show the balance only an integer without fractional.
{0:d} does not work -
Hi, so i am trying to get this config to work. i have ran this through the json checker but to no luck i modified this so it can be used by /shop so i do hope someone can tell why it is blank when i do /shop
Attached Files:
-
-
need
Code:"Shop - Shop Categories": { "Animal Fat": { "buy": "20", "img": "http://vignette1.wikia.nocookie.net/play-rust/images/d/d5/Animal_Fat_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103440", "item": "animal fat", "sell": "12" }, .... next items }
-
-
Need items move to "Shop - Shop Categories": { Here }
-
-
you have all the items after
"Shop - Shop Categories": {}
"Animal Fat": {
"buy": "20",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103440",
"item": "animal fat",
"sell": "12"
},
put them in these brackets -----> { }
"Shop - Shop Categories": {
"Animal Fat": {
"buy": "20",
"img": "http://vignette1.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150405103440",
"item": "animal fat",
"sell": "12"
}
},
do not forget delete"," the last itemsLast edited by a moderator: Oct 15, 2017 -
Anyone want to setup a shop for me - this is way to time consuming for me.
Obviously i will pay for your time.
Add me on steam - same name
I can show you the exact shop i want copying so pretty easy for someone who knows what they are doing.
Also one final thing i added the economics mod - yet it doesnt give the player a set amount of money every hour - am i missing another mod for this ? -
we cant sell scrap? i added it and no errors but dont show..
"Scrap": {
"buy": "1",
"img": "https://vignette.wikia.nocookie.net...ap_icon.png/revision/latest?cb=20170721095804",
"item": "scrap",
"sell": "5"
},
and i put "scarp", on my npc seller ... -
I'm stuck with selling Kits. For example, when I'm trying to sell a kit "Engineer",
"Engineer": {
"buy": "50000",
"img": "https://vignette3.wikia.nocookie.ne...er_icon.png/revision/latest?cb=20160415084104",
"item": "inv.giveplayer $player.name kit engineer",
"cooldown": "0",
"sell": "0"
I already made a kit for "Engineer" and stored in database. However, when I reload the Kits.cs, console shows :
[GUIShop] ShopCategory: Engineer Unknown item: inv.giveplayer $player.name kit engineer
How can I fix this ? -
try this :
"cmd": ["inv.giveplayer $player.id kit engineer"],