Skip to content

An OpenMod plugin for Unturned which adds Shop functionality.

License

Notifications You must be signed in to change notification settings

SilksPlugins/Shops

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shops

A universal OpenMod plugin which adds Shop functionality.

Commands

Commands for shop management:

  • /shop add <buy | sell> - Adds the item to the shop to be bought or sold.
  • /shop remove <buy | sell> - Removes the buyable/sellable item from the shop.
  • /vshop add - Adds the vehicle to the shop to be bought.
  • /vshop remove - Removes the buyable vehicle from the shop.
  • /shop reload - Reloads the shops from the database.

User commands:

  • /cost [amount] - Checks the price of an item in the shop.
  • /buy [amount] - Buys the item from the shop.
  • /sell [amount] - Sells the item to the shop.
  • /vcost - Checks the price of a vehicle in the shop.
  • /vbuy - Buys the vehicle from the shop.

Migration from v1.0.0

Due to some limitations, migration from v1.0.0 must be manual. The following MySQL query can be executed to migrate data from the old database tables to the new:

INSERT INTO Shops_ItemShops (ItemId, BuyPrice, SellPrice) (SELECT B.ID, BuyPrice, SellPrice FROM Shops_BuyItemShops B
LEFT OUTER JOIN Shops_SellItemShops S ON B.ID=S.ID
UNION
SELECT S.ID, BuyPrice, SellPrice FROM development.Shops_BuyItemShops B
RIGHT OUTER JOIN Shops_SellItemShops S ON B.ID=S.ID);

INSERT INTO Shops_VehicleShops (VehicleId, BuyPrice) SELECT ID, BuyPrice FROM Shops_BuyVehicleShops;

About

An OpenMod plugin for Unturned which adds Shop functionality.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages