GUI Shop

GUI Shop based on Economics. Supports NPC

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

5/5, 38 likes
  1. That would make the shops so much better. Do you think its possible that you might add that soon?
     
  2. Yes Sir. I tried it.. And Only 3 items Showed up on /Shop -------------- Like I Said :D I Didn't get to Explore the NPC part... but the rest Of it was NPC... All you do is Link ur Own Number Into The Where "chat" Is Located And then Talk to the NPC... that File Is Sorta Messed up in Many Ways XD no Offense... But ..... -sign- .... If you only want /Shop (Chat) Get New JSON File And Copy the Items there And Transfer All Them Names Into Buy/Sell ------- I'm not 100% Sure What you Guys Want That File To Be Done Exactly... But I know It's Gonna Take At-list 3 hours to Figure Out What you Want It To Look Like... (I have Basic idea that you want /shop (chat) to have 3-5 Items And Rest Spread Out Thru out the NPC Stores... With Different Shop names And Appropriate Items In Each , If That's The Case, I Will Need To Look Into And Study How To Make That Possible.)

    IS there Anyone Out there That Has 1 /Shop(Chat) And At-list 3 NPC Shops? That Could Give An Example How To Start One up? Cuz I'm Sorta Busy Looking Into Other Plugins And If You Could Help The Next Comers To Resolve This With Ur Example, Would Be Much Appreciated
     
  3. Sorry, cannot figure this out:

    Code:
    (08:25:28) | [Oxide] 11:25 AM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.0.6' (ArgumentException: An element with the same key already exists in the dictionary.)
     

    Attached Files:

  4. i'm not going to read throw all your config --'
    but i can tell you why it's doing that:
    1- you made 2 shops for 1 NPC
    2- (the most likely) is that in one of the shops you put 2 times in buy or in sell the same item.
     
  5. I didn't expect you too, i just included it in case -

    2 was the correct answer (2 items double up in shop); thanks for your time Reneb.
     
  6. OM__G .... Nice Config. I will Take Time To Learn All That Within This Week. Hang In There.
     
  7. Requests:

    1. *** Is there a way to fix the way mouse resets to the middle of the screen after clicking the "next page >>>" button ?
    2. Also in a single shop could you make it so we could jump to categories (ie Weapons, food, attire, etc )
    3. A spending history for the admin AND user ( another button that changes the GUI view ).
    - Admin's spending history log could be used to create stats for buying/selling trends.
     
  8. 1. I'm not sure as it reloads the GUI when you change page
    2. yeah well ... i should have fought about that since the beginning, i'll see if there is an easy way to add it, but i might have to rethink the entire code to do that, so i wont be doing it any time soon.
    3. i can add it in oxide logs, but i'm not going to make yet another log that will lag on save after all people buy/sell 1000 things :x
     
  9. are any of you seeing any issues like the following:
    Code:
    [Oxide] 10:09 PM [Error] Failed to call hook 'OnUseNPC' on plugin 'GUIShop v1.0.7' (OverflowException: Value is greater than Int32.MaxValue or less than Int32.MinValue)
    [Oxide] 10:09 PM [Debug]   at System.Convert.ToInt32 (Double value) [0x00000] in <filename unknown>:0
      at System.Double.System.IConvertible.ToInt32 (IFormatProvider provider) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.Object value, IFormatProvider provider) [0x00000] in <filename unknown>:0
      at System.Convert.ToInt32 (System.Object value) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIShop.ShowShop (.BasePlayer player, System.String shopid, Double from, Boolean fullRefresh) [0x00000] in <filename unknown>:0
      at Oxide.Plugins.GUIShop.OnUseNPC (.BasePlayer npc, .BasePlayer player) [0x00000] in <filename unknown>:0
      at (wrapper managed-to-native) System.Reflection.MonoMethod:InternalInvoke (object,object[],System.Exception&)
      at System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
    And some players can't open the shop... but works for most
     
  10. you fucked a shop or an item.
     
  11. I've completed my config file, one problem though, every single item I try to purchase is producing the error message:

    Code:
    "WARNING: It seems like it's not a valid item",
    I even copied and pasted "Apple" from your sample code into the file and it gave the same result.

    The sell buttons even work on the items and returns coin, its just the buy button that's not generating an item and giving the error message.

    final edit: Issue has resolved itself. I wish I could say how I fixed it, but frankly, I don't know. For anybody looking for a pretty flushed out config file, mine is functioning. Has 6 shops divided up by: Firearms, Ammo, Clothes, Armor, Construction Supplies, and Food; most of the things you'll want are in the file. GLHF, thanks for this plugin reneb, very awesome.

    Note: i have hostile NPC's on my server that players kill for loot, and on their loot tables I have batteries, so you'll see this in the file; its one of the main ways players on my server will get money.
     

    Attached Files:

    Last edited by a moderator: Sep 29, 2015
  12. hi
    where did I error:

    [Error] Failed to call hook 'ccmdShopBuy' on plugin 'GUIShop v1.0.7' (NullReferenceException: Object reference not set to an instance of an object)

    "Supply Signal": {
    "buy": "10000",
    "img": "http://vignette3.wikia.nocookie.net...est/scale-to-width-down/100?cb=20150529194132",
    "cmd": "say $player.name bought an airdrop. Kill him!!!",
    "item": "supply signal",
    "sell": "10000"
    },


    please help
     
    Last edited by a moderator: Sep 28, 2015
  13. This seems fine
     
  14. I understand that.

    You know maybe a good plugin would be a shared buffer for plugins to use memory as a scratch pad/log file and the at timed intervals write the logs to a file. Sort of a plugin for plugins, a file I/O gatekeeper.
     
  15. LOOOOOOol^^
    [DOUBLEPOST=1443625540,1443538158][/DOUBLEPOST]hi what is the problem reneb?
    [Error] Failed to call hook 'ccmdShopSell' on plugin 'GUIShop v1.0.7' (FormatException: Input string was not in the correct format)
    [DOUBLEPOST=1443707494][/DOUBLEPOST]
    Sorry i'm solved it was a wrong charset like '
     
  16. [10/2/2015 6:52:15 AM] [Oxide] 6:52 AM [Error] Error while compiling GUIShop.cs(883,134): error CS1503: Argument `#4' cannot convert `string' expression to type `Facepunch.ObjectList?'
    Fix please
     
  17. Reneb updated GUI Shop with a new update entry:

    1.0.8

     
  18. I am having an issue having more than 1 shop. When I click the ">" in game it just refreshes the main shop. Any ideas?
     
  19. you do not see the shop you can fix ?
     
  20. Got same problem as Puigioxx. The shop doesn't appear anymore. I have it connected to NPC's if that matters, it stopped working after a client update i beleive.