command /tokeny [] [] [] []: trigger: if arg 1 is "przelej": if arg 2 is set: if arg 3 is set: if arg 4 is not set: if {dukaty.%player%} is higher than arg 3: remove arg 3 from {dukaty.%player%} add arg 3 to {dukaty.%arg 2%} else: send "{@tag} &cNie posiadasz tylu tokenow!" else: send "{@tag} &cNie podales liczby tokenow jaka chcesz przeslac!" else: send "{@tag} &cPodaj nick gracza!" if arg 1 is "daj": if arg 2 is set: if arg 3 is set: if arg 4 is not set: add arg 3 to {dukaty.%arg 2%} send "{@tag} &7Otrzymales &a%arg 3% &7tokenow" to arg 2 if arg 1 is "wymien": if arg 2 is set: if arg 3 is set: if arg 4 is set: if {dukaty.%player%} is higher than arg 3: if %arg 2% balance is more than or equal to arg 4: send "{@tag} &7Wyslales oferte wymiany do gracza &c%arg 2%. &7arg 3 za arg 4" set {wymiana.%player-arg 2%} to 1 send "{@tag} &7Otrzymales oferte wymiany od &c%sender%. &6arg 3 &7za &6arg 4 &7$" to arg 2 if arg 1 is "akceptuje": if arg 2 is not set: if arg 3 is not set: if arg 4 is not set: if {wymiana.%player%} is 1: set {wymiana.%player%} to 0