Keşfet

hyEjderha l Ejderhaları öldürerek ödüller kazan! l Geri Sayım, Ejderha Savaşı, Ve dahası ! [ 1.8 ]

Türker

Yeni Üye
1616148766992.png




1616148777820.png



1616148808816.png





1616148825080.png



Oyun Sonu Hasar Sıralaması

1616148834769.png



Gerekli Pluginler

skRayFall
Skellett
TuSke
Skript-mirror veya skript-reflect
Skript 2.2 dev 36

Kod
Kod:
options:
    p: &ahyProjects &8»
    isaret: &8»
    can: 300
    süre: 24 # Saat olark yaz.
    ejderhaisim: &aEjderha
    dünya: world_the_end

# Ana Yer (SİLME)

on inventory click:
    if {envanterkilit::%player%} is true:
        cancel event
      
on quit:
    if {envanterkilit::%player%} is true:
        delete {envanterkilit::%player%}
on join:
    if {envanterkilit::%player%} is true:
        delete {envanterkilit::%player%}
on inventory close:
    if {envanterkilit::%player%} is true:
        delete {envanterkilit::%player%}

function baslatEvent(herkez: player, p: player):
    set {ejderha::basladi} to true
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e30 &7Saniye."
    wait 15 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e15 &7Saniye."
    wait 5 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e10 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e9 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e8 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e7 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e6 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e5 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e4 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e3 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e2 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e1 &7Saniye."
    wait 1 second
    send {_herkez} title "{@p}" with subtitle "&7Ejderha Etkinliği Başladı! &c/warp end" for 15 seconds
    wait 1 second
    spawn ender dragon at {ejderha::spawn::loc}
    set name of spawned ender dragon to "{@ejderhaisim}"
    set maximum health of last spawned ender dragon to {@can}
    set health of last spawned ender dragon to {@can}
    delete {ejderha::başlatx}
    delete {ejderha::başlat}
    delete {ejderha::başlatad}
    if {ejderha::başlat} is not set:
        set {ejderha::başlat} to now
        set {ejderha::başlatx} to {@süre} hours later
    else:
        set {_num} to (difference between {ejderha::başlatx} and now).getTicks_i()/20
        set {ejderha::başlatad} to formattedTime({_num})

command /başlat3333event:
    executable by: console
    trigger:
        set {ejderha::basladi} to true
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e30 &7Saniye."
        wait 15 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e15 &7Saniye."
        wait 5 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e10 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e9 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e8 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e7 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e6 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e5 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e4 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e3 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e2 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliğine Son &e1 &7Saniye."
        wait 1 second
        send players title "{@p}" with subtitle "&7Ejderha Etkinliği Başladı! &c/warp end" for 15 seconds
        wait 1 second
        spawn ender dragon at {ejderha::spawn::loc}
        set name of spawned ender dragon to "{@ejderhaisim}"
        set maximum health of last spawned ender dragon to {@can}
        set health of last spawned ender dragon to {@can}
        delete {ejderha::başlatx}
        delete {ejderha::başlat}
        delete {ejderha::başlatad}
        if {ejderha::başlat} is not set:
            set {ejderha::başlat} to now
            set {ejderha::başlatx} to {@süre} hours later
        else:
            set {_num} to (difference between {ejderha::başlatx} and now).getTicks_i()/20
            set {ejderha::başlatad} to formattedTime({_num})

on death:
    if victim is ender dragon:
        if ender dragon's name is "{@ejderhaisim}":
            if attacker is set:
                add 1 to {ejderha::öldürme::%attacker%}
                set {ejderha::basladi} to false
                broadcast "{@p} &7Ejderha Etkinliği Bitti"
                broadcast "{@p} &7Ejderha'yı Öldüren: &e%attacker%"
                broadcast "{@p} &7Ejderha'ya Verdiği Hasar: &e%{ejderha::hasar::%attacker%}%"
                loop {ejderha::hasar::*}:
                    add 1 to {_size}
                    if {_low.to.high.list::%loop-value%} is not set:
                        set {_low.to.high.list::%loop-value%} to loop-index
                    else:
                        set {_n} to 0
                        loop {_size} times:
                            set {_n} to {_n}+1
                            {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                            set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                            stop loop
                wait 1 tick
                set {_n} to size of {_low.to.high.list::*}
                loop {_low.to.high.list::*}:
                    set {_high.to.low.list::%{_n}%} to loop-value
                    set {_n} to {_n}-1
                wait 1 tick
                broadcast "      &8⋘ {@p} &6Hasar Sıralaması&8⋙"
                broadcast "&8————————————————————————————————————————————"
                loop {_high.to.low.list::*}:
                    add 1 to {_result}
                    if loop-value is not "<player>":
                        broadcast "&6&l%{_result}%. &b%loop-value parsed as offline player%&7: &d%{ejderha::hasar::%loop-value%}% &eHasar Verdi!"
                        broadcast "&8————————————————————————————————————————————"
                    else:             
                        stop
                loop all players in world "{@dünya}":
                    give 8 diamonds to loop-player
                    give 16 iron ingot to loop-player
                    give 32 coal to loop-player
                    send loop-player title "{@p}" with subtitle "&7Ejderha Etkinliğine Katıldığın için Hediyelerin verildi"
                    teleport loop-player to {ejderha::spawn::player}
                delete {ejderha::hasar::*}
                delete {ejderha::başlat}
                
on damage:
    if victim is ender dragon:
        if victim's name is "{@ejderhaisim}":
            if attacker is set:
                add damage to {ejderha::hasar::%attacker%}

command /ejderha [<text>]:
    aliases: /ejder, /dragon
    trigger:
        if player has the permission "ejder.admin":
            if arg 1 is "başlat":
                loop all players:
                    baslatEvent(loop-player, player)
            if arg 1 is "setspawn":
                set {ejderha::spawn::loc} to player's location
                set {ejderha::spawn::world} to player's world
                send "{@p} &7Ejderha Doğma Bölgesi &e%{ejderha::spawn::loc}% &7Olarak ayarlandı."
            if arg 1 is not set:
                send "{@p}"
                send "&e/ejder setspawn &8-> &7Ejderha Doğma Yeri Ayarlar"
                send ""
                send "&e/ejder setplayerspawn &8-> &7Ejderha Öldükten Sonra Oyuncuların gideceği yer"
                send ""
                send "&e/ejder zamansıfırla &8-> &7Başlama Süresini {@süre} Saat Olarak ayarlar"
                send ""
                send "&e/ejder başlat &8-> &7Eventi Başlatır"
                send "{@p}"
            if arg 1 is "setwarp":
                set {ejderha::spawn::player} to player's location
                send "{@p} &7Ejderha Warp Alanı &a%{ejderha::spawn::player}% &7olarak ayarlandı."
            if arg 1 is "zamansıfırla" or "zamansifirla":
                delete {ejderha::başlatx}
                delete {ejderha::başlat}
                delete {ejderha::başlatad}
                if {ejderha::başlat} is not set:
                    set {ejderha::başlat} to now
                    set {ejderha::başlatx} to {@süre} hours later
                else:
                    set {_num} to (difference between {ejderha::başlatx} and now).getTicks_i()/20
                    set {ejderha::başlatad} to formattedTime({_num})
                send "{@p} &7Zaman Sıfırlandı !"
        else:
            send "{@p} &cKomut Bulunamadı detaylı bilgi almak için &e/bilgi&c!"
        if arg 1 is not set:
            send "{@p}"
            send "&e/ejder sıralama &8-> &7En Çok Ejderha Öldürenleri gösterir."
            send "{@p}"
        if arg 1 is "sıralama":
            set {envanterkilit::%player%} to true
            loop {ejderha::öldürme::*}:
                add 1 to {_size}
                if {_low.to.high.list::%loop-value%} is not set:
                    set {_low.to.high.list::%loop-value%} to loop-index
                else:
                    set {_n} to 0
                    loop {_size} times:
                        set {_n} to {_n}+1
                        {_low.to.high.list::%loop-value-1%.%{_n}%} is not set
                        set {_low.to.high.list::%loop-value-1%.%{_n}%} to loop-index
                        stop loop
            wait 1 tick
            set {_n} to size of {_low.to.high.list::*}
            loop {_low.to.high.list::*}:
                set {_high.to.low.list::%{_n}%} to loop-value
                set {_n} to {_n}-1
            wait 1 tick
            open virtual chest with size 3 named "{@isaret} &7Ejderha Sıralaması" to player
            loop {_high.to.low.list::*}:
                add 1 to {_result}
                if loop-value is not "<player>":
                    make gui slot {_result} - 1 of player with paper named "&e%loop-value parsed as offline player%" with lore "||{@isaret} &6Sırası: &f%{_result}%||{@isaret} &6Öldürme Sayısı: &f%{ejderha::öldürme::%loop-value parsed as offline player%}%"
                  
                else:             
                    stop
on command "warp end":
    cancel event
    if {ejderha::spawn::warp} is set:
        if {ejderha::basladi} is true:
            teleport player to {ejderha::spawn::warp}
        else:
            send "{@p} &cUyarı &7Görünüşe Göre Herhangibi bir Ejderha Eventi Başlamamış."
    else:
        send "{@p} &cHata &7Görünüşe Göre End Warpı ayarlanmamış."
# Zamanlayıcı

every 10 seconds:
    if {ejderha::başlat} is not set:
        set {ejderha::başlat} to now
        set {ejderha::başlatx} to {@süre} hours later
    else:
        set {_num} to (difference between {ejderha::başlatx} and now).getTicks_i()/20
        set {ejderha::başlatad} to formattedTime({_num})
    if difference between now and {ejderha::başlat} is greater than {@süre} hours:
        set {ejderha::başlat} to now
        execute console command "başlat3333event"

function formattedTime(süre: number) :: String:
    set {_d} to floor({_süre}/86400)
    set {_h} to floor(mod({_süre},86400)/3600)
    set {_m} to floor(mod({_süre},3600)/60)
    if {_d} is smaller than 10:
        set {_d} to "0%{_d}%"
    if {_h} is smaller than 10:
        set {_h} to "0%{_h}%"
    if {_m} is smaller than 10:
        set {_m} to "0%{_m}%"
    set {_dx} to ""
    if {_d} is not "00":
        set {_dx} to "%{_d}% gün"
        set {_hx} to "%{_h}% saat"
        set {_mx} to "%{_m}% dakika"
    else:
        set {_dx} to ""
        set {_hx} to "%{_h}% saat"
        set {_mx} to "%{_m}% dakika"
    return "%{_dx}% %{_hx}% %{_mx}%"

import:
    org.bukkit.event.entity.EntityCreatePortalEvent
on EntityCreatePortalEvent:
    cancel event

on join:
    delete {ejderha::hasar::%player%}



ScoreBoard sayaç: %skript_ejderha::başlatad%
 

Konu görüntüleyen kullanıcılar

Benzer konular

Geri
Üst