options:
prefix: &bᴇᴠᴜ &8»
gunluk_bonus: 150
uc_gun_bonus: 600
# ==========================================
# GOREV SISTEMI (GENISLETILMIS HAVUZ)
# Gunluk : 18 gorev havuzundan 7 tanesi, 24 saatte bir yenilenir
# 3 Gunluk: 15 gorev havuzundan 5 tanesi, 3 gunde bir yenilenir
# ==========================================
function gunlukListe() :: texts:
return "d_kill5", "d_kill12", "d_kill20", "d_ok3", "d_ok6", "d_balta2", "d_balta5", "d_kilic4", "d_kilic10", "d_streak4", "d_streak7", "d_elma2", "d_elma4", "d_iksir_buff", "d_kasa1", "d_olum3", "d_kill8", "d_ok1", "d_xbow2", "d_trident2", "d_streak2", "d_gapple5", "d_iksir1", "d_olum5"
function ucGunlukListe() :: texts:
return "u_kill60", "u_kill100", "u_streak10", "u_streak15", "u_mace15", "u_ok20", "u_balta15", "u_elma8", "u_elma15", "u_kasa4", "u_kasa8", "u_iksir_buff8", "u_olum10", "u_olum20", "u_kilic30"
# Format: ad|aciklama|hedef|odul|tetik
function gorevTanim(id: text) :: text:
# --- GUNLUK GOREVLER ---
if {_id} is "d_kill5":
return "&aCaylak Avci|&73 oyuncu oldur|3|60|kill"
if {_id} is "d_kill12":
return "&6Kan Dokucu|&76 oyuncu oldur|6|120|kill"
if {_id} is "d_kill20":
return "&cAsiri Katliam|&710 oyuncu oldur|10|180|kill"
if {_id} is "d_ok3":
return "&bNisanci|&7Yayla 2 oyuncu oldur|2|50|kill_bow"
if {_id} is "d_ok6":
return "&bUsta Nisanci|&7Yayla 4 oyuncu oldur|4|100|kill_bow"
if {_id} is "d_balta2":
return "&cBaltaci|&7Baltayla 1 oyuncu oldur|1|50|kill_axe"
if {_id} is "d_balta5":
return "&cOduncu Kasabi|&7Baltayla 3 oyuncu oldur|3|110|kill_axe"
if {_id} is "d_kilic4":
return "&9Kilic Ustasi|&7Kilicla 2 oyuncu oldur|2|60|kill_sword"
if {_id} is "d_kilic10":
return "&9Kilic Kamburu|&7Kilicla 5 oyuncu oldur|5|130|kill_sword"
if {_id} is "d_streak4":
return "&cDurdurulamaz|&73 killstreak yap|3|60|streak"
if {_id} is "d_streak7":
return "&cEfsane Seri|&75 killstreak yap|5|140|streak"
if {_id} is "d_elma2":
return "&dAltin Elma Ustasi|&71 God Apple ye|1|40|godapple"
if {_id} is "d_elma4":
return "&dOlumsuzluk|&72 God Apple ye|2|90|godapple"
if {_id} is "d_iksir_buff":
return "&5Savunma Taktigi|&72 defa Guc/Hiz/Yenilenme iksiri ic|2|50|potion_buff"
if {_id} is "d_kasa1":
return "&eHazine Avcisi|&7Gokten dusen 1 kasa ac|1|50|chest"
if {_id} is "d_olum3":
return "&8Kader Oyunu|&73 kez ol|3|20|death"
if {_id} is "d_kill8":
return "&6Vurguncu|&78 oyuncu oldur|8|90|kill"
if {_id} is "d_ok1":
return "&bIlk Ok|&7Yayla 1 oyuncu oldur|1|30|kill_bow"
if {_id} is "d_xbow2":
return "&bArbaletci|&7Arbaletle 2 oyuncu oldur|2|50|kill_crossbow"
if {_id} is "d_trident2":
return "&3Deniz Savascisi|&7Trident ile 2 oyuncu oldur|2|60|kill_trident"
if {_id} is "d_streak2":
return "&cIsinma Turu|&72 killstreak yap|2|30|streak"
if {_id} is "d_gapple5":
return "&6Altin Obur|&75 normal Golden Apple ye|5|50|gapple"
if {_id} is "d_iksir1":
return "&5Iksir Cirak|&71 defa Guc/Hiz/Yenilenme iksiri ic|1|25|potion_buff"
if {_id} is "d_olum5":
return "&8Pes Etme|&75 kez ol|5|30|death"
# --- 3 GUNLUK GOREVLER ---
if {_id} is "u_kill60":
return "&6&lKatliam|&760 oyuncu oldur|60|400|kill"
if {_id} is "u_kill100":
return "&4&lSavas Tanrisi|&7100 oyuncu oldur|100|700|kill"
if {_id} is "u_streak10":
return "&4&lDeli Dalga|&710 killstreak yap|10|350|streak"
if {_id} is "u_streak15":
return "&c&lDurdurulamayan Guc|&715 killstreak yap|15|550|streak"
if {_id} is "u_mace15":
return "&4&lTopuz Efsanesi|&7Topuzla 15 oyuncu oldur|15|300|kill_mace"
if {_id} is "u_ok20":
return "&b&lOk Yagmuru|&7Yayla 20 oyuncu oldur|20|300|kill_bow"
if {_id} is "u_balta15":
return "&c&lBalta Kasabi|&7Baltayla 15 oyuncu oldur|15|280|kill_axe"
if {_id} is "u_elma8":
return "&d&lAltin Tutkusu|&78 God Apple ye|8|250|godapple"
if {_id} is "u_elma15":
return "&d&lOlumune Dayanikli|&715 God Apple ye|15|450|godapple"
if {_id} is "u_kasa4":
return "&e&lKasa Krali|&7Gokten dusen 4 kasa ac|4|350|chest"
if {_id} is "u_kasa8":
return "&e&lHazine Koleksiyoncusu|&7Gokten dusen 8 kasa ac|8|600|chest"
if {_id} is "u_iksir_buff8":
return "&5&lSimyagerin Sirri|&78 defa Guc/Hiz/Yenilenme iksiri ic|8|250|potion_buff"
if {_id} is "u_olum10":
return "&8&lDusmus Kahraman|&710 kez ol|10|120|death"
if {_id} is "u_olum20":
return "&8&lKurban|&720 kez ol|20|200|death"
if {_id} is "u_kilic30":
return "&9&lKilic Ustadligi|&7Kilicla 30 oyuncu oldur|30|350|kill_sword"
return "&7Bilinmeyen|&7-|1|0|none"
function gorevIkon(id: text) :: item:
if {_id} is "d_kill5":
return iron sword
if {_id} is "d_kill12":
return diamond sword
if {_id} is "d_kill20":
return netherite sword
if {_id} is "d_ok3":
return bow
if {_id} is "d_ok6":
return spectral arrow
if {_id} is "d_balta2":
return iron axe
if {_id} is "d_balta5":
return diamond axe
if {_id} is "d_kilic4":
return stone sword
if {_id} is "d_kilic10":
return diamond sword
if {_id} is "d_streak4":
return blaze powder
if {_id} is "d_streak7":
return fire charge
if {_id} is "d_elma2":
return golden apple
if {_id} is "d_elma4":
return enchanted golden apple
if {_id} is "d_iksir_buff":
return brewing stand
if {_id} is "d_kasa1":
return chest
if {_id} is "d_olum3":
return skeleton skull
if {_id} is "d_kill8":
return golden sword
if {_id} is "d_ok1":
return arrow
if {_id} is "d_xbow2":
return crossbow
if {_id} is "d_trident2":
return trident
if {_id} is "d_streak2":
return blaze rod
if {_id} is "d_gapple5":
return gold ingot
if {_id} is "d_iksir1":
return glass bottle
if {_id} is "d_olum5":
return bone
if {_id} is "u_kill60":
return netherite sword
if {_id} is "u_kill100":
return netherite chestplate
if {_id} is "u_streak10":
return magma cream
if {_id} is "u_streak15":
return nether star
if {_id} is "u_mace15":
return mace
if {_id} is "u_ok20":
return crossbow
if {_id} is "u_balta15":
return netherite axe
if {_id} is "u_elma8":
return enchanted golden apple
if {_id} is "u_elma15":
return golden apple named "&dMega God Apple"
if {_id} is "u_kasa4":
return ender chest
if {_id} is "u_kasa8":
return shulker box
if {_id} is "u_iksir_buff8":
return splash potion
if {_id} is "u_olum10":
return wither skeleton skull
if {_id} is "u_olum20":
return totem of undying
if {_id} is "u_kilic30":
return netherite sword named "&9&lEfsanevi Kilic"
return paper
function gorevAlan(id: text, sira: number) :: text:
set {_v::*} to split gorevTanim({_id}) at "|"
return {_v::%{_sira}%}
function gorevAd(id: text) :: text:
return gorevAlan({_id}, 1)
function gorevAciklama(id: text) :: text:
return gorevAlan({_id}, 2)
function gorevHedef(id: text) :: number:
set {_s} to gorevAlan({_id}, 3)
return "%{_s}%" parsed as a number
function gorevOdul(id: text) :: number:
set {_s} to gorevAlan({_id}, 4)
return "%{_s}%" parsed as a number
function gorevTetikAl(id: text) :: text:
return gorevAlan({_id}, 5)
function gorevKindOf(id: text) :: text:
loop ucGunlukListe():
if loop-value is {_id}:
return "ugun"
return "gorev"
function gorevListeAl(k: text) :: texts:
if {_k} is "gorev":
return gunlukListe()
return ucGunlukListe()
# ------------------------------------------
# ISTATISTIK
# ------------------------------------------
function statArtir(u: text, anahtar: text):
add 1 to {stat::%{_u}%::%{_anahtar}%}
function statEnYuksek(u: text, anahtar: text, deger: number):
if {_deger} > {stat::%{_u}%::%{_anahtar}%}:
set {stat::%{_u}%::%{_anahtar}%} to {_deger}
# ------------------------------------------
# YARDIMCI FONKSIYONLAR (YENILENME MANTIGI)
# ------------------------------------------
function gorevSec(p: player, k: text, adet: number):
set {_u} to "%uuid of {_p}%"
delete {_secili::*}
set {_havuz::*} to gorevListeAl({_k})
set {_say} to 0
while {_say} < {_adet}:
set {_id} to random element out of {_havuz::*}
if {_secili::*} does not contain {_id}:
add {_id} to {_secili::*}
set {gd::%{_k}%::%{_u}%::aktif::%{_id}%} to true
add 1 to {_say}
function gorevKontrol(p: player):
set {_u} to "%uuid of {_p}%"
# Gunluk Gorevler (24 saatte bir tamamen temizlenir ve yeni rastgele havuz atanır)
set {_t} to {gdzaman::%{_u}%::gorev}
if {_t} is not set:
set {gdzaman::%{_u}%::gorev} to now
delete {gd::gorev::%{_u}%::*}
gorevSec({_p}, "gorev", 7)
else:
if (difference between {_t} and now) is greater than 1 day:
set {gdzaman::%{_u}%::gorev} to now
delete {gd::gorev::%{_u}%::*}
gorevSec({_p}, "gorev", 7)
# 3 Gunluk Gorevler (3 gunde bir tamamen temizlenir ve yeni rastgele havuz atanır)
set {_t2} to {gdzaman::%{_u}%::ugun}
if {_t2} is not set:
set {gdzaman::%{_u}%::ugun} to now
delete {gd::ugun::%{_u}%::*}
gorevSec({_p}, "ugun", 5)
else:
if (difference between {_t2} and now) is greater than 3 days:
set {gdzaman::%{_u}%::ugun} to now
delete {gd::ugun::%{_u}%::*}
gorevSec({_p}, "ugun", 5)
function gorevSet(p: player, k: text, id: text, deger: number):
set {_u} to "%uuid of {_p}%"
if {gd::%{_k}%::%{_u}%::alindi::%{_id}%} is set:
stop
set {_hedef} to gorevHedef({_id})
set {_eski} to {gd::%{_k}%::%{_u}%::ilerleme::%{_id}%}
if {_eski} is not set:
set {_eski} to 0
if {_deger} <= {_eski}:
stop
if {_deger} > {_hedef}:
set {_deger} to {_hedef}
set {gd::%{_k}%::%{_u}%::ilerleme::%{_id}%} to {_deger}
if {_deger} >= {_hedef}:
send "{@prefix} &fɢᴏʀᴇᴠ ᴛᴀᴍᴀᴍʟᴀɴᴅɪ &8» %gorevAd({_id})% &8| &fᴏᴅᴜʟᴜ ᴀʟᴍᴀᴋ ɪᴄɪɴ &b/gorev" to {_p}
play sound "entity.player.levelup" to {_p}
function gorevTetik(p: player, tetik: text, miktar: number = 1):
gorevKontrol({_p})
set {_u} to "%uuid of {_p}%"
loop gunlukListe():
set {_id} to loop-value
if gorevTetikAl({_id}) is {_tetik}:
if {gd::gorev::%{_u}%::aktif::%{_id}%} is set:
set {_cur} to {gd::gorev::%{_u}%::ilerleme::%{_id}%}
if {_cur} is not set:
set {_cur} to 0
if {_tetik} is "streak":
gorevSet({_p}, "gorev", {_id}, {_miktar})
else:
gorevSet({_p}, "gorev", {_id}, {_cur} + {_miktar})
loop ucGunlukListe():
set {_id} to loop-value
if gorevTetikAl({_id}) is {_tetik}:
if {gd::ugun::%{_u}%::aktif::%{_id}%} is set:
set {_cur} to {gd::ugun::%{_u}%::ilerleme::%{_id}%}
if {_cur} is not set:
set {_cur} to 0
if {_tetik} is "streak":
gorevSet({_p}, "ugun", {_id}, {_miktar})
else:
gorevSet({_p}, "ugun", {_id}, {_cur} + {_miktar})
function gorevAl(p: player, id: text):
gorevKontrol({_p})
set {_u} to "%uuid of {_p}%"
set {_k} to gorevKindOf({_id})
if {gd::%{_k}%::%{_u}%::aktif::%{_id}%} is not set:
send "{@prefix} &fʙᴜ ɢᴏʀᴇᴠ ꜱᴀɴᴀ ᴠᴇʀɪʟᴍᴇᴅɪ." to {_p}
stop
if {gd::%{_k}%::%{_u}%::alindi::%{_id}%} is set:
send "{@prefix} &fʙᴜ ᴏᴅᴜʟᴜ ᴢᴀᴛᴇɴ ᴀʟᴅɪɴ." to {_p}
stop
set {_cur} to {gd::%{_k}%::%{_u}%::ilerleme::%{_id}%}
if {_cur} is not set:
set {_cur} to 0
if {_cur} < gorevHedef({_id}):
send "{@prefix} &fʙᴜ ɢᴏʀᴇᴠ ʜᴇɴᴜᴢ ᴛᴀᴍᴀᴍʟᴀɴᴍᴀᴅɪ." to {_p}
play sound "entity.villager.no" to {_p}
stop
set {gd::%{_k}%::%{_u}%::alindi::%{_id}%} to true
set {_odul} to gorevOdul({_id})
execute console command "eco give %name of {_p}% %{_odul}%"
send "{@prefix} &fᴏᴅᴜʟ ᴀʟɪɴᴅɪ &8» &b%{_odul}% ᴛʟ &8(%gorevAd({_id})%&8)" to {_p}
play sound "entity.experience_orb.pickup" to {_p}
function gorevBonusAl(p: player, k: text):
gorevKontrol({_p})
set {_u} to "%uuid of {_p}%"
if {gd::%{_k}%::%{_u}%::bonus} is set:
send "{@prefix} &fʙᴜ ʙᴏɴᴜꜱᴜ ᴢᴀᴛᴇɴ ᴀʟᴅɪɴ." to {_p}
stop
set {_l::*} to gorevListeAl({_k})
if {_k} is "gorev":
set {_b} to {@gunluk_bonus}
else:
set {_b} to {@uc_gun_bonus}
set {_top} to 0
loop {_l::*}:
if {gd::%{_k}%::%{_u}%::aktif::%loop-value%} is set:
add 1 to {_top}
if {gd::%{_k}%::%{_u}%::alindi::%loop-value%} is not set:
send "{@prefix} &fʙᴏɴᴜꜱ ɪᴄɪɴ ʙᴜ ᴋᴀᴛᴇɢᴏʀɪᴅᴇᴋɪ ᴛᴜᴍ ɢᴏʀᴇᴠʟᴇʀɪɴ ᴏᴅᴜʟᴜɴᴜ ᴀʟᴍᴀʟɪꜱɪɴ." to {_p}
play sound "entity.villager.no" to {_p}
stop
if {_top} is 0:
stop
set {gd::%{_k}%::%{_u}%::bonus} to true
execute console command "eco give %name of {_p}% %{_b}%"
send "{@prefix} &b&lʙᴏɴᴜꜱ &8» &fᴛᴜᴍ ɢᴏʀᴇᴠʟᴇʀɪ ʙɪᴛɪʀᴅɪɴ &8| &b%{_b}% ᴛʟ" to {_p}
play sound "ui.toast.challenge_complete" to {_p}
# ------------------------------------------
# MENU IKONLARI
# ------------------------------------------
function gorevBar(c: number, h: number) :: text:
set {_f} to floor(({_c} / {_h}) * 10)
if {_f} > 10:
set {_f} to 10
set {_s} to ""
loop 10 times:
if loop-number <= {_f}:
set {_s} to "%{_s}%&a|"
else:
set {_s} to "%{_s}%&8|"
return {_s}
function gorevKart(u: text, k: text, id: text) :: item:
set {_hedef} to gorevHedef({_id})
set {_cur} to {gd::%{_k}%::%{_u}%::ilerleme::%{_id}%}
if {_cur} is not set:
set {_cur} to 0
set {_ikon} to gorevIkon({_id})
delete {_l::*}
add "&8--------------------" to {_l::*}
add "&7%gorevAciklama({_id})%" to {_l::*}
add "" to {_l::*}
add "&7Ilerleme &f%{_cur}%&7/&f%{_hedef}%" to {_l::*}
add gorevBar({_cur}, {_hedef}) to {_l::*}
add "" to {_l::*}
add "&7Odul &6%gorevOdul({_id})% TL" to {_l::*}
add "&8--------------------" to {_l::*}
if {gd::%{_k}%::%{_u}%::alindi::%{_id}%} is set:
set {_ikon} to lime dye
add "&aOdul alindi" to {_l::*}
else:
if {_cur} >= {_hedef}:
add "&eOdulu almak icin tikla" to {_l::*}
else:
add "&cDevam ediyor" to {_l::*}
set {_ikon} to {_ikon} named gorevAd({_id}) with lore {_l::*}
return {_ikon}
function gorevBonusKart(u: text, k: text) :: item:
set {_l::*} to gorevListeAl({_k})
if {_k} is "gorev":
set {_b} to {@gunluk_bonus}
set {_baslik} to "&6&lGunluk Paket"
else:
set {_b} to {@uc_gun_bonus}
set {_baslik} to "&d&l3 Gunluk Paket"
set {_top} to 0
set {_al} to 0
loop {_l::*}:
if {gd::%{_k}%::%{_u}%::aktif::%loop-value%} is set:
add 1 to {_top}
if {gd::%{_k}%::%{_u}%::alindi::%loop-value%} is set:
add 1 to {_al}
delete {_bl::*}
add "&8--------------------" to {_bl::*}
add "&7Tum gorevleri tamamla," to {_bl::*}
add "&7bonus odulunu topla" to {_bl::*}
add "" to {_bl::*}
add "&7Tamamlanan &f%{_al}%&7/&f%{_top}%" to {_bl::*}
add "&7Bonus &6%{_b}% TL" to {_bl::*}
add "&8--------------------" to {_bl::*}
if {gd::%{_k}%::%{_u}%::bonus} is set:
add "&aAlindi" to {_bl::*}
set {_bi} to lime dye
else:
if {_top} > 0:
if {_al} >= {_top}:
add "&eBonusu almak icin tikla" to {_bl::*}
set {_bi} to nether star
else:
add "&cHenuz tamamlanmadi" to {_bl::*}
set {_bi} to gray dye
else:
add "&cHenuz tamamlanmadi" to {_bl::*}
set {_bi} to gray dye
set {_bi} to {_bi} named {_baslik} with lore {_bl::*}
return {_bi}
function gorevIstatistikKart(u: text) :: item:
delete {_l::*}
add "&8--------------------" to {_l::*}
add "&bOldurme &f%{stat::%{_u}%::kill}%" to {_l::*}
add "&cOlum &f%{stat::%{_u}%::death}%" to {_l::*}
add "&6En yuksek seri &f%{stat::%{_u}%::maxstreak}%" to {_l::*}
add "" to {_l::*}
add "&eGokten kasa &f%{stat::%{_u}%::chest}%" to {_l::*}
add "&dGod Apple &f%{stat::%{_u}%::godapple}%" to {_l::*}
add "&5Guclu Iksirler &f%{stat::%{_u}%::potion_buff}%" to {_l::*}
add "" to {_l::*}
add "&4Topuz &f%{stat::%{_u}%::kill_mace}%&7 - &bYay &f%{stat::%{_u}%::kill_bow}%" to {_l::*}
add "&cBalta &f%{stat::%{_u}%::kill_axe}%&7 - &9Kilic &f%{stat::%{_u}%::kill_sword}%" to {_l::*}
add "&8--------------------" to {_l::*}
return book named "&b&lIstatistiklerin" with lore {_l::*}
function gorevOzetKart(u: text) :: item:
delete {_l::*}
add "&8--------------------" to {_l::*}
add "&7Gunluk ve 3 gunluk gorevler" to {_l::*}
add "&7sureleri dolunca yenilenir." to {_l::*}
add "" to {_l::*}
add "&7Odulleri topla, paketleri ac," to {_l::*}
add "&7serinin keyfini cikar." to {_l::*}
add "&8--------------------" to {_l::*}
return paper named "&e&lGorev Rehberi" with lore {_l::*}
function gorevYenilenmeKart() :: item:
delete {_l::*}
add "&8--------------------" to {_l::*}
add "&7Gunluk gorevler &f24 saatte" to {_l::*}
add "&7bir yenilenir." to {_l::*}
add "" to {_l::*}
add "&73 gunluk gorevler &f3 gunde" to {_l::*}
add "&7bir yenilenir." to {_l::*}
add "&8--------------------" to {_l::*}
return clock named "&b&lYenilenme" with lore {_l::*}
# ------------------------------------------
# MENU (5 satir, 45 slot)
# ------------------------------------------
function gorevMenu(p: player):
gorevKontrol({_p})
set {_u} to "%uuid of {_p}%"
set {_inv} to a chest inventory with 5 rows named "&8&lGorevler"
loop integers from 0 to 44:
set slot loop-value of {_inv} to black stained glass pane named " "
loop integers from 10 to 16:
set slot loop-value of {_inv} to gray stained glass pane named " "
loop integers from 29 to 33:
set slot loop-value of {_inv} to gray stained glass pane named " "
delete {gorevmenu::%{_u}%::*}
set {_n} to 0
loop gunlukListe():
set {_id} to loop-value
if {gd::gorev::%{_u}%::aktif::%{_id}%} is set:
add 1 to {_n}
set {_s} to 9 + {_n}
set slot {_s} of {_inv} to gorevKart({_u}, "gorev", {_id})
set {gorevmenu::%{_u}%::%{_s}%} to {_id}
set {_n} to 0
loop ucGunlukListe():
set {_id} to loop-value
if {gd::ugun::%{_u}%::aktif::%{_id}%} is set:
add 1 to {_n}
set {_s} to 28 + {_n}
set slot {_s} of {_inv} to gorevKart({_u}, "ugun", {_id})
set {gorevmenu::%{_u}%::%{_s}%} to {_id}
set slot 4 of {_inv} to gorevOzetKart({_u})
set slot 19 of {_inv} to gorevBonusKart({_u}, "gorev")
set slot 22 of {_inv} to gorevIstatistikKart({_u})
set slot 25 of {_inv} to gorevBonusKart({_u}, "ugun")
set slot 40 of {_inv} to gorevYenilenmeKart()
open {_inv} to {_p}
set {gorevgui::%{_u}%} to true
# ------------------------------------------
# KOMUTLAR
# ------------------------------------------
command /gorev:
aliases: /gorevler, /gorevlerim
trigger:
gorevMenu(player)
command /gorevsifirla :
permission: op
trigger:
set {_u} to "%uuid of arg-1%"
delete {gd::gorev::%{_u}%::*}
delete {gd::ugun::%{_u}%::*}
delete {gdzaman::%{_u}%::*}
send "{@prefix} &b%arg-1% &fᴀᴅʟɪ ᴏʏᴜɴᴄᴜɴᴜɴ ɢᴏʀᴇᴠ ᴠᴇʀɪʟᴇʀɪ ꜱɪꜰɪʀʟᴀɴᴅɪ." to player
# ------------------------------------------
# MENU TIKLAMA
# ------------------------------------------
on inventory click:
if {gorevgui::%uuid of player%} is not set:
stop
cancel event
set {_s} to index of event-slot
if {_s} is 19:
gorevBonusAl(player, "gorev")
gorevMenu(player)
stop
if {_s} is 25:
gorevBonusAl(player, "ugun")
gorevMenu(player)
stop
set {_id} to {gorevmenu::%uuid of player%::%{_s}%}
if {_id} is set:
gorevAl(player, {_id})
gorevMenu(player)
on inventory close:
delete {gorevgui::%uuid of player%}
# ------------------------------------------
# ISTATISTIK VE GOREV TAKIBI
# ------------------------------------------
on death of player:
set {_v} to victim
set {_vu} to "%uuid of {_v}%"
# Ayni olum olayi 2 kere tetiklenirse ikincisini yok say (cift sayma + cift mesaj duzeltmesi)
if {-sonolum::%{_vu}%} is set:
if difference between {-sonolum::%{_vu}%} and now is less than 1 second:
stop
set {-sonolum::%{_vu}%} to now
statArtir({_vu}, "death")
gorevTetik({_v}, "death", 1)
set {gorevstreak::%{_vu}%} to 0
if attacker is not a player:
stop
if attacker is victim:
stop
set {_k} to attacker
set {_ku} to "%uuid of {_k}%"
statArtir({_ku}, "kill")
gorevTetik({_k}, "kill", 1)
set {_tool} to "%type of tool of {_k}%"
if {_tool} contains "mace":
statArtir({_ku}, "kill_mace")
gorevTetik({_k}, "kill_mace", 1)
if {_tool} contains "bow":
if {_tool} does not contain "crossbow":
statArtir({_ku}, "kill_bow")
gorevTetik({_k}, "kill_bow", 1)
if {_tool} contains "crossbow":
statArtir({_ku}, "kill_crossbow")
gorevTetik({_k}, "kill_crossbow", 1)
if {_tool} contains "trident":
statArtir({_ku}, "kill_trident")
gorevTetik({_k}, "kill_trident", 1)
if {_tool} contains "axe":
statArtir({_ku}, "kill_axe")
gorevTetik({_k}, "kill_axe", 1)
if {_tool} contains "sword":
statArtir({_ku}, "kill_sword")
gorevTetik({_k}, "kill_sword", 1)
add 1 to {gorevstreak::%{_ku}%}
statEnYuksek({_ku}, "maxstreak", {gorevstreak::%{_ku}%})
gorevTetik({_k}, "streak", {gorevstreak::%{_ku}%})
on consume:
if event-item is enchanted golden apple:
statArtir("%uuid of player%", "godapple")
gorevTetik(player, "godapple", 1)
if event-item is golden apple:
statArtir("%uuid of player%", "gapple")
gorevTetik(player, "gapple", 1)
# Sadece Güç (Strength), Hız (Speed) veya Yenilenme (Regeneration) iksirleri tetikleyici sayılıyor.
if event-item is potion or splash potion or lingering potion:
set {_itemType} to "%type of event-item%"
if {_itemType} contains "strength" or "swiftness" or "regeneration" or "speed":
statArtir("%uuid of player%", "potion_buff")
gorevTetik(player, "potion_buff", 1)
# Gokten dusen shulker sandiklari: sag tiklayinca olur ve loot cikar
on right click:
if clicked entity is a shulker:
statArtir("%uuid of player%", "chest")
gorevTetik(player, "chest", 1)
on join:
wait 3 seconds
gorevKontrol(player)
send "{@prefix} &fɢᴜɴʟᴜᴋ ᴠᴇ 3 ɢᴜɴʟᴜᴋ ɢᴏʀᴇᴠʟᴇʀɪɴ ꜱᴇɴɪ ʙᴇᴋʟɪʏᴏʀ &8» &b/gorev" to player