AnonymousUser
-
Posts
3 -
Joined
-
Last visited
Content Type
Profiles
Forums
Gallery
Blogs
Events
Store
Downloads
Posts posted by AnonymousUser
-
-
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
-
There really is not a good way of sorting in vanilla skript, even the way above will crash your server if your list variable has a large amount of values, I don't know why the developers haven't bothered to add a sorting expression yet because forcing skripters to do it themselves (on minehut without skript-mirror) is an awful idea due to how greatly skript loops impact performance.
Plugin Updates - June 2, 2020
in News and Updates
Posted
still no thatpacketaddon fork, f