Jump to content

Merchant - Puts your items for sale you can arrange these items for sale as you wish through your own [1.17 MINEHUT SUPPORT]


Recommended Posts

[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

 

 

CLICK HERE TO DOWNLOAD MERCHANT (SPIGOT)

Edited by Pocan
  • Like 1
Link to comment
Share on other sites

18 minutes ago, Pocan said:

[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

 

 

CLICK HERE TO DOWNLOAD MERCHANT (SPIGOT)

Doesn't seem like skript-yaml is on Minehut just a heads up not sure how much that breaks.

  • Thanks 1
  • Haha 1

tumblr_lqahoaPLkC1ql1l0v.gif

Feel free to add me on discord if you:

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with plugins

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need help with skripts

dc3456c-e0ec58e8-c807-43e3-b986-5224b91a need to vent about something

tumblr_lqahoaPLkC1ql1l0v.gif

>[ ‧₊˚꒰ʚ Starshine ɞ ‧✦ *#2683 ]<

Link to comment
Share on other sites

2 minutes ago, LapEvents said:

Ah yes didnt check that, can someone please test it without the "required plugin"?

Don't test it without skript-yaml beacuse skript-yaml is most important jar after Skript ._.

Link to comment
Share on other sites

2 hours ago, LapEvents said:

Edit: Skript-yaml has been requested multiple times by many people of the minehut community, but has been denied each time. It will be hard getting this added

Just an addon to why Skript-yaml has been denied each time, Minehut doesn't support the plugin for Security Issues, same goes with Skript-reflect. I don't know too much about this but this is what i found when searching for a reason to this.

2021-06-09_20_22_08.jpg.422c39613f8b72de894e5ec1f3377dca.jpg

Yo who actually reads these

[Vip] - 12/29/2020
[Pro] - 1/25/2022
 

 

 

Link to comment
Share on other sites

They cant add it bc of things like Sql databases and other complex things like that :/.

-------------------------------------------------------------------

NO RANK ALL THE WAY

---------------------------------------------------------------------

play.koolkidzmc.com (Velocity + Pufferfish FTW)
discord.koolkidzmc.com

Spoiler

/_(•v•)_7

image_2021-07-26_104856.png.7740cf6322d3693f332894c1e8485060.png


image_2021-07-26_104457.png

pogies.PNG

Link to comment
Share on other sites

On 8/3/2021 at 12:57 AM, LapEvents said:

Edit: Skript-yaml has been requested multiple times by many people of the minehut community, but has been denied each time. It will be hard getting this added

minehut has been unleashed

Edited by Razaire

Every time you tell a lie, You'll have to tell a 100 more.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...