Skip to content
This repository was archived by the owner on Oct 28, 2023. It is now read-only.

Merchant 1.0.2

Latest

Choose a tag to compare

@Pocanistaken Pocanistaken released this 01 Aug 17:33
fafa216

Added features

New API added It may be useful for you to use

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."

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}"