ProfDarking
Somon Balığı Selam Vermeye Geldi
- Katılım
- 21 Haziran 2015
- Mesajlar
- 21
- Elmaslar
- 3
- Puan
- 0
Skript var fakat çalışmıyor bunun sorunu nedir bakabilir misiniz
YAML:
options:
p: &aAlcatraz&fFaction &8»
otolapisfiyat: 10000
otolapisadet: 640
on quit:
set {otosatlapis::%player%} to false
on join:
while player is online:
wait 1 second
if {otosatlapis::%player%} is true:
if player has {@otolapisadet} lapis_lazuli_block:
remove {@otolapisadet} lapis_lazuli_block from player's inventory
send "{@p} &f{@otolapisadet} &7adet &3lapis bloğu &f{@otolapisfiyat} TL&7'ye &7satılmıştır." to player
add {@otolapisfiyat} to player's money
command /otosatayar [<Text>]:
trigger:
if arg 1 is set:
if arg 1 is "lapis_lazuli_block":
if {otosatlapis::%player%} is false:
send "{@p} &7Oto lapis satma &aaktif" to player
set {otosatlapis::%player%} to true
else:
send "{@p} &7Oto lapis satma &cdevredışı" to player
set {otosatlapis::%player%} to false
command /otosat [<Text>]:
trigger:
if arg 1 is not set:
open virtual chest with size 1 named "&6&lOTOSAT" to player
wait 1 tick
make gui slot 0 of player with lapis named "&9Lapis" with lore "" to nothing
if {otosatlapis::%player%} is false:
make gui slot 8 of player with gray dye named "&9Lapis" with lore "&7Durum: &cKapalı||&7Açmak için tıklayın." to close then run player command "otosatayar lapis"
else:
make gui slot 8 of player with light green dye named "&9Lapis" with lore "&7Durum: &aAçık||&7Kapatmak için tıklayın." to close then run player command "otosatayar lapis"