Changes

Talk:Unturned: OpenMod

4,416 bytes added, 09:20, 22 January 2022
/* Shops UI */ new section
The following lines were added (+) and removed (-):
== Shops UI ==UsagePlayers can simply use /shop (or /vshop to directly access the vehicle shop). See the media on this page to view an example of the UI.At the moment, commands must be used to configure the shop. More info on configuring the shops can be found in the Commands section.*Shop whitelists/blacklists are supported. The permission you specify in the commands for setup are not exact however. If you put eaglefire as the whitelist permission, the actual permission would be *ShopsUI:groups.eaglefire. The permission you specify has ShopsUI:groups. added to the front.MigrationIf you wish to migrate from ZaupShops, you can simply run the command /shop migrate.If you used whitelists and blacklists with ZaupShop, you must also change some of your permissions. All existing permissions starting with zaupgroups. must be changed to start with ShopsUI:groups.. For example, the following permissions show their original and their migrated permissions: zaupgroup.epicguns → ShopsUI:groups.epicguns zaupgroup.vip → ShopsUI:groups.vip zaupgroup.mvp → ShopsUI:groups.mvpCommandsCommands for UI: /shop - Opens the shop UI. /vshop - Opens the shop UI directly to the vehicle tab.Commands for shop management:Basic commands: /shop add <buy | sell> <item> <price> - Adds the item to the shop to be bought or sold. /shop remove <buy | sell> <item> - Removes the buyable/sellable item from the shop. /vshop add <vehicle> <price> - Adds the vehicle to the shop to be bought. /vshop remove <vehicle> - Removes the buyable vehicle from the shop. /shop reload - Reloads the shops from the database. /sellbox - Opens a virtual storage for selling items.UI-related management commands: /shop order <item> <order> - Sets the order of items in the shop UI. /vshop order <vehicles> <order> - Sets the order of vehicles in the shop UI.Whitelist/blacklist commands: /shop whitelist <add | rem> <item> <permission> - Manage item shop whitelists. /shop blacklist <add | rem> <item> <permission> - Manage item shop blacklists. /vshop whitelist <add | rem> <vehicle> <permission> - Manage vehicle shop whitelists. /vshop blacklist <add | rem> <vehicle> <permission> - Manage vehicle shop blacklists.The permission you specify has ShopsUI:groups. added to the front of it. abc turns into ShopsUI:groups.abc.Alternative buy/sell commands: /buy <item> [amount] - Buys the item from the shop. /sell <item> [amount] - Sells the item to the shop. /vbuy <vehicle> - Buys the vehicle from the shop.SellboxThe /sellbox command feature allows players to quickly sell items by placing them in a virtual storage.The default sellbox size is configurable in the config.yaml file.To set sell box sizes for certain permission roles, simply add the following lines below the data entry of a role (change width and height to what you'd like).sellbox:  width: 8  height: 12Click to reveal an example using the default OpenMod permissions filePermissionsBasic User PermissionsGrant access to the /buy command: ShopsUI:commands.buyGrant access to the /cost command: ShopsUI:commands.costGrant access to the /sell command: ShopsUI:commands.sellGrant access to the /shop command to see the shop UI: ShopsUI:commands.shopGrant access to the /vshop command to directly navigate to vehicle shops in the UI: ShopsUI:commands.vshopAdministrative PermissionsGrant access to manage item shops: ShopsUI:commands.shop.*Grant access to manage vehicle shops: ShopsUI:commands.vshop.*ConfigurationClick to reveal default configurationTranslationsYou can change the color of both UI and command text translations by using Unity's rich text format.For example, to change the balance color to blue in the UI, change:Balance: {CurrencySymbol}{Balance:0.00}toBalance: "<color=blue>{CurrencySymbol}{Balance:0.00}</color>"orBalance: "<color=#0000FF>{CurrencySymbol}{Balance:0.00}</color>"Click to reveal default translationsInstallationRun the following commands to install necessary libraries: openmod install OpenMod.EntityFrameworkCore.MySql openmod install SilK.Unturned.ExtrasSpecify the openmod branch in your Imperial Plugins config.Add the following workshop id to your WorkshopDownloadConfig.json file: 2412328215Change the connection string in your new ShopsUI/config.yaml file to allow ShopsUI to connect to your MySQL server.
Administrator
662
edits