Merhaba Arkadaşlar bu aralar yeni skriptler üzerinde çalışıyorum.
Şans Sandığı ve Şanslı İtem V2 yazdım çok kolay oldu daha önce gelebilirdi ama başka skript üzerinde düşünüyordum yakında oda gelecek.
/basitkutu <oyuncu>
perm: basit.kutu
/dusukkutu <oyuncu>
perm: dusuk.kutu
/ortakutu <oyuncu>
perm: orta.kutu
/yuksekkutu <oyuncu>
perm: yuksek.kutu
Bide /elmaskutu var ama onu v1 de göstermiştim oda aynı mantıkla çalışıyor.
/itemkart <player>
perm: item.kart
Arkadaşlar kutulardan ne çıkcağını yazmadım ama ayarlanmış bir şekilde kullanılıyor zaten az bakarsanız ne çıkacağını anlarsınız
---------------------------------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------------------------------
Kod'a Geçelim...
Şans Sandığı ve Şanslı İtem V2 yazdım çok kolay oldu daha önce gelebilirdi ama başka skript üzerinde düşünüyordum yakında oda gelecek.
/basitkutu <oyuncu>
perm: basit.kutu
/dusukkutu <oyuncu>
perm: dusuk.kutu
/ortakutu <oyuncu>
perm: orta.kutu
/yuksekkutu <oyuncu>
perm: yuksek.kutu
Bide /elmaskutu var ama onu v1 de göstermiştim oda aynı mantıkla çalışıyor.
/itemkart <player>
perm: item.kart
Arkadaşlar kutulardan ne çıkcağını yazmadım ama ayarlanmış bir şekilde kullanılıyor zaten az bakarsanız ne çıkacağını anlarsınız
---------------------------------------------------------------------------------------------------------------------------------------------
V3'de Neler Gelecek
Asıl Bomba Olan V3 olacak çünkü skripti en baştan değiştircez.Yeni Şeyler Ekliyeceğiz. Yakında Yeni Bir ve Farklı Skriptle aynı gün gelecek.Eğer Eklersem oyuncuya verirken adet belirleyebilirsiniz ama belki eklerim ve kolay ve anlaşılır bir panel yapmaya çalışacağım.---------------------------------------------------------------------------------------------------------------------------------------------
Kod'a Geçelim...
PHP:
# Bu Skript KanakanTR'ye aittir
# Skype: kral2fatih42
command /basitkutu <player>:
permission: basit.kutu
permission message: &2&lYeterli Izne Sahip Degilsin
trigger:
if arg 1 is set:
give 1 chest named "&c&lBasit &a&lKutu" to arg 1
give 1 tripwire hook named "&c&lBasit &a&lKutu &f&lAnahtari" to arg 1
send "&7Basit Kutu ver Anahtar Alindi" to player arg 1
command /dusukkutu <player>:
permission: dusuk.kutu
permission message: &2&lYeterli İzne Sahip Değilsin
trigger:
if arg 1 is set:
give 1 chest named "&c&lDusuk &a&lKutu" to arg 1
give 1 tripwire hook named "&c&lDusuk &a&lKutu &f&lAnahtari" to arg 1
send "&7Dusuk Kutu ve Anahtar Alindi" to arg 1
command /ortakutu <player>:
permission: orta.kutu
permission message: &2&lYeterli Izne Sahip Degilsin
trigger:
if arg 1 is set:
give 1 chest named "&a&lOrta &2&lKutu" to arg 1
give 1 tripwire hook named "&a&lOrta &2&lKutu &e&lAnahtari" to arg 1
send "&7Orta Kutu ve Anahtar Alindi" to arg 1
command /yuksekkutu <player>:
permission: yuksek.kutu
permission message: &2&lYeterli Izne Sahip Degilsin
trigger:
if arg 1 is set:
give 1 chest named "&c&lYuksek &3&lKutu" to arg 1
give 1 tripwire hook named "&c&lyuksek &3&lKutu &f&lAnahtari" to arg 1
send "&7Yuksek Kutu ve Anahtar Alindi" to arg 1
command /elmaskutu <player>:
permission: elmas.kutu
permission message: &2&lYeterli Izne Sahip Değilsin
trigger:
if arg 1 is set:
give 1 chest named "&e&lElmas &5&lKutu" to arg 1
give 1 tripwire hook named "&e&lElmas &5&lKutu &f&lAnahtari" to arg 1
send "&7Elmas Kutu ve Anahtar Alindi" to arg 1
on rightclick holding a chest:
if tool's name is "&c&lBasit &a&lKutu":
if player have 1 tripwire hook named "&c&lBasit &a&lKutu &f&lAnahtari":
cancel event
remove 1 chest named "&c&lBasit &a&lKutu" from player
remove 1 tripwire hook named "&c&lBasit &a&lKutu &f&lAnahtari" from player
apply slowness 999 to player for 3 seconds
apply jump 999 to player for 3 seconds
send "&4&l[&f&lSandik&4&l] &8&lBasit Kutu aciliyor..." to player
wait 3 seconds
chance of 10%:
give 10 iron ingot to player
send "&4&l[&f&lSandik&4&l] &710 demir kulcesi kazanildi!" to player
else:
chance of 3%:
give 1 diamond to player
send "&4&l[&f&lSandik&4&l] &b2 elmas kazandiniz!" to player
else:
chance of 7%:
give 5 gold ingot to player
send "&4&l[&f&lSandik&4&l] &b5 altin kazandiniz!" to player
else:
chance of 1%:
give 1 diamond block to player
send "&4&l[&f&lSandik&4&l] &b1 elmas block kazandiniz!" to player
else:
send "&4&l[&f&lSandik&4&l] &cUzgunum birsey kazanamadiniz." to player
else:
if tool's name is "&c&lDusuk &a&lKutu":
if player have 1 tripwire hook named "&c&lDusuk &a&lKutu &f&lAnahtari":
cancel event
remove 1 chest named "&c&lDusuk &a&lKutu" from player
remove 1 tripwire hook named "&c&lDusuk &a&lKutu &f&lAnahtari" from player
apply slowness 999 to player for 3 seconds
apply jump 999 to player for 3 seconds
send "&4&l[&f&lSandik&4&l] &8&lDusuk Kutu aciliyor..." to player
wait 3 seconds
chance of 90%:
give 32 redstone to player
send "&4&l[&f&lSandik&4&l] &732 kiziltas kazandin!" to player
else:
chance of 50%:
give 32 coal to player
send "&4&l[&f&lSandik&4&l] &732 komur kazandin" to player
else:
chance of 10%:
give 1 diamond to player
send "&4&l[&f&lSandik&4&l] &71 elmas kazandin" to player
else:
send "Uzgunum birsey kazanamadiniz" to player
else:
if tool's name is "&a&lOrta &2&lKutu":
if player have 1 tripwire hook named "&a&lOrta &2&lKutu &e&lAnahtari":
cancel event
remove 1 chest named "&a&lOrta &2&lKutu" from player
remove 1 tripwire hook named "&a&lOrta &2&lKutu &e&lAnahtari" from player
apply slowness 999 to player for 3 seconds
apply jump 999 to player for 3 seconds
send "&4&l[&f&lSandik&4&l] &8&lOrta Kutu aciliyor..." to player
wait 3 seconds
chance of 75%:
give 5 diamond to player
send "&4&l[&f&lSandik&4&l] &b5 elmas kazanildi!" to player
else:
chance of 5%:
give diamond sword of sharpness 2 to player
send "&4&l[&f&lSandik&4&l] &bKeskinlik 2 Elmas Kilic kazandiniz!" to player
else:
chance of 5%:
give diamond helmet of protection 2 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 2 Elmas Kask kazandiniz!" to player
else:
chance of 5%:
give diamond chestplate of protection 2 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 2 Elmas Zirh kazandiniz!" to player
else:
chance of 5%:
give diamond leggings of protection 2 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 2 Elmas Paltolon kazandiniz!" to player
else:
chance of 5%:
give diamond boots of protection 2 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 2 Elmas Bot kazandiniz!" to player
else:
chance of 5%:
execute console command "money give %player% 1000"
send "&4&l[&f&lSandik&4&l] &b1000 para kazandiniz!" to player
else:
send "&4&l[&f&lSandik&4&l] &cUzgunum birsey kazanamadiniz." to player
else:
if tool's name is "&e&lElmas &5&lKutu":
if player have 1 tripwire hook named "&e&lElmas &5&lKutu &f&lAnahtari":
cancel event
remove 1 chest named "&e&lElmas &5&lKutu" from player
remove 1 tripwire hook named "&e&lElmas &5&lKutu &f&lAnahtari" from player
apply slowness 999 to player for 3 second
apply jump 999 to player for 3 second
send "&4&l[&f&lSandik&4&l] &8&lElmas Kutu aciliyor..."
wait 3 second
chance of 50%:
give 20 red dye named "&4&lGuc Tilsimi" to player
send "Bir Guc Tilsimi Kazandin" to player
else:
chance of 75%:
give 30 gray dye named "&6&lDayaniklilik Tilsimi" to player
send "Dayaniklilik Tilsimi Kazandin" to player
else:
chance of 90%:
give 40 light blue dye named "&b&lHiz Tilsimi" to player
send "Hiz Tilsimi Kazandin" to player
else:
if tool's name is "&c&lYuksek &3&lKutu":
if player have 1 tripwire hook named "&c&lyuksek &3&lKutu &f&lAnahtari":
cancel event
remove 1 chest named "&c&lYuksek &3&lKutu" from player
remove 1 tripwire hook named "&c&lyuksek &3&lKutu &f&lAnahtari" from player
apply slowness 999 to player for 3 second
apply jump 999 to player for 3 second
send "&4&l[&f&lSandik&4&l] &8&lYuksek Kutu aciliyor..."
wait 3 second
chance of 100%:
give diamond sword of sharpness 4 to player
send "&4&l[&f&lSandik&4&l] &bKeskinlik 4 Elmas Kilic kazandiniz!" to player
else:
chance of 100%:
give diamond helmet of protection 3 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 3 Elmas Kask kazandiniz!" to player
else:
chance of 100%:
give diamond chestplate of protection 3 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 3 Elmas Zirh kazandiniz!" to player
else:
chance of 100%:
give diamond leggings of protection 3 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 3 Elmas Paltolon kazandiniz!" to player
else:
chance of 100%:
give diamond boots of protection 3 to player
send "&4&l[&f&lSandik&4&l] &bKoruma 3 Elmas Bot kazandiniz!" to player
on rightclick:
if player is holding a red dye named "&4&lGuc Tilsimi":
if {gucetkin.%player%} is greater than 0:
send "Guc Bitmeden guc etkinlestiremezsin"
else:
remove 1 red dye named "&4&lGuc Tilsimi" from player
set {gucetkin.%player%} to 1
send "Guc Tilsimi Gucu Acildi" to player
apply strength 2 to player for 60 second
wait 1 minute
send "Guc Tilsimi Guc Kapandi"
set {gucetkin.%player%} to 0
on rightclick:
if player is holding a gray dye named "&6&lDayaniklilik Tilsimi":
if {dayanikliliketkin.%player%} is greater than 0:
send "&c&lDayaniklilik bitmeden guc etkinlestiremezsin!" to player
else:
remove 1 gray dye named "&8&lDayaniklilik Tilsimi" from player
set {dayanikliliketkin.%player%} to 1
send "&8&lDayaniklilik Tilsimi &7gucu Acildi" to player
apply resistance 2 to player for 60 second
wait 1 minute
send "&8&lDayaniklilik Tilsimi &7gucu Kapandi" to player
set {dayanikliliketkin.%player%} to 0
on rightclick:
if player is holding a light blue dye named "&b&lHiz Tilsimi":
if {hizetkin.%player%} is greater than 0:
send "&c&lHiz bitmeden guc etkinlestiremezsin!" to player
else:
remove 1 light blue dye named "&b&lHiz Tilsimi" from player
set {hizetkin.%player%} to 1
send "&b&lHiz Tilsimi &bgucu aktif!" to player
apply speed 2 to player for 60 second
wait 1 minute
send "&b&lHiz Tilsimi &bgucu deaktif!" to player
set {hizetkin.%player%} to 0
on break of lapis lazuli ore:
chance of 1%
give 1 chest named "&c&lBasit &a&lKutu" to player
give 1 tripwire hook named "&c&lBasit &a&lKutu &f&lAnahtari" to player
send "&7Basit Kutu ve Anahtar Kazandin" to player
on break of lapis lazuli ore:
chance of 1%
give 1 paper named "&6&l//&bRasGele&6&l//" to player
send "&7 Rasgele Item Kagidini Kazandin" to player
command /itemkart <player>:
permission: item.kart
permission message: &2&lYeterli İzne Sahip Değilsin
trigger:
if arg 1 is set:
give 1 paper named "&6&l//&bRasGele&6&l//" to arg 1
send "&c&l Rasgele Item Kagidini aldin" to arg 1
on rightclick with a paper:
if display name of player's tool contains "&6&l//&bRasGele&6&l//":
cancel event
remove 1 paper named "&6&l//&bRasGele&6&l//" from player
send "&bAcaba ne Cikcak"
wait 3 second
chance of 5%:
give 5 diamond to player
send "&e&l5 Elmas Cikti" to player
else:
chance of 15%:
give 5 emerald to player
send "&e&l5 Zumrut cikti" to player
else:
chance of 50%:
give 1 iron ingot to player
send "&e&l1 Demir Kulcesi Cikti" to player
else:
chance of 25%:
give 2 gold ingot to player
send "&e&f2 Altin Kulcesi Cikti"
else:
chance of 1%:
give 1 paper named "&6&l//&bRasGele&6&l//" to player
send "&3&lSans Karti Cikti"