ArdadnzTR
[ Money Packer ]
- Katılım
- 13 Haziran 2018
- Mesajlar
- 13
- Elmaslar
- 5
- Puan
- 3.750
- Konum
- Bursa
- Minecraft
- Ardadeniz82
Discord:
ArdadnzTR#2368
Beyler, yardım edene şimdiden çok teşekkür ediyorum.
Sunucumda Satış skripti mevcut. Eskiden böyle bir sorun yoktu!
/Sat yazıp menü açıldığında birşey seçtiğimde tepki vermiyor.
Skript'te hatada yok.
Skript Kod:
Sunucumda Satış skripti mevcut. Eskiden böyle bir sorun yoktu!
/Sat yazıp menü açıldığında birşey seçtiğimde tepki vermiyor.
Skript'te hatada yok.
Skript Kod:
Kod:
options:
p: §3§oBloodyTR §8»
demirfiyat: 125
altınfiyat: 250
elmasfiyat: 500
zümrütfiyat: 1000
demirblokfiyat: 1125
altınblokfiyat: 2250
elmasblokfiyat: 4500
zümrütblokfiyat: 9000
kaktüsfiyat: 75
endfiyat: 500
command /sat [<text>] [<number>] [<number>] [<number>]:
trigger:
arg-1 isn't set:
open virtual chest with size 3 named "&c&nSat Menü" to player
wait 1 tick
set {_slot} to 0
loop 27 times:
make gui slot {_slot} of player with gray stained glass pane named "&f"
add 1 to {_slot}
make gui slot 0 of player with iron ingot named "&fDemir" to run function esyaSatmenu(player, iron ingot, 125)
make gui slot 1 of player with gold ingot named "&6Altın" to run function esyaSatmenu(player, gold ingot, 250)
make gui slot 2 of player with diamond named "&bElmas" to run function esyaSatmenu(player, diamond, 500)
make gui slot 3 of player with emerald named "&aZümrüt" to run function esyaSatmenu(player, emerald, 1000)
make gui slot 13 of player with cactus named "&aKaktüs" to run function esyaSatmenu(player, cactus, 75)
make gui slot 18 of player with iron block named "&fDemir Blok" to run function esyaSatmenu(player, iron block, 1125)
make gui slot 19 of player with gold block named "&6Altın Blok" to run function esyaSatmenu(player, gold block, 2250)
make gui slot 20 of player with diamond block named "&bElmas Blok" to run function esyaSatmenu(player, diamond block, 4500)
make gui slot 21 of player with emerald block named "&aZümrüt Blok" to run function esyaSatmenu(player, emerald block, 9000)
make gui slot 14 of player with End Stone named "&aEnd Taşı" to run function esyaSatmenu(player, end stone, 500)
make gui slot 26 of player with redstone named "&cKapat" to close
function esyaSat(p: player, i: item, n: number, m: number):
if amount of {_i} in {_p}'s inventory is greater than or equal to {_n}:
add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%{_n}% &7%{_i}% satıldı!" for 2 second
set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
remove {_n} of {_i} from {_p}'s inventory
else:
send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSathepsi(p: player, i: item, m: number):
if amount of {_i} in {_p}'s inventory is greater than 0:
add (amount of {_i} in {_p}'s inventory * {_m}) to {_p}'s balance
send {_p} title "&a&lBaşarılı" with subtitle "&7Envanterindeki &f%amount of {_i} in {_p}'s inventory% &7%{_i}% satıldı!" for 2 second
set action bar of {_p} to "&4&l» &2Başarılı &4&l«"
remove all {_i} from {_p}'s inventory
else:
send {_p} title "&4&lBaşarısız" with subtitle "&7Envanterinde yeterli eşya yok!" for 2 second
set action bar of {_p} to "&4&l» &cBaşarısız &4&l«"
function esyaSatmenu(p: player, i: item, m: number):
open virtual chest with size 3 named "%{_i}%" to {_p}
wait 1 tick
set {_slot} to 0
loop 27 times:
make gui slot {_slot} of {_p} with gray stained glass pane named "&f"
add 1 to {_slot}
make gui slot 4 of {_p} with skull of {_p} named "%{_i}%" with lore "&7Envanterinde &c%amount of {_i} in {_p}'s inventory% &7tane bulunmakta.||&7%{_i}% tanesi &a%{_m}%Tl" to nothing
make gui slot 13 of {_p} with {_i} named "&6&nHepsini sat" with lore "||&7Tıklayarak &chepsini &7sat||||&7Alacağın para: &a%(amount of {_i} in {_p}'s inventory * {_m})%" to run function esyaSathepsi({_p}, {_i}, {_m})
make gui slot 26 of {_p} with redstone named "&cGeri dön" to run {_p} command "sat"