@hbrt a w którym miejscu w tym evencie pojawia się jakiś gracz?
command /wymien:
trigger:
if points of player >= 100:
remove 100 from points of player
if player can hold 1 of diamond:
add 1 of diamond to player
else:
drop 1 of diamond at player's location
send "&cPomyslnie wymieniono 100 punktow na diament!"
stop
send "&cNie masz tyle punktow!"
proszę, komenda /wymień
Jeśli natomiast chcesz zrobić, żeby działo się to automatycznie, to proszę taki kod:
on points change:
if points of player >= 100:
remove 100 from points of player
if player can hold 1 of diamond:
add 1 of diamond to player
else:
drop 1 of diamond at player's location
send "&cPomyslnie wymieniono 100 punktow na diament!"