on first join:
if {upgrade::%player%} is not set:
set {upgrade::%player%} to 0
set {otosat::%player%} to false
on load:
set {Skellett} to true
variables:
{efsunsistem} = true #BURAYA DOKUNMA
{cd} = 1 #BURAYA DOKUNMA
{prefix1} = "&f[ &cOTOSAT &f] &c&l› &e" #OTOSAT prefixi
{prefix2} = "&f[ &cEFSUN &f] &c&l› &e" #EFSUN prefixi
{lapisparacik} = 12800 #OTOSAT açarken 640 lapisin ederi
{levelmoney} = 3000000 #Efsun cikarma sansini 1 arttirmak icin gereken para
{defaultlevel} = 5 #Başlangıçta yuzde kac sansla efsun ciksin
# WARP LAPIS BİLGİLENDİRMESİ #
on command "/warp lapis":
send " &7> &aLapise gidiyorsunuz..."
send " &7> &aEfsun sistemini ogrenmek icin &c/efsun"
send " &7> &aOtomatik lapis satmak için &c/otosat aç"
send " &7> &aOtomatik lapis satmayı kapatmak için &c/otosat kapat"
# OTOMATİK SATIŞ KOMUTLARI #
command /otosat [<text>]:
trigger:
if arg-1 is not set:
open virtual chest with size 1 named "&8OTOSAT" to player
make gui slot 0 of player with Stained Glass Pane:5 named "&aOtomatik Sat Ac" to run player command "/otosat ac"
make gui slot 1 of player with Red Stained Glass Pane named "&cOtomatik Sat Kapat" to run player command "/otosat kapat"
if {otosat::%player%} is true:
make gui slot 4 of player with paper named "&aACIK" to nothing
if {otosat::%player%} is false:
make gui slot 4 of player with paper named "&cKAPALI" to nothing
make gui slot 8 of player with nether star named "&aEfsun Menu" to run player command "/efsun"
else if arg-1 is "ac" or "aç":
if {otosat::%player%} is false:
set {otosat::%player%} to true
send "%{prefix1}% Otosat acildi" to player
else:
send "%{prefix1}% Otosat zaten acık" to player
else if arg-1 is "kapat" or "kapa":
if {otosat::%player%} is true:
set {otosat::%player%} to false
send "%{prefix1}% Otosat kapatildi" to player
else:
send "%{prefix1}% Otosat zaten kapali" to player
command /efsun [<text>] [<text>]:
trigger:
if arg-1 is not set:
set {toplamsans::%player%} to {defaultlevel} + {upgrade::%player%}
open virtual chest with size 1 named "&6Efsun" to player
make gui slot 0 of player with paper named "&aBilgi" with lore "&eLapis kazarken cikar ||&f/Efsun Market &ede takas edilir ||&eEfsun sansi 3M karsiliginda 1 arttirilir" to nothing
make gui slot 1 of player with chest named "&aMarket" with lore "&eEfsunlarinizi takas etmek icin tikla" to run player command "/efsun market"
make gui slot 7 of player with clay_item named "&bEfsun Cikarma Sansini Yukselt" to run player command "/efsun menu"
make gui slot 8 of player with firework_star named "&bMevcut Efsun Cikarma Sansin" with lore "&a%{toplamsans::%player%}%" to nothing
if arg-1 is "efsunekipman":
wait 5 ticks
if player has {cd::%player%} of Nether Star named "&c&lEfsun":
remove {cd::%player%} of nether star named "&c&lEfsun" from player
give {cdamount::%player%} of {cditem::%player%} to player
send "%{prefix2}% Efsun basariyla takas edildi" to player
else:
send "%{prefix2}% Yeterli Miktarda Efsunun Yok" to player
if arg-1 is "seviye":
wait 5 ticks
if player has {cd::%player%} of Nether Star named "&c&lEfsun":
remove {cd::%player%} of nether star named "&c&lEfsun" from player
add {cdl::%player%} to player's level
send "%{prefix2}% Efsun basariyla takas edildi" to player
send "%{prefix2}% &f%{cdl::%player%}% &eSeviye kazandiniz" to player
if arg-1 is "efsunpara":
wait 5 ticks
if player has {cd::%player%} of Nether Star named "&c&lEfsun":
remove {cd::%player%} of nether star named "&c&lEfsun" from player
add {cdd::%player%} to player's balance
send "%{prefix2}% Efsun basariyla takas edildi" to player
send "%{prefix2}% &f%{cdd::%player%}%TL &ehesabiniza aktarildi" to player
else:
send "%{prefix2}% Yeterli Miktarda Efsunun Yok" to player
if arg-1 is "yukselt" or "yükselt":
set {toplamsans::%player%} to {defaultlevel} + {upgrade::%player%}
open virtual chest with size 1 named "Efsun Yukseltme Menusu" to player
make gui slot 0 of player with nether star named "&bEfsun Sansi Yukseltme Menusu" with lore " &aTıkla ve Ac" to run player command "/efsun menu"
make gui slot 1 of player with nether star named "&bEfsun Cikartma Sansin" with lore "&a%{toplamsans::%player%}% &cSans" to nothing
if arg-1 is "market" or "shop":
if arg-2 is not set:
open virtual chest with size 1 named "&8Efsun Market" to player
make gui slot 0 of player with Diamond Sword named "Ekipmanlar" to run player command "/efsun market ekipmanlar"
make gui slot 1 of player with paper named "Para" to run player command "/efsun market para"
make gui slot 2 of player with exp bottle named "Seviye" to run player command "/efsun market level"
if arg-2 is "level":
open virtual chest with size 3 named "&8Seviyeler" to player
make gui slot 0 of player with exp bottle named "30 Seviye" with lore "&e2 Efsun" to run player command "/efsun seviye":
set {cd::%player%} to 2
set {cdl::%player%} to 30
if arg-2 is "ekipmanlar":
open virtual chest with size 3 named "&8Ekipmanlar" to player
make gui slot 0 of player with diamond sword named "Keskinlik 5 Kılıc" with lore "&e2 Efsun" to run player command "/efsun efsunekipman":
set {cd::%player%} to 2
set {cdamount::%player%} to 1
set {cditem::%player%} to Diamond Sword of Sharpness 5 , Unbreaking 3
make gui slot 1 of player with diamond helmet named "P5 Kask" with lore "&e2 Efsun" to run player command "/efsun efsunekipman":
set {cd::%player%} to 2
set {cdamount::%player%} to 1
set {cditem::%player%} to Diamond helmet of Protection 5 , Unbreaking 3
make gui slot 2 of player with diamond chestplate named "P5 Govde" with lore "&e2 Efsun" to run player command "/efsun efsunekipman":
set {cd::%player%} to 2
set {cdamount::%player%} to 1
set {cditem::%player%} to Diamond chestplate of Protection 5 , Unbreaking 3
make gui slot 3 of player with diamond leggings named "P5 Pantolon" with lore "&e2 Efsun" to run player command "/efsun efsunekipman":
set {cd::%player%} to 2
set {cdamount::%player%} to 1
set {cditem::%player%} to Diamond leggings of Protection 5 , Unbreaking 3
make gui slot 4 of player with diamond boots named "P5 Bot" with lore "&e2 Efsun" to run player command "/efsun efsunekipman":
set {cd::%player%} to 2
set {cdamount::%player%} to 1
set {cditem::%player%} to Diamond boots of Protection 5 , Unbreaking 3
if arg-2 is "para":
open virtual chest with size 3 named "&8Para" to player
make gui slot 0 of player with paper named "250K" with lore "&e1 Efsun" to run player command "/efsun efsunpara":
set {cd::%player%} to 1
set {cdd::%player%} to 250000
if arg-1 is "menu" or "menü":
set {toplamsans::%player%} to {defaultlevel} + {upgrade::%player%}
if {levelxxx::%player%} is not set:
set {levelxxx::%player%} to 1
if {levelmoney::%player%} is not set:
set {levelmoney::%player%} to {levelmoney}
set {toplamfiyat::%player%} to {levelxxx::%player%} * {levelmoney::%player%}
wait 1 ticks
open virtual chest with size 3 named "&8Efsun Sans Yukseltme Menusu" to player
make gui slot 9 of player with Red Stained Glass Pane named "1 Dusur" to run player command "/levelxxx dusur -1":
make player execute command "/efsun menu"
make gui slot 10 of player with Red Stained Glass Pane named "5 Dusur" to run player command "/levelxxx dusur -5":
make player execute command "/efsun menu"
make gui slot 11 of player with Red Stained Glass Pane named "10 Dusur" to run player command "/levelxxx dusur -10":
make player execute command "/efsun menu"
make gui slot 15 of player with Stained Glass Pane:5 named "10 Arttir" to run player command "/levelxxx arttir 10":
make player execute command "/efsun menu"
make gui slot 16 of player with Stained Glass Pane:5 named "5 Arttir" to run player command "/levelxxx arttir 5":
make player execute command "/efsun menu"
make gui slot 17 of player with Stained Glass Pane:5 named "1 Arttir" to run player command "/levelxxx arttir 1":
make player execute command "/efsun menu"
make gui slot 4 of player with paper named "Toplamda %{levelxxx::%player%}% sans arttiracaksin" with lore "Satin Alim Ucreti %{toplamfiyat::%player%}%" to run player command "/buymenuxxx"
make gui slot 22 of player with Light Green Wool Block named "onayla" to run player command "/levelxxx satisitamamla"
command /sklapis [<text>]:
trigger:
if player has permission "sklapis.admin":
if arg-1 is "de-bug": #Eğer sunucunuza bu skripti sonradan eklediyseniz bu komut gereklidir.
loop all players:
set {upgrade::%loop-player%} to 0
set {otosat::%loop-player%} to false
if arg-1 is "reload":
execute player command "/sk reload sklapis"
command /levelxxx [<text>] [<number>]:
trigger:
if arg-1 is "dusur":
add arg-2 to {levelxxx::%player%}
if {levelxxx::%player%} is less than 0:
set {levelxxx::%player%} to 0
if arg-1 is "arttir":
add arg-2 to {levelxxx::%player%}
if arg-1 is "satisitamamla":
wait 1 ticks
if player's balance is greater than or equal to {toplamfiyat::%player%}:
wait 1 ticks
remove {toplamfiyat::%player%} from player's money
add {levelxxx::%player%} to {upgrade::%player%}
wait 1 ticks
send "%{prefix2}% &bEfsun cikarma sansiniz &c%{levelxxx::%player%}% &barttirildi." to player
set {toplamsans::%player%} to {defaultlevel} + {upgrade::%player%}
wait 1 ticks
send "%{prefix2}% &bYeni Efsun cikarma sansiniz &c%{toplamsans::%player%}%" to player
send "%{prefix2}% Ucreti: &c%{toplamfiyat::%player%}%" to player
else:
send "%{prefix2}% &4%{toplamfiyat::%player%}% &bparaya sahip degilsiniz" to player
# Lapis Kırarken
on break of lapis lazuli ore:
if {otosat::%player%} is true:
if player has 640 lapis lazuli:
send "%{prefix1}% &f640 &eLapis &f%{lapispara}% &ekarsiliginda satildi"
remove 640 lapis lazuli from player
add {lapisparacik} to player's balance
if {efsunsistem} is true:
set {toplamsans::%player%} to {defaultlevel} + {upgrade::%player%}
wait 1 ticks
chance of {toplamsans::%player%}%:
give a Nether Star named "&c&lEfsun" to player
if {Skellett} is true:
show an action bar from "&eLapis Kazarken &fEfsun &eBuldun !" to player
else if {Skellett} is false:
send "&eLapis Kazarken &fEfsun &eBuldun" to player