options:
p: &cServer &8»
otodemirblokfiyat: 1100
otodemirblokadet: 64
otoaltınblokfiyat: 1200
otoaltınblokadet: 64
otoelmasblokfiyat: 1500
otoelmasblokadet: 64
otozümrütblokfiyat: 1700
otozümrütblokadet: 64
quit:
set {otosat::demirblok::%player%}, {otosat::altınblok::%player%}, {otosat::elmasblok::%player%} or {otosat::zümrütblok::%player%} to false
join:
while player is online:
wait a second
if {otosat::demirblok::%player%} is true:
if player has {@otodemirblokadet} iron block:
remove {@otodemirblokadet} iron block from player's inventory
send "{@p} &f{@otodemirblokadet} &7adet Demir Blok &f{@otodemirblokfiyat} TL&7'ye &7satılmıştır."
add {@otodemirblokfiyat} to player's money
if {otosat::altınblok::%player%} is true:
if player has {@otoaltınblokadet} gold block:
remove {@otoaltınblokadet} gold block from player's inventory
send "{@p} &f{@otoaltınblokadet} &7adet &6Altın Blok &f{@otoaltınblokfiyat} TL&7'ye &7satılmıştır."
add {@otoaltınblokfiyat} to player's money
if {otosat::elmasblok::%player%} is true:
if player has {@otoelmasblokadet} diamond block:
remove {@otoelmasblokadet} diamond block from player's inventory
send "{@p} &f{@otoelmasblokadet} &7adet &bElmas Blok &f{@otoelmasblokfiyat} TL&7'ye &7satılmıştır."
add {@otoelmasblokfiyat} to player's money
if {otosat::zümrütblok::%player%} is true:
if player has {@otozümrütblokadet} emerald block:
remove {@otozümrütblokadet} emerald block from player's inventory
send "{@p} &f{@otozümrütblokadet} &7adet &aZümrüt Blok &f{@otozümrütblokfiyat} TL&7'ye &7satılmıştır."
add {@otozümrütblokfiyat} to player's money
command /otosat [<text>]:
trigger:
if arg-1 isn't set:
open virtual chest with size 3 named "&6&lOTOSAT" to player
wait a tick
make gui slot 0 of player with iron block named "&fDemir Blok" to nothing
if {otosat::demirblok::%player%} is false:
make gui slot 18 of player with gray dye named "&fDemir Blok" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosat demirblok"
else:
make gui slot 18 of player with light green dye named "&fDemir Blok" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosat demirblok"
make gui slot 1 of player with gold block named "&6Altın Blok" to nothing
if {otosat::altınblok::%player%} is false:
make gui slot 19 of player with gray dye named "&6Altın Blok" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosat altınblok"
else:
make gui slot 19 of player with light green dye named "&6Altın Blok" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosat altınblok"
make gui slot 2 of player with diamond block named "&bElmas Blok" to nothing
if {otosat::elmasblok::%player%} is false:
make gui slot 20 of player with gray dye named "&bElmas Blok" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosat elmasblok"
else:
make gui slot 20 of player with light green dye named "&bElmas Blok" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosat elmasblok"
make gui slot 3 of player with emerald block named "&aZümrüt Blok" to nothing
if {otosat::zümrütblok::%player%} is false:
make gui slot 21 of player with gray dye named "&aZümrüt Blok" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosat zümrütblok"
else:
make gui slot 21 of player with light green dye named "&aZümrüt Blok" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosat zümrütblok"
else if arg-1 is set:
if arg-1 is "demirblok", "altınblok", "elmasblok" or "zümrütblok":
if {otosat::%arg-1%::%player%} is false:
send "{@p} &7Oto &f%arg-1% &7satma &aaktif"
set {otosat::%arg-1%::%player%} to true
else:
send "{@p} &7Oto &f%arg-1% &7satma &cdevredışı"
set {otosat::%arg-1%::%player%} to false