I have a problem, i'm doing something special but a part of the command don't work correctly.
Look:
The problem is when i intent to detect if {_money} is more than the price of the item, but when i test it with more money than the item price, it sends: "You don't have sufficient money!"
Sorry if you don't understand something, i'm not english.
Look:
code_language.skript:
command /k [<text>] [<player>] [<player>] [<text>]:
trigger:
if arg-1 is "buy":
if {items.auction::%arg-2%} is set:
if arg-3 is not arg-2:
set {_money} to arg-4
replace all "$" or "," in {_money} with ""
send "%{_money}% == %{items.auction::%arg-2%::price}%" to arg-3
if {_money} is greater than or equal to {items.auction::%arg-2%::price}:
give {items.auction::%arg-2%} to arg-3
clear {items.auction::%arg-2%}
clear {items.auction::%arg-2%::name}
clear {items.auction::%arg-2%::price}
set {items.auction.used::%arg-2%} to false
clear {items.auction.time::%arg-2%}
send "&7[&6AH&7]&2You bought the item!" to arg-3
remove {items.auction::%arg-2%::price} from arg-3's balance
send "&7[&6AH&7]&2Your item has bought!" to arg-2
add {items.auction::%arg-2%::price} to arg-3's balance
else:
send "&7[&6AH&7]&cYou don't have sufficient money!" to arg-3
The problem is when i intent to detect if {_money} is more than the price of the item, but when i test it with more money than the item price, it sends: "You don't have sufficient money!"
Sorry if you don't understand something, i'm not english.