Yardim Bi içeri Bakin

Demmy

Demir Madencisi
En iyi cevaplar
0
Arkadaşlar bi Skript Yaptik Kasa Skripti CS:GO Benzeri bir şey Böle Şansina Dönüyo Ama ben tam anlamadim bunu yapamadik anahtar vermiyo envantere düzelte bilen varmi
Skypem emrecan.karakacan
SKRİPT AŞŞADA AZ






options:
AnahtarItem: tripwire hook
AnahtarIsim: &bKasa Anahtarı
Prefix: &bKasa &8&l>&7
KasaMenusuAdi: &2Kasa Açılıyor...

on script load:
loop all players:
if {kasaAciliyor::%loop-player%} is true:
clear {kasaAciliyor::%loop-player%}
clear {kasaAciliyor}
clear {_itemler::*}
set {Kasa::Esyalar::item::1} to "5 ender pearl" #örnek
set {Kasa::Esyalar::item::2} to "5 ender pearl"
set {Kasa::Esyalar::item::3} to "5 ender pearl"
set {Kasa::Esyalar::item::4} to "1 diamond chestplate"
set {Kasa::Esyalar::item::5} to "1 diamond chestplate"
set {Kasa::Esyalar::item::6} to "1 diamond chestplate of protection 3"
set {Kasa::Esyalar::item::7} to "1 diamond chestplate of protection 4"
set {Kasa::Esyalar::item::8} to "diamond sword"
set {Kasa::Esyalar::item::9} to "diamond sword"
set {Kasa::Esyalar::item::10} to "diamond sword of sharpness 2"
set {Kasa::Esyalar::item::11} to "3 diamond blocks"
set {Kasa::Esyalar::item::12} to "3 diamond blocks"
set {Kasa::Esyalar::item::13} to "3 diamond blocks"
set {Kasa::Esyalar::item::14} to "diamond axe"
set {Kasa::Esyalar::item::15} to "diamond axe of efficiency 2"
set {Kasa::Esyalar::item::16} to "4 emerald block"
set {Kasa::Esyalar::item::17} to "4 emerald block"
set {Kasa::Esyalar::item::18} to "4 emerald block"
set {Kasa::Esyalar::item::19} to "nether star"
set {Kasa::Esyalar::item::20} to "10 tnt"
set {Kasa::Esyalar::item::21} to "16 obsidian"
set {Kasa::Esyalar::item::22} to "16 obsidian"
set {Kasa::Esyalar::item::23} to "16 obsidian"

on quit:
if {kasaAciliyor::%player%} is true:
clear {kasaAciliyor::%player%}
clear {kasaAciliyor}

command /sandıkayarla:
trigger:
if player has permission "sandik.admin":
if targeted block is chest:
if {ozelSandik::%location of targeted block%} is not set:
set {_loc} to location of targeted block
set {ozelSandik::%{_loc}%} to {_loc}
send "{@Prefix} Önünüzdeki sandık artık kasa, kasanın özelliğini kaldırmak için /sandıkayarla yazabilirsin."
stop
else if {ozelSandik::%location of targeted block%} is set:
clear {ozelSandik::%location of targeted block%}
send "{@Prefix} Önünüzdeki sandık artık kasa değil, tekrar kasa yapmak için /sandıkayarla yazabilirsin."
else:
send "{@Prefix} Bunu kullanabilmek için bir sandığa bakman gerek!"
else:
send "{@Prefix} Bunun için iznin yok"


on rightclick on chest:
if {ozelSandik::%location of event-block%} is set:
cancel event
if player's tool is {@AnahtarItem}:
if name of player's tool is "{@AnahtarIsim}":
if {kasaAciliyor} is set:
send "{@Prefix} Lütfen bekle, şuanda bu kasa açılıyor.."
stop
set {_key} to true
set {_hash} to line 1 of lore of player's tool
remove 1 {@AnahtarItem} named "{@AnahtarIsim}" with lore {_hash} from player's inventory
if {_hash} is not set:
send "{@Prefix} Kullandığınız anahtarın kodu geçersiz!"
set {_key} to false
stop
if {tumKodlar::*} does not contain {_hash}:
send "{@Prefix} Kullandığınız anahtarın kodu geçersiz!"
set {_key} to false
stop
remove {_hash} from {tumKodlar::*}
set {kasaAciliyor} to true
set {kasaAciliyor::%player%} to true
wait 5 tick
loop 9 times:
add "%{Kasa::Esyalar::item::%random integer between 1 and 23%}%" to {_itemler::*}
open chest with 3 rows named "{@KasaMenusuAdi}" to player
wait 1 tick
loop 9 times:
format slot (loop-number - 1) of player with black stained glass pane named "&7" to be unstealable
loop 9 times:
format slot ((loop-number - 1)+18) of player with black stained glass pane named "&7" to be unstealable
format slot 4 of player with red stained glass pane named "&7Senin Eşyan!" to be unstealable
format slot 22 of player with red stained glass pane named "&7Senin Eşyan!" to be unstealable
set {_loop} to a random integer between 20 and 25
loop {_loop} times:
set {_item::9} to {_item::8}
set {_item::8} to {_item::7}
set {_item::7} to {_item::6}
set {_item::6} to {_item::5}
set {_item::5} to {_item::4}
set {_item::4} to {_item::3}
set {_item::3} to {_item::2}
set {_item::2} to {_item::1}
set {_item::1} to "%a random element out of {_itemler::*}%" parsed as material
loop 9 times:
set {_n} to loop-number-2
set {_i} to {_item::%loop-number-2%}
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot (({_n} - 1)+9) of player with {_item::%loop-number-2%} to be unstealable
add 1 to {_ses}
if {_ses} > 3:
set {_ses} to 1
if {_ses} = 1:
play raw sound "random.click" at player with pitch 2 volume 0.5
if {_ses} = 2:
play raw sound "random.click" at player with pitch 1 volume 0.5
if {_ses} = 3:
play raw sound "random.click" at player with pitch 0 volume 0.5
wait 2 ticks
set {_loop} to a random integer between 10 and 18
loop {_loop} times:
set {_item::9} to {_item::8}
set {_item::8} to {_item::7}
set {_item::7} to {_item::6}
set {_item::6} to {_item::5}
set {_item::5} to {_item::4}
set {_item::4} to {_item::3}
set {_item::3} to {_item::2}
set {_item::2} to {_item::1}
set {_item::1} to "%a random element out of {_itemler::*}%" parsed as material
loop 9 times:
set {_n} to loop-number-2
set {_i} to {_item::%loop-number-2%}
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot (({_n} - 1)+9) of player with {_item::%loop-number-2%} to be unstealable
add 1 to {_ses}
if {_ses} > 3:
set {_ses} to 1
if {_ses} = 1:
play raw sound "random.click" at player with pitch 2 volume 0.5
if {_ses} = 2:
play raw sound "random.click" at player with pitch 1 volume 0.5
if {_ses} = 3:
play raw sound "random.click" at player with pitch 0 volume 0.5
wait 4 ticks
set {_loop} to a random integer between 7 and 15
loop {_loop} times:
set {_item::9} to {_item::8}
set {_item::8} to {_item::7}
set {_item::7} to {_item::6}
set {_item::6} to {_item::5}
set {_item::5} to {_item::4}
set {_item::4} to {_item::3}
set {_item::3} to {_item::2}
set {_item::2} to {_item::1}
set {_item::1} to "%a random element out of {_itemler::*}%" parsed as material
loop 9 times:
set {_n} to loop-number-2
set {_i} to {_item::%loop-number-2%}
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot (({_n} - 1)+9) of player with {_item::%loop-number-2%} to be unstealable
add 1 to {_ses}
if {_ses} > 3:
set {_ses} to 1
if {_ses} = 1:
play raw sound "random.click" at player with pitch 2 volume 0.5
if {_ses} = 2:
play raw sound "random.click" at player with pitch 1 volume 0.5
if {_ses} = 3:
play raw sound "random.click" at player with pitch 0 volume 0.5
wait 6 ticks
set {_loop} to a random integer between 3 and 7
loop {_loop} times:
set {_item::9} to {_item::8}
set {_item::8} to {_item::7}
set {_item::7} to {_item::6}
set {_item::6} to {_item::5}
set {_item::5} to {_item::4}
set {_item::4} to {_item::3}
set {_item::3} to {_item::2}
set {_item::2} to {_item::1}
set {_item::1} to "%a random element out of {_itemler::*}%" parsed as material
loop 9 times:
set {_n} to loop-number-2
set {_i} to {_item::%loop-number-2%}
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot (({_n} - 1)+9) of player with {_item::%loop-number-2%} to be unstealable
add 1 to {_ses}
if {_ses} > 3:
set {_ses} to 1
if {_ses} = 1:
play raw sound "random.click" at player with pitch 2 volume 0.5
if {_ses} = 2:
play raw sound "random.click" at player with pitch 1 volume 0.5
if {_ses} = 3:
play raw sound "random.click" at player with pitch 0 volume 0.5
wait 8 ticks
set {_loop} to a random integer between 1 and 3
loop {_loop} times:
set {_item::9} to {_item::8}
set {_item::8} to {_item::7}
set {_item::7} to {_item::6}
set {_item::6} to {_item::5}
set {_item::5} to {_item::4}
set {_item::4} to {_item::3}
set {_item::3} to {_item::2}
set {_item::2} to {_item::1}
set {_item::1} to "%a random element out of {_itemler::*}%" parsed as material
loop 9 times:
set {_n} to loop-number-2
set {_i} to {_item::%loop-number-2%}
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot (({_n} - 1)+9) of player with {_item::%loop-number-2%} to be unstealable
add 1 to {_ses}
if {_ses} > 3:
set {_ses} to 1
if {_ses} = 1:
play raw sound "random.click" at player with pitch 2 volume 0.5
if {_ses} = 2:
play raw sound "random.click" at player with pitch 1 volume 0.5
if {_ses} = 3:
play raw sound "random.click" at player with pitch 0 volume 0.5
wait 10 ticks
set {_item} to {_item::5}
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot 9 of player with gold ingot named "&7" to be unstealable
format slot 17 of player with gold ingot named "&7" to be unstealable
wait 5 ticks
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot 10 of player with gold ingot named "&7" to be unstealable
format slot 16 of player with gold ingot named "&7" to be unstealable
wait 5 ticks
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot 11 of player with gold ingot named "&7" to be unstealable
format slot 15 of player with gold ingot named "&7" to be unstealable
wait 5 ticks
if inventory name of player's current inventory contains "{@KasaMenusuAdi}":
format slot 12 of player with gold ingot named "&7" to be unstealable
format slot 14 of player with gold ingot named "&7" to be unstealable
play raw sound "fireworks.twinkle" at player with pitch 1 volume 2
wait 40 ticks
give player {_item}
message "{@Prefix} Tebrikler, kazandığın eşya &b%{_item}%&7!"
broadcast "{@Prefix} &6%player%, &7kasadan şu eşyayı kazandı: &b%{_item}%"
play raw sound "random.successful_hit" at player with pitch 1 volume 10
clear {kasaAciliyor}
clear {kasaAciliyor::%player%}
clear {_itemler::*}
close player's inventory
stop
else:
send "{@Prefix} Bu eşya bir kasa anahtarı değil!"
stop
else:
send "{@Prefix} Lütfen elinde {@AnahtarItem} eşyasını tut!"
stop

on inventory close:
if {kasaAciliyor} is set:
if {kasaAciliyor::%player%} is set:
wait 1 tick
open chest with 3 rows named "{@KasaMenusuAdi}" to player
wait 1 tick
loop 9 times:
format slot (loop-number - 1) of player with black stained glass pane named "&7" to be unstealable
loop 9 times:
format slot ((loop-number - 1)+18) of player with black stained glass pane named "&7" to be unstealable
format slot 4 of player with red stained glass pane named "&7Senin Eşyan!" to be unstealable
format slot 22 of player with red stained glass pane named "&7Senin Eşyan!" to be unstealable

on break of chest:
if {ozelSandik::%location of event-block%} is set:
cancel event

command /anahtarver:
trigger:
if player has permission "sandik.admin":
set {_hash} to "c%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%de%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%"
add {_hash} to {tumKodlar::*}
send "{@Prefix} Anahtar envantere eklendi."
give 1 {@TripwireHook} of unbreaking 10 named "{@Blockin}" with lore "%{_hash}%" to player
else:
send "{@Prefix} Bunun için iznin yok"
 

Demmy

Demir Madencisi
En iyi cevaplar
0
Arkadaşlar bi Skript Yaptik Kasa Skripti CS:GO Benzeri bir şey Böle Şansina Dönüyo Ama ben tam anlamadim bunu yapamadik anahtar vermiyo envantere düzelte bilen varmi
Skypem emrecan.karakacan
SKRİPT AŞŞADA AZ

Yaptıysan nedenini bilmedenmi yaptın?
Sorunu Bulamadim İşte :) Deniyorum deniyorum herşeyi olmuyor
 

Pentatonix

Zombi Katili
En iyi cevaplar
0
internette buldum belki işine yarar
Kod:
variables:
    pre = "&8[&3Crates&8]"
on rightclick on chest:
    loop blocks in radius 1 of clicked block:
        loop-block is a sign:
            line 1 of loop-block is "Crate":
                set {_crate} to true
                exit loop
        set {_crate} to false
    if {_crate} is not true:
        stop
        exit trigger
    cancel event
    player is not holding tripwire hook:
        set {_key} to false
    player is holding tripwire hook:
        set {_key} to false

        set {_hash} to line 1 of lore of player's tool

        name of player's tool is "&6C&eo&6i&en &6Key":
            set {_key} to true
            remove 1 tripwire hook named "&6C&eo&6i&en &6Key" with lore {_hash} from player's inventory
            remove 1 from {stats.keys.circ}
            remove 1 from {stats.keys.circ.coin}
            add 1 to {stats.crates.open}
            add 1 to {stats.crates.open.coin}
        name of player's tool is "&9Developer Key":
            set {_key} to true

        if {_hash} is not set:
            send "&6&lCrate&8&l> &4You are using an invalid key. Contact an administrator."
            set {_key} to false

        if {cratehash::*} does not contain {_hash}:
            send "&6&lCrate&8&l> &4You are using an invalid key. Contact an administrator."
            set {_key} to false

        remove {_hash} from {cratehash::*}
          
    if {_key} is not true:
        send "&6&lCrate&8&l> &7 &4You must have a key."
        stop
        exit trigger
  
    set {_item1} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item2} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item3} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item4} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item5} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item6} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item7} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item8} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item9} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    open chest with 2 rows named "&n&6C&eo&6i&en&6s &6Crate" to player
    set {crate.open.%player%} to "coin"
    wait 1 tick
    format slot 2 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 3 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 4 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 5 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 6 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 9 of player with black stained glass pane named "" to be unstealable
    format slot 10 of player with black stained glass pane named "" to be unstealable
    format slot 11 of player with black stained glass pane named "" to be unstealable
    format slot 12 of player with black stained glass pane named "" to be unstealable
    format slot 13 of player with red stained glass named "&6Your Item" to be unstealable
    format slot 14 of player with black stained glass pane named "" to be unstealable
    format slot 15 of player with black stained glass pane named "" to be unstealable
    format slot 16 of player with black stained glass pane named "" to be unstealable
    format slot 17 of player with black stained glass pane named "" to be unstealable
    loop 12 times:
        wait 2 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 10 times:
        wait 4 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 8 times:
        wait 6 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 6 times:
        wait 8 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 4 times:
        wait 12 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 3 times:
        wait 15 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    wait 50 ticks
    format slot 0 of player with gold ingot to be unstealable
    format slot 1 of player with gold ingot to be unstealable
    format slot 2 of player with gold ingot to be unstealable
    format slot 3 of player with gold ingot to be unstealable
    format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 5 of player with gold ingot to be unstealable
    format slot 6 of player with gold ingot to be unstealable
    format slot 7 of player with gold ingot to be unstealable
    format slot 8 of player with gold ingot to be unstealable
    play raw sound "fireworks.twinkle" at player with pitch 1 volume 2
    wait 40 ticks
    delete {crate.open.%player%}
    give player {_item5}
    message "&6&lCrate&8&l> &7You got %{_item5}%"
    play raw sound "random.successful_hit" at player with pitch 1 volume 10


on left click on chest:
#    if {crates::Coins Crate::loc} is location of event-chest:
    loop blocks in radius 1 of clicked block:
        if loop-block is a sign:
            if line 1 of loop-block is "Crate":
                set {_crate} to true
                exit loop
        set {_crate} to false
    if {_crate} is not true:
        stop
        exit trigger
    message "&6&lCrate&8&l> &7Get a coin crate by buying it using /Coins"
    cancel the event
    open chest with 3 rows named "&nCoins Crate " to player
    wait 1 tick
    format slot 0 of player with 5 Ender pearls named "&6Ender Pearls" with lore "&9Common" to be unstealable          
    format slot 1 of player with diamond axe named "&6Diamond Axe" with lore "&9Common" to be unstealable      
    format slot 2 of player with 16 obsidian named "&6Obsidian" with lore "&9Common" to be unstealable
    format slot 3 of player with 8 tnt named "&6TnT" with lore "&9Common" to be unstealable      
    format slot 4 of player with diamond sword named "&6Diamond Sword" with lore "&9Common" to be unstealable  
    format slot 5 of player with diamond helmet named "&6Diamond Helmet" with lore "&9Common" to be unstealable      
    format slot 6 of player with diamond chestplate named "&6Diamond Chestplate" with lore "&9Un Common" to be unstealable      
    format slot 7 of player with diamond leggings named "&6Diamond Leggings" with lore "&9Un Common" to be unstealable      
    format slot 8 of player with diamond boots named "&6Diamond Boots" with lore "&9Un Common" to be unstealable  
    format slot 9 of player with 20 bottle of enchanting named "&6Bottle Of Enchanting" with lore "&9Un Common" to be unstealable  
    format slot 10 of player with 4 emerald blocks named "&6Emerald Blocks" with lore "&9Un Common" to be unstealable  
    format slot 11 of player with 3 diamond blocks named "&6Diamond Blocks" with lore "&9Un Common" to be unstealable  
    format slot 12 of player with 9 iron blocks named "&6Iron Blocks" with lore "&9Un Common" to be unstealable  
    format slot 13 of player with diamond pick named "&6Diamond Pickaxe" with lore "&9Un Common" to be unstealable  
    format slot 14 of player with 383:50 named "&61 Creeper egg" with lore "&9Rare" to be unstealable  
    format slot 15 of player with nether star named "&6Nether Star" with lore "&9Rare" to be unstealable  
    format slot 16 of player with tripwire hook named "&6Rare Key" with lore "&9Rare" to be unstealable  
    format slot 17 of player with Tripwire Hook named "&6Legendary Key" with lore "&9Rare" to be unstealable  


on skript start:
    set {crates::Coins Crate::items::1} to "5 ender pearl"
    set {crates::Coins Crate::items::2} to "5 ender pearl"
    set {crates::Coins Crate::items::3} to "5 ender pearl"
    set {crates::Coins Crate::items::4} to "1 diamond chestplate"
    set {crates::Coins Crate::items::5} to "1 diamond chestplate"
    set {crates::Coins Crate::items::6} to "1 diamond chestplate of protection 3"
    set {crates::Coins Crate::items::7} to "1 diamond chestplate of protection 4"
    set {crates::Coins Crate::items::8} to "diamond sword"
    set {crates::Coins Crate::items::9} to "diamond sword"
    set {crates::Coins Crate::items::10} to "diamond sword of sharpness 2"
    set {crates::Coins Crate::items::11} to "3 diamond blocks"
    set {crates::Coins Crate::items::12} to "3 diamond blocks"
    set {crates::Coins Crate::items::13} to "3 diamond blocks"
    set {crates::Coins Crate::items::14} to "diamond axe"
    set {crates::Coins Crate::items::15} to "diamond axe of efficiency 2"
    set {crates::Coins Crate::items::16} to "4 emerald block"
    set {crates::Coins Crate::items::17} to "4 emerald block"
    set {crates::Coins Crate::items::18} to "4 emerald block"
    set {crates::Coins Crate::items::19} to "nether star"
    set {crates::Coins Crate::items::20} to "10 tnt"
    set {crates::Coins Crate::items::21} to "16 obsidian"
    set {crates::Coins Crate::items::22} to "16 obsidian"
    set {crates::Coins Crate::items::23} to "16 obsidian"
  

command /cratedebug:
    trigger:
        message "Coins Crate crate items: %{crates::Coins Crate::items::*}%"
        set {_items} to "1 %{crates::Coins Crate::items::%random integer between 1 and 5%}%" parsed as an itemtype
        give {_items} to player

command /crate [<text>] [<text>]:
    permission: destiny.builder
    trigger:
        if arg 1 is "new":
            if arg 2 is not set:
                send "&6&lCrate&8&l> &7 &4You did not specify a type of crate. Types: &6crate"
            if arg 2 is "coin":
                send "&6&lCrate&8&l> &7 &2Please right click on a chest with a blank sign above it."
                set {crate.stage.%player%} to 1


on right click on chest:
    {crate.stage.%player%} is 1:
        if the block above the clicked block is a sign:
            cancel the event
            set line 1 of the block above the clicked block to "Crate"
            set line 2 of the block above the clicked block to "&9Coin"
            #set line 4 of the block above the clicked block to "&b/crate set"
            delete {crate.stage.%player%}

command /buykey <text> [<text>]:
    trigger:

        if arg 1 is not "pizzaparty":
            send "&6&lCrate&8&l> &4Invalid purchase hash. Contact an administrator."
            stop trigger

        if arg 2 is "dev":
            give player 1 tripwire hook named "&9Developer Key"
            send "&6&lCrate&8&l> &7 &5You gained &aone &9developer key."

        set {_hash} to "c%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%de%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%"

        add {_hash} to {cratehash::*}

        give player 1 tripwire hook named "&6C&eo&6i&en &6Key" with lore "%{_hash}%"
        send "&6&lCrate&8&l> &7 &5You gained &aone &6c&eo&6i&en &6key&5."
        add 1 to {stats.keys.circ}
        add 1 to {stats.keys.circ.coin}
        add 1 to {stats.keys.sold}
        add 1 to {stats.keys.sold.coin}

command /cratestats:
    trigger:
        send "&8>> &bCrate Statistics"
        send "&3Keys in Circulation: &6%{stats.keys.circ}%"
        send "&3Coin Keys in Circulation: &6%{stats.keys.circ.coin}%"
        send "&3Keys Purchased: &6%{stats.keys.sold}%"
        send "&3Coin Keys Purchased: &6%{stats.keys.sold.coin}%"
        send "&3Crates Opened: &6%{stats.crates.open}%"
        send "&3Coin Crates Opened: &6%{stats.crates.open.coin}%"

command /resetcrates:
    permission: destiny.debughype
    trigger:
        set {stats.keys.circ} to 0
        set {stats.keys.circ.coin} to 0
        set {stats.keys.sold} to 0
        set {stats.keys.sold.coin} to 0
        set {stats.crates.open} to 0
        set {stats.crates.open.coin} to 0

command /hashdebug:
    trigger:
        broadcast "%{cratehash::*}%"
 

Demmy

Demir Madencisi
En iyi cevaplar
0
internette buldum belki işine yarar
Kod:
variables:
    pre = "&8[&3Crates&8]"
on rightclick on chest:
    loop blocks in radius 1 of clicked block:
        loop-block is a sign:
            line 1 of loop-block is "Crate":
                set {_crate} to true
                exit loop
        set {_crate} to false
    if {_crate} is not true:
        stop
        exit trigger
    cancel event
    player is not holding tripwire hook:
        set {_key} to false
    player is holding tripwire hook:
        set {_key} to false

        set {_hash} to line 1 of lore of player's tool

        name of player's tool is "&6C&eo&6i&en &6Key":
            set {_key} to true
            remove 1 tripwire hook named "&6C&eo&6i&en &6Key" with lore {_hash} from player's inventory
            remove 1 from {stats.keys.circ}
            remove 1 from {stats.keys.circ.coin}
            add 1 to {stats.crates.open}
            add 1 to {stats.crates.open.coin}
        name of player's tool is "&9Developer Key":
            set {_key} to true

        if {_hash} is not set:
            send "&6&lCrate&8&l> &4You are using an invalid key. Contact an administrator."
            set {_key} to false

        if {cratehash::*} does not contain {_hash}:
            send "&6&lCrate&8&l> &4You are using an invalid key. Contact an administrator."
            set {_key} to false

        remove {_hash} from {cratehash::*}
         
    if {_key} is not true:
        send "&6&lCrate&8&l> &7 &4You must have a key."
        stop
        exit trigger
 
    set {_item1} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item2} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item3} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item4} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item5} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item6} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item7} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item8} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    set {_item9} to {crates::Coins Crate::items::%random integer between 1 and 23%} parsed as an itemtype
    open chest with 2 rows named "&n&6C&eo&6i&en&6s &6Crate" to player
    set {crate.open.%player%} to "coin"
    wait 1 tick
    format slot 2 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 3 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 4 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 5 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 6 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 9 of player with black stained glass pane named "" to be unstealable
    format slot 10 of player with black stained glass pane named "" to be unstealable
    format slot 11 of player with black stained glass pane named "" to be unstealable
    format slot 12 of player with black stained glass pane named "" to be unstealable
    format slot 13 of player with red stained glass named "&6Your Item" to be unstealable
    format slot 14 of player with black stained glass pane named "" to be unstealable
    format slot 15 of player with black stained glass pane named "" to be unstealable
    format slot 16 of player with black stained glass pane named "" to be unstealable
    format slot 17 of player with black stained glass pane named "" to be unstealable
    loop 12 times:
        wait 2 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 10 times:
        wait 4 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 8 times:
        wait 6 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 6 times:
        wait 8 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 4 times:
        wait 12 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    loop 3 times:
        wait 15 ticks
        set {_item1} to {_item2}
        set {_item2} to {_item3}
        set {_item3} to {_item4}
        set {_item4} to {_item5}
        set {_item5} to {_item6}
        set {_item6} to {_item7}
        set {_item7} to {_item8}
        set {_item8} to {_item9}
        set {_item9} to {_item1}
        format slot 0 of player with {_item1} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 1 of player with {_item2} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 2 of player with {_item3} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 3 of player with {_item4} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 5 of player with {_item6} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 6 of player with {_item7} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 7 of player with {_item8} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        format slot 8 of player with {_item9} named "&6Coins Crate Reward" with lore "&7Random Coins Crate Reward" to be unstealable
        play raw sound "random.click" at player with pitch 1 volume 1
    wait 50 ticks
    format slot 0 of player with gold ingot to be unstealable
    format slot 1 of player with gold ingot to be unstealable
    format slot 2 of player with gold ingot to be unstealable
    format slot 3 of player with gold ingot to be unstealable
    format slot 4 of player with {_item5} named "&9Reward" with lore "&7Random Coins Crate Reward" to be unstealable
    format slot 5 of player with gold ingot to be unstealable
    format slot 6 of player with gold ingot to be unstealable
    format slot 7 of player with gold ingot to be unstealable
    format slot 8 of player with gold ingot to be unstealable
    play raw sound "fireworks.twinkle" at player with pitch 1 volume 2
    wait 40 ticks
    delete {crate.open.%player%}
    give player {_item5}
    message "&6&lCrate&8&l> &7You got %{_item5}%"
    play raw sound "random.successful_hit" at player with pitch 1 volume 10


on left click on chest:
#    if {crates::Coins Crate::loc} is location of event-chest:
    loop blocks in radius 1 of clicked block:
        if loop-block is a sign:
            if line 1 of loop-block is "Crate":
                set {_crate} to true
                exit loop
        set {_crate} to false
    if {_crate} is not true:
        stop
        exit trigger
    message "&6&lCrate&8&l> &7Get a coin crate by buying it using /Coins"
    cancel the event
    open chest with 3 rows named "&nCoins Crate " to player
    wait 1 tick
    format slot 0 of player with 5 Ender pearls named "&6Ender Pearls" with lore "&9Common" to be unstealable         
    format slot 1 of player with diamond axe named "&6Diamond Axe" with lore "&9Common" to be unstealable     
    format slot 2 of player with 16 obsidian named "&6Obsidian" with lore "&9Common" to be unstealable
    format slot 3 of player with 8 tnt named "&6TnT" with lore "&9Common" to be unstealable     
    format slot 4 of player with diamond sword named "&6Diamond Sword" with lore "&9Common" to be unstealable 
    format slot 5 of player with diamond helmet named "&6Diamond Helmet" with lore "&9Common" to be unstealable     
    format slot 6 of player with diamond chestplate named "&6Diamond Chestplate" with lore "&9Un Common" to be unstealable     
    format slot 7 of player with diamond leggings named "&6Diamond Leggings" with lore "&9Un Common" to be unstealable     
    format slot 8 of player with diamond boots named "&6Diamond Boots" with lore "&9Un Common" to be unstealable 
    format slot 9 of player with 20 bottle of enchanting named "&6Bottle Of Enchanting" with lore "&9Un Common" to be unstealable 
    format slot 10 of player with 4 emerald blocks named "&6Emerald Blocks" with lore "&9Un Common" to be unstealable 
    format slot 11 of player with 3 diamond blocks named "&6Diamond Blocks" with lore "&9Un Common" to be unstealable 
    format slot 12 of player with 9 iron blocks named "&6Iron Blocks" with lore "&9Un Common" to be unstealable 
    format slot 13 of player with diamond pick named "&6Diamond Pickaxe" with lore "&9Un Common" to be unstealable 
    format slot 14 of player with 383:50 named "&61 Creeper egg" with lore "&9Rare" to be unstealable 
    format slot 15 of player with nether star named "&6Nether Star" with lore "&9Rare" to be unstealable 
    format slot 16 of player with tripwire hook named "&6Rare Key" with lore "&9Rare" to be unstealable 
    format slot 17 of player with Tripwire Hook named "&6Legendary Key" with lore "&9Rare" to be unstealable 


on skript start:
    set {crates::Coins Crate::items::1} to "5 ender pearl"
    set {crates::Coins Crate::items::2} to "5 ender pearl"
    set {crates::Coins Crate::items::3} to "5 ender pearl"
    set {crates::Coins Crate::items::4} to "1 diamond chestplate"
    set {crates::Coins Crate::items::5} to "1 diamond chestplate"
    set {crates::Coins Crate::items::6} to "1 diamond chestplate of protection 3"
    set {crates::Coins Crate::items::7} to "1 diamond chestplate of protection 4"
    set {crates::Coins Crate::items::8} to "diamond sword"
    set {crates::Coins Crate::items::9} to "diamond sword"
    set {crates::Coins Crate::items::10} to "diamond sword of sharpness 2"
    set {crates::Coins Crate::items::11} to "3 diamond blocks"
    set {crates::Coins Crate::items::12} to "3 diamond blocks"
    set {crates::Coins Crate::items::13} to "3 diamond blocks"
    set {crates::Coins Crate::items::14} to "diamond axe"
    set {crates::Coins Crate::items::15} to "diamond axe of efficiency 2"
    set {crates::Coins Crate::items::16} to "4 emerald block"
    set {crates::Coins Crate::items::17} to "4 emerald block"
    set {crates::Coins Crate::items::18} to "4 emerald block"
    set {crates::Coins Crate::items::19} to "nether star"
    set {crates::Coins Crate::items::20} to "10 tnt"
    set {crates::Coins Crate::items::21} to "16 obsidian"
    set {crates::Coins Crate::items::22} to "16 obsidian"
    set {crates::Coins Crate::items::23} to "16 obsidian"
 

command /cratedebug:
    trigger:
        message "Coins Crate crate items: %{crates::Coins Crate::items::*}%"
        set {_items} to "1 %{crates::Coins Crate::items::%random integer between 1 and 5%}%" parsed as an itemtype
        give {_items} to player

command /crate [<text>] [<text>]:
    permission: destiny.builder
    trigger:
        if arg 1 is "new":
            if arg 2 is not set:
                send "&6&lCrate&8&l> &7 &4You did not specify a type of crate. Types: &6crate"
            if arg 2 is "coin":
                send "&6&lCrate&8&l> &7 &2Please right click on a chest with a blank sign above it."
                set {crate.stage.%player%} to 1


on right click on chest:
    {crate.stage.%player%} is 1:
        if the block above the clicked block is a sign:
            cancel the event
            set line 1 of the block above the clicked block to "Crate"
            set line 2 of the block above the clicked block to "&9Coin"
            #set line 4 of the block above the clicked block to "&b/crate set"
            delete {crate.stage.%player%}

command /buykey <text> [<text>]:
    trigger:

        if arg 1 is not "pizzaparty":
            send "&6&lCrate&8&l> &4Invalid purchase hash. Contact an administrator."
            stop trigger

        if arg 2 is "dev":
            give player 1 tripwire hook named "&9Developer Key"
            send "&6&lCrate&8&l> &7 &5You gained &aone &9developer key."

        set {_hash} to "c%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%de%random integer from 0 to 9%%random integer from 0 to 9%%random integer from 0 to 9%"

        add {_hash} to {cratehash::*}

        give player 1 tripwire hook named "&6C&eo&6i&en &6Key" with lore "%{_hash}%"
        send "&6&lCrate&8&l> &7 &5You gained &aone &6c&eo&6i&en &6key&5."
        add 1 to {stats.keys.circ}
        add 1 to {stats.keys.circ.coin}
        add 1 to {stats.keys.sold}
        add 1 to {stats.keys.sold.coin}

command /cratestats:
    trigger:
        send "&8>> &bCrate Statistics"
        send "&3Keys in Circulation: &6%{stats.keys.circ}%"
        send "&3Coin Keys in Circulation: &6%{stats.keys.circ.coin}%"
        send "&3Keys Purchased: &6%{stats.keys.sold}%"
        send "&3Coin Keys Purchased: &6%{stats.keys.sold.coin}%"
        send "&3Crates Opened: &6%{stats.crates.open}%"
        send "&3Coin Crates Opened: &6%{stats.crates.open.coin}%"

command /resetcrates:
    permission: destiny.debughype
    trigger:
        set {stats.keys.circ} to 0
        set {stats.keys.circ.coin} to 0
        set {stats.keys.sold} to 0
        set {stats.keys.sold.coin} to 0
        set {stats.crates.open} to 0
        set {stats.crates.open.coin} to 0

command /hashdebug:
    trigger:
        broadcast "%{cratehash::*}%"
Tam Anlamiyorum hocam cünkü komutlarini bilmedigim bir skript bu şuanda skypen varsa gelip yardimci olurmusun nasil olucak fln
 
Üst