Jump to content

Can Someone Make Me A /Sell Skript?


Macky

Recommended Posts

What I would like you to add in the Skript:

 

/sell command

Only sells Prismarine

I want one block of Prismarine to be worth $50,000

 

And thats all I can think of at the moment.

Please make this skript for me asap 😄

Edited by Macky
Link to comment
Share on other sites

function sell(inv: inventory, p: player):
	loop items of {_inv} where [input is prismarine]:
		remove loop-value from {_inv}
		add 50000 to {_p}'s balance

something like this, super simple. i would suggest reading the docs and doing a quick search for "inventory" to find the list of items in an inventory. just loop those and for each that is a prismarine, give a player 50k. idk what your balance system is, but this is just for vault.

 


[PATRON] Echology

image.png.25b196fc30999f9133398315a98c2b11.png

Sponk = Weeb


 

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