GUI Shop

GUI Shop based on Economics. Supports NPC

Total Downloads: 11,450 - First Release: Aug 29, 2015 - Last Update: May 3, 2018

5/5, 38 likes
  1. ??????
     
  2. Is this prepared for eventually wiping taking place, so a NPC with shop can be called and moved and activated on a new map?
     
  3. you can do /npc_edit NPCID
    then /npc spawn new
    this will teleport him to a new position.
     
  4. Hello Reneb.

    First of all. Good job man! This is an amazing plugin and works perfect on my server.

    I got 1 suggestion. Is it possible to not make the mouse move to middle when buying and selling stuff?

    I guess i'll be able to make another button to buy/sell x1000 and x10.000 :)
     
  5. hey now :D autoclickers need to make there money too!!! lol..
     
  6. hey, so i really do like this plugin.. however i cant seem to get more then 4 items on a page. iv got a few problems ill list them
    1. i cant reload just this plugin with oxide.reload GUIshop i just get the (no source found)
    2. i cant seem to get rid of the build kit item. is it something that has to be there? if not if i delete it messes up everything and seems to reset it back to default or something.
    3. how can i make another shop i tried but its not showing up
    4. how would i add a buy able kit?

    but other then that i love the plugin so far :) it being only a day old it works pretty good and my players love the GUI. :)
     
  7. yo Engine. Thanks for Adding Smart Questions...

    ya this Plugin is Very Very Extra Super Sensitive.. I bet the Developer made this Mod with love and Care, and to use this Mod you will need to treat the "Developers GF" very Extra Sweet and Nice. or your gonna get nothing but what i got. (Slap in the balls (Pants on of course))

    What i did After getting rejected by "developers GF" (trust me she is a Catch and not a Cheater, So you will have to Play it right) I Copied Someone ells Script Up there ^ maybe somewhere in page 2-3 .. that actually works sadly they only had 3 item list. so i modified it with my own Item Names.
    and the Image from Rust Wiki (the item worked but the Icon Didn't it showed the same way as for sign artist Spray the red Question Mark) So then i said Fine. Fuck the Icons for now. and after that i Copied the Middle Text and massive Copied Down so instead of 3 items it's gonna be 20-30 And I Did exactly as Told. and for buy/sell i Carefully Named as for the name (not item name) so haha I save it and load it back to Config File and restart the server. it then doesn't work. it spits back the Default File i tried it 3 times. it's not working. :D keeps Spiting back the Default File.
     

    Attached Files:

  8. Yeah sadely i dont see how i can make it easier to configure.
    If you dont reload the plugin the changes wont take count
    It's not oxide.reload GUIshop but oxide.reload GUIShop
    Needs to be exactly how the name of the file is
    As for the configs reverting it's strange, but most likely it's because it doesnt like what you did so it reverts it back.
    Send hère your config files and i'll fix it for you
     
  9. sweet ^^ awesome. -thinks- ya i didn't like how it Spitted back the Default File. I was like .-. df? Didn't i just Successfully Over Written that. hahaha oh btw you need to Provide your Email For papal. don't Exclude your self. you are doing fantastic Work and People do Actually Recognize it.

    And as For a File.... Mmm not sure If the one i sent up there was Valid. unless your Looking for a 3 item Default

    Maybe Start from here. oh and Someone Mentioned about 1 - 10 - 100 buy/sell Options... Is there a Way you might able to Configure or add for individual items? like an example: If Deflation happened where there Is Shortage of Apples in the server do to Lazy Workers and whatever (role-play) you decided to make apples worth 100,000$ each... well that's fine to have 1 - 10 - 100 .... but to make everything 1,000 - 10,000 -50,000 there is no way anyone can afford or ever wanna Afford Apples :D kinda makes sense? but ya. I wanna Donate to you so you can Keep Improving this Plugin (ya i know it's free or what not to make a Mod/plugin but who pays the food? ya it comes from your pocket, might Oswell I help you with the food and you keep Improving :p lol)
    [DOUBLEPOST=1441114342][/DOUBLEPOST]Dang :D i watched that Video and i followed it Steps. I deleted like the extra's Weapon Market/shop and Extra's I Also Put it in the Correct Format. And added 2 extra Lines to be in the shop :D but it Reversed to Default again. I'm not giving up!! because I Want Shop in my server Soo Freaking bad.
     

    Attached Files:

  10. i'll be back in 4h i'll do it then.
     
  11. Great mod, big thank you.

    Few suggestions:
    • Add buy/sell 1k and 10k
    • Having the black background slightly transparent or the ability to see around the edge.
    • Scrolled item list not tabbed.
    • Don't reset the cursor to the center upon buying items.

    Thank you.
     
    Last edited by a moderator: Sep 1, 2015
  12. 1) I'll add 1k i guess
    2) ok
    3) no not sure i can scroll it
    4) yes i'll do that now i know how to do so ^^
    [DOUBLEPOST=1441129733][/DOUBLEPOST]
    Code:
    {
        "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": {
            "Timed Explosive Charge": {
                "buy": "50000",
                "img": "http://rust.wikia.com/wiki/Timed_Explosive_Charge?file=Timed_Explosive_Charge_icon.png",
                "item": "Timed Explosive Charge",
                "sell": "25000"
            },
            "Wood": {
                "buy": "5",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "wood",
                "sell": "1"
            },
            "Assualt Rifle": {
                "buy": "1000",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Assualt Rifle",
                "sell": "100"
            },
            "Semi-Automatic Pistol": {
                "buy": "100",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Semi-Automatic Pistol",
                "sell": "20"
            },
            "F1 Grenade": {
                "buy": "250",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "F1 Grenade",
                "sell": "50"
            },
            "Revolver": {
                "buy": "499",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Revolver",
                "sell": "250"
            },
            "Machete": {
                "buy": "50",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Machete",
                "sell": "10"
            },
            "Gods Sword": {
                "buy": "3000",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Salvaged Sword",
                "sell": "1"
            },
            "Sniper Rifle": {
                "buy": "2000",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Bolt Action Rifle",
                "sell": "500"
            },
            "Rocket Launcher": {
                "buy": "5000",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Rocket Launcher",
                "sell": "1"
            },
            "Deadly Spear": {
                "buy": "100",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Stone Spear",
                "sell": "80"
            },
            "Airdrop": {
                "buy": "20000",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Supply Signal",
                "sell": "5000"
            },
            "Survey Charge": {
                "buy": "100",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Survey Charge",
                "sell": "60"
            },
            "Torch": {
                "buy": "10",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Torch",
                "sell": "1"
            },
            "Small Oil Refinery": {
                "buy": "1000",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Small Oil Refinery",
                "sell": "500"
            },
            "Large Wooden Box": {
                "buy": "100",
                "img": "http://rust.wikia.com/wiki/Wood?file=Wood_icon.png",
                "item": "Large Wood Box",
                "sell": "20"
            },
            "eoka Pistol": {
                "buy": "50",
                "img": "http://rust.wikia.com/wiki/Stones?file=Stones_icon.png",
                "item": "Eaka Pistol",
                "sell": "25"
            }
        },
        "Shop - Shop List": {
            "1815234536": {
                "buy": [
                    "Timed Explosive Charge",
                    "Wood",
                    "Stones",
                    "Assualt Rifle",
                    "Machete",
                    "Semi-Automatic Pistol",
                    "eoka Pistol",
                    "Rocket Launcher",
                    "Gods Sword",
                    "Stone Spear",
                    "Revolver",
                    "Sniper Rifle",
                    "F1 Grenade",
                    "Survey Charge",
                    "Supply Signal",
                    "Torch",
                    "Small Oil Refinery",
                    "Large Wooden Box"
                ],
                "description": "You currently have {0} coins to spend in this farmers shop",
                "name": "Farmers Shop",
                "sell": [
                    "Timed Explosive Charge",
                    "Wood",
                    "Assualt Rifle",
                    "Machete",
                    "Semi-Automatic Pistol",
                    "eoka Pistol",
                    "Rocket Launcher",
                    "Gods Sword",
                    "Stone Spear",
                    "Revolver",
                    "Sniper Rifle",
                    "F1 Grenade",
                    "Survey Charge",
                    "Supply Signal",
                    "Torch",
                    "Small Oil Refinery",
                    "Large Wooden Box"
                ]
            }
        }
    }
     
  13. Code:
    {
        "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": {
            "C4": {
                "buy": "50000",
                "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
                "item": "Timed Explosive Charge",
                "sell": "25000"
            },
            "Revolver": {
                "buy": "399",
                "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
                "item": "Revolver",
                "sell": "150"
            },
            "Bolt Action Rifle": {
                "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",
                "item": "Bolt Action Rifle",
                "sell": "150"
            },
            "Deadly Grenade": {
                "buy": "500",
                "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
                "item": "F1 Grenade",
                "sell": "100"
            },
            "Hunting Spear": {
                "buy": "50",
                "img": "http://vignette2.wikia.nocookie.net/play-rust/images/d/dc/Apple_icon.png/revision/latest/scale-to-width-down/100?cb=20150405103640",
                "item": "Stone Spear",
                "sell": "25"
            }
        },
        "Shop - Shop List": {
            "chat": {
                "buy": [
                    "Bolt Action Rifle",
                    "Revolver",
                    "Timed Explosive Charge",
                    "F1 Grenade"
                ],
                "sell": [
                    "Bolt Action Rifle",
                    "Revolver",
                    "Timed Explosive Charge",
                    "F1 Grenade"
                ],
                "description": "You currently have {0} coins to spend in this farmers market",
                "name": "Fruit Market"
            }
        }
    }
    [DOUBLEPOST=1441129794][/DOUBLEPOST]You clearly didn't use JSONLint - The JSON Validator.
    as stated multiple times ^^
    i fixed all your configs with it.
     

  14. ummm o-o -chews like a retarded cow- that actually crossed my mind to use it. like always i'm lvl -1 coder.... but umm I will give it a shot. and mess around with it till something starts to work? isn't that how We Normally Teach our selfs : D
     
  15. Hey.

    You can easyli change it to 1k and 10k in the plugin file. I did it on my server ,works smooth and was very simple.
     
  16. It was more of a suggestion for the guys who may not be confident to dig into the plugin file.

    Testing some ideas now:

    Screenshot 2015-09-01 19.25.53.png
     
  17. :eek: soo beautiful!! look at that. how amazing!!! -claps- yes i took A look at the file and i believe i found where the 1 - 10 -100 .. all you did was Changed those numbers .... not sure where the

    Update: got 1000 to work... Very Simple. But i can't seem to find Transparency (because i don't know how it looks like... (to be able to find 1 - 10 -100 I was looking for those numbers because they were already in-game)
    [DOUBLEPOST=1441149462,1441138364][/DOUBLEPOST]yahoo baby little by little i'm working this. I love it all. And this File JSON ohh god every noob out there just like me Please do use it!!! it will make ur Life Amazing. like example it correct the Format. like it aligns the right way. but if ur pissing coma every item list you have. it will let you know... in messed up way but with other examples you can put 2 and 2 together. wow this Took me Forever to make. since last update ^ you all can use.. it's Not really Finished... cu i didn't upload the image.. but never the less I'm gonna work on that... (gonna rewatch the vid to see where he get's the Icon Links) Reneb explains things the best way Possible. and no Offense to Wolf he just redirects you to a link :3 with no Comment hahaa.
     

    Attached Files:

  18. On line 236
    Code:
    ""color"":""0.1 0.1 0.1 1"",
    First three set of numbers are Red Green Blue and the last one controls the transparency.

    https://tug.org/pracjourn/2007-4/walden/color.pdf
    0.1 0.1 0.1 0.8
    R G B


    Examples:
    Red background with no transparency
    Code:
    ""color"":""1.0 0.0 0.0 1.0"",
    Blue and half transparency
    Code:
    ""color"":""0.0 0.0 1.0 0.5"",
    My config in the image was 0.1 0.1 0.1 0.8
     
    Last edited by a moderator: Sep 2, 2015
  19. ^
    ^
    ^
    ^

    -Claps- About time there is Wonderful Question/ Helps and Tricks Going on in Some Plugin HelpLine :) this is what I love to hear. instead of getting stuck and hoping to come into a Question/Support Chat and All i get is 2 nerds yapping Shit away. -claps- this makes me happy -1 only 1 tear falls- :')

    Future Noobers Can Come in here... Read this Wonderful Messages And don't gotta Worry Asking Questions. it's Right to Business Plugin Modifying.

    PS: (whatever PS stands for): Reneb We love your Plugin... yes we are messing around with your Idea to our Benefit but you still Dissever 100% Credit.


    post scriptum
    If you are talking about P.S. when used in writing, it stands for postscript, from the Latin post scriptum, meaning "written after." It is generally used in letter-writing to indicate something added after the body of the letter was completed and signed.

    (in my Words PS Stands for Personal Saying)
     
  20. colors are:
    R G B A
    red green blue alpha
    all from 0 to 1 for the intensity

    alpha is the transparency