options:
waluta: $
on right click on sign:
if line 1 of clicked block is "[KUP]":
if line 2 of clicked block is "%item out of all items%":
if line 3 of clicked block contains "{@waluta}":
if balance of player >= line 2 of clicked block:
add "%line 2 of clicked block%" parsed as item type to player's inventory
remove line 3 of clicked block parsed as number from balance of player
send "&aZakupiles %line 2 of clicked block%" to the player
else:
send "&cNie posiadasz tyle monet" to the player
else:
send "&cBrak podanej waluty." to the player
else:
send "&cBlad przedmiotu." to the player
stop
Przykład tabliczki + Wyjaśnienie
LINIJKA 1 : [KUP] // Wymagane, aby skrypt działał.
LINIJKA 2 : DIAMOND SWORD // Nazwa przedmiotu sprzedawanego.
LINIJKA 3 : 30000$ // Cena + WALUTA (DO KONFIGURACJI W OPTIONS)