April 06, 2020, 05:41 am

Author Topic: vShop V0.1  (Read 1098 times)

Offline vin173

  • ByB Newbie
  • *
  • Posts: 8
    • View Profile
vShop V0.1
« on: July 23, 2018, 06:24 pm »
vShop V0.1

So I made this automatic shop over the weekend and wanted to share it here. It doesn't have a credit system for extra money the user puts in the moneypot but it does support multiple pages with a cart system so that they can purchase multiple items and quantities in one go also this is just the first version.

Commands
  • !help - the list of commands
  • !addranger - aim at a ranger to add it to the list
  • !delranger - aim at a ranger to delete it from the list
  • !list - prints a list with all the rangers and corresponding prices
  • !price <rangerid> <price> - set the price for the given shipment
  • !update - manually update the list (do this after you placed a shipment)
  • !policeallowed <on | off> - allows | disallows police

Wiring
  • Place a ranger and user next to each other per slot you want to have. Aim at the ranger and type "!addranger", if done correct you'll get a message saying "Ranger: <rangerid> and user: <userid> are added to the list"
  • (E2) Scr -> wirelink (EGP) and (E2) UserTrigger -> User[entity] (EGP)
  • (E2) StoredAmount -> StoredAmount (moneypot)
  • (moneypot) SpawnAll - > SpawnAll (E2)
  • (moneypot) SpawnAmount -> SpawnAmount (E2)
  • (door) Fade -> PrivacyDoor (E2)

Extra steps
If you are done with the wiring and added all the rangers/users you want, the next step is to place your shipments in the slots. Each time you want to place a couple shipments or single it is recommended to manually update the list using the "!update" command so you can edit the prices. A slot will only shown on the buy page if there is a shipment and the price does not equal to 0 (this is to prevent accidental free items)

If you want that the police can't buy items from your shop you have type "!policeallowed off".

The default max items per page is 6, don't set it higher as it won't fit with the current sizes

Screenshots
It's a simple flat ui that should be easy to navigate through.
apparently imgur links don't want to work...
https://imgur.com/a/GZa40Ht
https://imgur.com/a/VBAVJ58



Code


I'm open for suggestions.
« Last Edit: July 23, 2018, 06:29 pm by vin173 »

Offline RealGuy

  • ByB Rookie
  • **
  • Posts: 133
  • Smeg isn't always the answer.
    • View Profile
Re: vShop V0.1
« Reply #1 on: July 23, 2018, 06:41 pm »
Look cool, interesting choice of font.

Offline WooHoo

  • ByB Rookie
  • **
  • Posts: 55
    • View Profile
Re: vShop V0.1
« Reply #2 on: July 30, 2018, 12:45 pm »
oh vin is that you

Offline vin173

  • ByB Newbie
  • *
  • Posts: 8
    • View Profile
Re: vShop V0.1
« Reply #3 on: July 30, 2018, 04:04 pm »
oh vin is that you

Yes it's me  :)

AutoMerge: July 30, 2018, 06:51 pm
I fixed a stupid little bug on line 103 that had to be "+ 1" and not "+ Remainder" guess I needed to do some more testing

« Last Edit: July 30, 2018, 06:51 pm by vin173 »