Merchant icon

Merchant -----

Merchant puts your items for sale you can arrange these items for sale as you wish through your own



[​IMG]

Merchant puts your items for sale you can arrange these items for sale as you wish through your own store.

This skript is like a special shop like a only items determined by server administrators can be purchase and also stocks of items available these stocks make by server players

Dependencies:

Skript
Skript-reflect
Skript-yaml
TuSKe

Install:

Put 'Skript.jar', 'Skript-reflect.jar', 'Skript-yaml.jar' and 'TuSKe.jar', to "plugins/"
■ Reload server.
■ Put 'merchant.sk file ' into "plugins/Skript/scripts"
■ Now execute command '/sk reload merchant.sk'
■ Basic installation complete. (The others are easily adjusted through the yaml file.)

[​IMG]

Special purchase guis.
Register unlimited items and create categories to Merchant.
Easy item register.
Easy item add.
Easy stockadd.
Easy setup.
Custom stores
Fast and optimized.
Yaml support

MERCHANT API

PurchaseAPI

Code (Text):
function MerchantAPIPurchase(total : number, amount : number, d : object, item : item, uuid : text, p : player):
# If you know SkriptLang you can use this API ;)
# {_total} -> Total price of purchase
# {_amount} -> The amount of item the player wants to buy
# {_d} -> The item of player wants to buy not parsed
# {_item} -> The item of player wants to buy with parsed
# {_uuid} -> Uuid of seller.
# {_p} -> Event-player
#broadcast "&e%{_p}% &7, is purchased &c{_amount} &7of &c{_item} &7for &c${_total} &7from merchant."
ItemAddAPI

Code (Text):
function MerchantAPIItemAdd(price : integer, amount : number, item : item, p : player):
# If you know SkriptLang you can use this API ;)
# {_price} -> Price of item
# {_amount} -> The amount of item
# {_item} -> The item
# {_p} -> Event-player
#set {_counter} to {_price} * {_amount}
#broadcast "&e%{_p}% &7, is put &c{_amount} &7of &c{_item} &7to merchant for &c${_counter}"

[​IMG]

[​IMG]

[​IMG]

[​IMG]

[​IMG]

[​IMG]

[​IMG]

[​IMG]

[​IMG]


[​IMG]

• /merchant add <1/Per Price> <all>
• /merchant stockadd <all>
• /merchant admin create category <Category-ID> <Category-Name-Colored>"
• /merchant admin create shop <Category-ID> <Category-Page> <Shop-Name> <Shop-Name-Colored>

Permissions

merchant.* -> All permissions.
merchant.usage -> You need this perm for usage /merchant admin.
merchant.create.shop -> Create shop.
merchant.create.category -> Create category.
merchant.reload -> Reload files.
merchant.help -> For execute command /merchant help
Resource Information
Author:
----------
Total Downloads: 774
First Release: Jul 25, 2021
Last Update: Aug 1, 2021
Category: ---------------
All-Time Rating:
0 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings