Hey.
I'm trying to set up a command where players can use /diamond and it sells all their diamonds for them. Certain ranks also get sell bonuses (25% more, 50% etc). I'm running 1.8 dev37c Skript. I've looked at other posts, and the code I'm using should work fine. Is it because of my Skript version? If so, is there a workaround? Error message: https://gyazo.com/4bf23ef5a8102b661261e49c2c393fc0
Thanks in advance
I'm trying to set up a command where players can use /diamond and it sells all their diamonds for them. Certain ranks also get sell bonuses (25% more, 50% etc). I'm running 1.8 dev37c Skript. I've looked at other posts, and the code I'm using should work fine. Is it because of my Skript version? If so, is there a workaround? Error message: https://gyazo.com/4bf23ef5a8102b661261e49c2c393fc0
Code:
command /diamond:
description: Sell Diamonds
trigger:
set {_} to amount of diamonds in player's inventory
if {_} = 0:
message "&c» &7You do not have any &bDiamonds&7!"
stop
if player has permission "sell.titan":
add {_}*6.25 to {balance::%player's uuid%}
send "&a» &7You sold &f%{_}%&7 Diamonds for &f${_}*6.25&7. &a(25%% RANK BONUS)"
stop
if player has permission "sell.mystic":
add {_}*7.50 to {balance::%player's uuid%}
send "&a» &7You sold &f%{_}%&7 Diamonds for &f${_}*7.50&7. &a(50%% RANK BONUS)"
stop
if player has permission "sell.legend":
add {_}*10 to {balance::%player's uuid%}
send "&a» &7You sold &f%{_}%&7 Diamonds for &f${_}*10&7. &a(100%% RANK BONUS)"
stop
add {_}*5 to {balance::%player's uuid%}
stop
send "&a» &7You sold &f%{_}%&7 Diamonds for &f${_}*5&7."
Thanks in advance
Last edited: