1. This forum is ARCHIVED! Visit the new Cloud Sixteen forums, codename Eden, at https://eden.cloudsixteen.com. These forums will remain archived for a few months before being closed down, so try to encourage plugin developers to begin moving their content across to the new forums.
Dismiss Notice
Hi Guest, you need a Steam account to register and post on these forums. Login with Steam at the top of the forums to get started!
Dismiss Notice
Hi Guest, do you want to buy HL2RP or another Clockwork schema? Visit the Cloud Sixteen Store to get started!

Salesman setting

Discussion in 'Development' started by G13|Твой капитан, Nov 5, 2018.

  1. It's me again
    Sorry
    I need help with Salesman
    He sells 5x items
    How to fix it
     
    • Funny Funny x 1
  2. vexus

    vexus ej rockwell's worst nightmare Staff Member Manager Legend Clockwork Customer

    /salesmanedit

    It'll be a setting in there.
     
    • Like Like x 1
    • Informative Informative x 1
  3. Aspect

    Aspect =) Legend Clockwork Customer

    Go up to the salesman and type "/salesmanedit" (Make sure you have Admin perms).
    After that, go to settings and switch "Sell in shipments" (I think that's what it's called, haven't played in a while) off.
     
    • Like Like x 1
    • Good Coder Good Coder x 1
  4. Thanks
     
    • Informative Informative x 1
    • Friendly Friendly x 1
  5. NoahtheBoah36™

    NoahtheBoah36™ Clockwork Retard Clockwork Customer

    While your question has been answered, I'll give you a tiny bit of fundamental reasoning as to why "shipments" consist of 5 items in case you wish to learn a bit about the development side of CW (which I assume you do since you're here, posting in the development section).

    By default, a "shipment" in Clockwork is considered 5 of an item, and so when items are spawned from the business menu, they are sold in groups of 5.

    If you make custom items, and/or want to edit the existing items (which is best done through a plugin if you can figure out how to do that), you can add a line of code like the one below:

    Code:
    ITEM.batch = 1;
    This will set the shipment size to 1, or if you change the number from 1 to something else, you can have it sell in shipments of 3, or 12, or whatever number you want.

    That being said, I don't know if you'll even use this, but I figure I'll put it out there in case you want to know.
     
    • Like Like x 1

Previous Readers (Total: 0)