Raga Posted June 2, 2020 Share Posted June 2, 2020 Basically, I made this post to help a friend out, he really needs a skript for his new gen server so he can right click to sell. Any help would be amazingly appreciated, thanks! Link to comment Share on other sites More sharing options...
ronaldgameking Posted June 2, 2020 Share Posted June 2, 2020 Do you mean at any time? Link to comment Share on other sites More sharing options...
KJPAKA Posted June 2, 2020 Share Posted June 2, 2020 What do you mean by "Right-Click to sell" ? Active Minehut Player since 2016 Advanced at Skript - Know a lot about running a server If you need help with anything contact me @ KJPAKA#0001 Link to comment Share on other sites More sharing options...
AnonymousUser Posted June 3, 2020 Share Posted June 3, 2020 (edited) on script load: set {prices::iron ingot} to 10 set {prices::gold ingot} to 15 # etc on right click: # all the information you gave, edit to your liking to fit your actual needs loop {prices::*}: set {_item} to loop-index parsed as item set {_amount} to amount of {_item} in player's inventory set {_reward} to {_amount} * loop-value send formatted "You sold %{_amount}%x %{_item}% for %{_reward}%" to player add {_reward} to player's balance remove {_amount} of {_item} from player delete {_item}, {_amount} and {_reward} something like this should work, untested Edited June 3, 2020 by AnonymousUser removed html styling Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now