Sunucularınız için event skripti

Katılım
1 Ocak 2022
Konular
24
Mesajlar
62
Tepki puanı
67
Puanları
860
Merhaba arkadaşlar bugün sunucularınız için event skripti paylaşıyoruz event skriptinin içinden eşyaları sunucunuza göre değiştirebilirsiniz aşağıda görseller, kod bulunmaktadır iyi forumlar yardımcı olabildiysem ne mutlu bana.

Öncelikle event itemlerini nasıl değiştireceğinizi göstereceğim.
Öncelikle paketinizin içindeki Skript dosyasını buluyorsunuz.
1641390505165.png

Skript dosyasının içinden Scripts adlı dosyayı buluyoruz ve içine tıklıyoruz.
1641390610896.png

Event.sk adlı dosyayı buluyoruz.
1641390643620.png

Event.sk adlı dosyaya mausemizin sağ tıkıyla basıyoruz Edit with notepad++ işareti var ona tıklıyoruz.

1641390726106.png

İçinde aşağıdaki görsel'den değiştirmek istediğiniz eşyaları değiştiriyorsunuz.
1641390792145.png


Sunucuda'ki görsele bakalım.
1641390419596.png
Kodlar



JavaScript:
command /eventyap:
    permission: event.yap
    permission message: &fBilinmeyen Komut.
    trigger:
        execute console command "tm broadcast &6&lEVENT\n&aEventin Başlamasına &e10 &aSaniye"
        wait 5 second
        execute console command "tm broadcast &6&lEVENT\n&aEventin Başlamasına &e5 &aSaniye"
        wait 1 second
        execute console command "tm broadcast &6&lEVENT\n&aEventin Başlamasına &e4 &aSaniye"
        wait 1 second
        execute console command "tm broadcast &6&lEVENT\n&aEventin Başlamasına &e3 &aSaniye"
        wait 1 second
        execute console command "tm broadcast &6&lEVENT\n&aEventin Başlamasına &e2 &aSaniye"
        wait 1 second
        execute console command "tm broadcast &6&lEVENT\n&aEventin Başlamasına &e1 &aSaniye"
        wait 1 second
        execute console command "tm broadcast &6&lEVENT\n&aEşyalar Veriliyor..."       
        loop all players:
            execute console command "give %loop-player% diamond_sword 1 0 sharpness:8 unbreaking:4 Name:&bElmas_Kılıç_&8(&7Event&8)"
        wait 1 second
        loop all players:
            execute console command "give %loop-player% diamond_pickaxe 1 0 efficiency:8 unbreaking:4 Name:&bElmas_Kazma_&8(&7Event&8)"
        wait 1 second
        loop all players:
            execute console command "give %loop-player% diamond_axe 1 0 efficiency:8 unbreaking:4 Name:&bElmas_Balta_&8(&7Event&8)"
        wait 1 second
        loop all players:
            execute console command "give %loop-player% 277 1 0 efficiency:8 unbreaking:4 Name:&bElmas_Kürek_&8(&7Event&8)"
        wait 1 second
        loop all players:
            eventI(loop-player, "helmet", "Kask")
        wait 1 second
        loop all players:
            eventI(loop-player, "chestplate", "Zırh")
        wait 1 second
        loop all players:
            eventI(loop-player, "leggings", "Pantolon")
        wait 1 second
        loop all players:
            eventI(loop-player, "boots", "Bot")
        wait 1 second
        loop all players:
            execute console command "give %loop-player% beef 64"
        wait 1 second
        loop all players:
            execute console command "give %loop-player% golden_apple 32"
        wait 1 second
        loop all players:
            execute console command "cc give p lapis 8 %loop-player%"
        wait 1 second
        loop all players:
            execute console command "cc give p günlük 6 %loop-player%"
        wait 1 second
        loop all players:
            execute console command "cc give p event 4 %loop-player%"
        wait 1 second
        loop all players:
            execute console command "eco give %loop-player% 1000000"
        wait 2 seconds
        broadcast "&3Faction &8▶ &7Event Başarıyla Sonlandırıldı."
        
function eventI(p: player,item: text, nick: text):
    execute console command "give %{_p}% diamond_%{_item}% 1 0 protection:8 unbreaking:4 Name:&bElmas_%{_nick}%_&8
 

Ekli dosyalar

  • 1641390711605.png
    1641390711605.png
    2.5 KB · Görünt.: 140
Katılım
12 Ocak 2022
Konular
1
Mesajlar
3
Tepki puanı
5
Puanları
760
1642096449324.png

Galiba kod bu sunucu +100 çekiyorsa ilk eventde çöker ve give syntaxı varken execute console command kullanman hoşuma gitmedi,

Kod:
give 1 of diamond axe of efficiency 5 and unbreaking 4 with name "&bElmas Balta" to players
tarzı syntaxları tercih et