Skocz do zawartości

HappyEvents - skrypt na event


Rekomendowane odpowiedzi

  • 2 tygodnie później...

Znalazłem pewien błąd apropo EVENT STONEDROP. :v Mianowicie Skrzynka redstona dropi tak jak pozostałe skrzyneczki, lecz gdy klikam na nią prawym przyciskiem myszy kładzie się jak zwykła skrzynka (jest podpisana jako Skrzynka redstona) i nic z niej nie dropi :p

Odnośnik do komentarza
https://skript.pl/temat/602-happyevents-skrypt-na-event/#findComment-6993
Udostępnij na innych stronach

  • 1 miesiąc temu...
  • 3 miesiące temu...
  • 6 miesięcy temu...

No to wpisałem tą datę wpisuje /eventwlacz Wielkanoc i nic sie nie dzieje :f

#konfiguracja eventu BonusExp#options:    iexp: 35#konfiguracja eventu Boze Narodzenie#options:    Wielkanoc: "14.05" or "15.05" #Zapisujecie tu datę 1 i 2 dnia wielkanocy w formacie dd.mm(np. 01.12 -> 1. grudnia)    msgboznarodz: &aGratulacje&9, otrzymales prezent bozonarodzeniowy!   #tutaj ustaw wiadomosc jaka wyswietli sie graczowi gdy dostanie prezent    bprezent1: none  #prezent jaki ma otrzymac gracz    bprezent2: none  # -||-    bprezent3: none  # -||-    bprezent4: none  # -||-    bprezent5: none  # -||-    bprezent6: none  # -||-    bprezent7: none  # -||-    bszansa1: 100   #szansa na otrzymanie prezentu nr 1.    bszansa2: 100   # -||-    bszansa3: 100   # -||-    bszansa4: 100   # -||-    bszansa5: 100   # -||-    bszansa6: 100   # -||-    bszansa7: 100   # -||-    #konfiguracja eventu Halloween#options:    msghalloween: &aGratulacje&9, otrzymales prezent halloween'owy!   #tutaj ustaw wiadomosc jaka wyswietli sie graczowi gdy dostanie prezent    hprezent1: none  #prezent jaki ma otrzymac gracz    hprezent2: none  # -||-    hprezent3: none  # -||-    hprezent4: none  # -||-    hprezent5: none  # -||-    hprezent6: none  # -||-    hprezent7: none  # -||-    hszansa1: 100   #szansa na otrzymanie prezentu nr 1.    hszansa2: 100   # -||-    hszansa3: 100   # -||-    hszansa4: 100   # -||-    hszansa5: 100   # -||-    hszansa6: 100   # -||-    hszansa7: 100   # -||-#konfiguracja eventu Wielkanocnego#options:    msgwielkanoc: &aGratulacje&9, otrzymales prezent wielkanocny!   #tutaj ustaw wiadomosc jaka wyswietli sie graczowi gdy dostanie prezent    wprezent1: none  #prezent jaki ma otrzymac gracz    wprezent2: none  # -||-    wprezent3: none  # -||-    wprezent4: none  # -||-    wprezent5: none  # -||-    wprezent6: none  # -||-    wprezent7: none  # -||-    wszansa1: 100   #szansa na otrzymanie prezentu nr 1.    wszansa2: 100   # -||-    wszansa3: 100   # -||-    wszansa4: 100   # -||-    wszansa5: 100   # -||-    wszansa6: 100   # -||-    wszansa7: 100   # -||-#konfiguracja eventu StoneDropoptions:    skrzynkadiax: 2    skrzynkagold: 7    skrzynkaemerald: 4    skrzynkairon: 10    skrzynkacoal: 15    skrzynkalapis: 5    skrzynkaredstone: 8variables:    {event.stonedrop} = false    {event.exp} = falsecommand /eventwlacz <text>:    permission: eventy.wlacz    trigger:        if arg 1 is "exp":            if {event.exp} is false:                set {event.exp} to true                broadcast "&9Bonus expa ze stone jest wlaczony!"                stop        if arg 1 is "stonedrop":            if {event.stonedrop} is false:                set {event.stonedrop} to true                broadcast "&9Event StoneDrop zostal rozpoczety!"                command /eventwylacz <text>:    permission: eventy.wylacz    trigger:        if arg 1 is "exp":            if {event.exp} is true:                set {event.exp} to false                broadcast "&9Event expa ze stone zostal zakonczony!"                stop        if arg 1 is "stonedrop":            if {event.stonedrop} is true:                set {event.stonedrop} to false                broadcast "&9Event StoneDrop zostal zakonczony!"                stop                #EVENT NA BOZONARODZENIOWY#on death of zombie:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "24.12" or "25.12":        set drops to 1 chest named "&4Prezent &fBozonarodzeniowy" and 2 rotten fleshon death of skeleton:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "24.12" or "25.12":        set drops to 1 chest named "&4Prezent &fBozonarodzeniowy" and 2 boneon death of creeper:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "24.12" or "25.12":        set drops to 2 chest named "&4Prezent &fBozonarodzeniowy" and 2 gunpowderon death of spider:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "24.12" or "25.12":        set drops to 1 chest named "&4Prezent &fBozonarodzeniowy" and 2 spider eyeon death of enderman:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "24.12" or "25.12":        set drops to 3 chest named "&4Prezent &fBozonarodzeniowy" and 1 ender pearl            on rightclick with chest:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "24.12" or "25.12":        if name of player's tool is "&4Prezent &fBozonarodzeniowy":            remove 1 chest from player's tool            chance of {@bszansa1}%:                give {@bprezent1} to player                message "{@msgboznarodz}"            chance of {@bszansa2}%:                give {@bprezent2} to player                message "{@msgboznarodz}"            chance of {@bszansa3}%:                give {@bprezent3} to player                message "{@msgboznarodz}"            chance of {@bszansa4}%:                give {@bprezent4} to player                message "{@msgboznarodz}"            chance of {@bszansa5}%:                give {@bprezent5} to player                message "{@msgboznarodz}"            chance of {@bszansa6}%:                give {@bprezent6} to player                message "{@msgboznarodz}"            chance of {@bszansa7}%:                give {@bprezent7} to player                message "{@msgboznarodz}"        else:            cancel event            message "&cW tej chwili nie trwa event Bozonarodzeniowy"#EVENT NA HALLOWEEN#on death of zombie:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "30.10" or "31.10" or "01.11":        set drops to 1 pumpkin named "&6Dynia Halloween'owa" and 2 rotten fleshon death of skeleton:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "30.10" or "31.10" or "01.11":        set drops to 1 pumpkin named "&6Dynia Halloween'owa" and 2 boneon death of creeper:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "30.10" or "31.10" or "01.11":        set drops to 2 pumpkin named "&6Dynia Halloween'owa" and 2 gunpowderon death of spider:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "30.10" or "31.10" or "01.11":        set drops to 1 pumpkin named "&6Dynia Halloween'owa" and 2 spider eyeon death of enderman:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "30.10" or "31.10" or "01.11":        set drops to 3 pumpkin named "&6Dynia Halloween'owa" and 1 ender pearl            on rightclick with pumpkin:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is "30.10" or "31.10" or "01.11":        if name of player's tool is "&6Dynia Halloween'owa":            remove 1 pumpkin from player's tool            chance of {@hszansa1}%:                give {@hprezent1} to player                message "{@msghalloween}"            chance of {@hszansa2}%:                give {@hprezent2} to player                message "{@msghalloween}"            chance of {@hszansa3}%:                give {@hprezent3} to player                message "{@msghalloween}"            chance of {@hszansa4}%:                give {@hprezent4} to player                message "{@msghalloween}"            chance of {@hszansa5}%:                give {@hprezent5} to player                message "{@msghalloween}"            chance of {@hszansa6}%:                give {@hprezent6} to player                message "{@msghalloween}"            chance of {@hszansa7}%:                give {@hprezent7} to player                message "{@msghalloween}"                else:        cancel event        message "&cW tej chwili nie trwa event Halloween'owy"                        #EVENT WIELKANOCNY#on death of zombie:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is {@Wielkanoc}:        set drops to 1 egg named "&1J&2a&3j&4k&5o &6W&7i&de&9l&ek&ca&bn&1o&2c&3n&4e" and 2 rotten fleshon death of skeleton:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is {@Wielkanoc}:        set drops to 1 egg named "&1J&2a&3j&4k&5o &6W&7i&de&9l&ek&ca&bn&1o&2c&3n&4e" and 2 boneon death of creeper:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is {@Wielkanoc}:        set drops to 2 egg named "&1J&2a&3j&4k&5o &6W&7i&de&9l&ek&ca&bn&1o&2c&3n&4e" and 2 gunpowderon death of spider:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is {@Wielkanoc}:        set drops to 1 egg named "&1J&2a&3j&4k&5o &6W&7i&de&9l&ek&ca&bn&1o&2c&3n&4e" and 2 spider eyeon death of enderman:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is {@Wielkanoc}:        set drops to 3 egg named "&1J&2a&3j&4k&5o &6W&7i&de&9l&ek&ca&bn&1o&2c&3n&4e" and 1 ender pearlon rightclick with egg:    set {data} to subtext of "%now%" between 1 and 5    "%{data}%" is {@Wielkanoc}:        if name of player's tool is "&1J&2a&3j&4k&5o &6W&7i&de&9l&ek&ca&bn&1o&2c&3n&4e":            cancel event            remove 1 egg from player's tool            chance of {@wszansa1}%:                give {@wprezent1} to player                message "{@msgwielkanoc}"            chance of {@wszansa2}%:                give {@wprezent2} to player                message "{@msgwielkanoc}"            chance of {@wszansa3}%:                give {@wprezent3} to player                message "{@msgwielkanoc}"            chance of {@wszansa4}%:                give {@wprezent4} to player                message "{@msgwielkanoc}"            chance of {@wszansa5}%:                give {@wprezent5} to player                message "{@msgwielkanoc}"            chance of {@wszansa6}%:                give {@wprezent6} to player                message "{@msgwielkanoc}"            chance of {@wszansa7}%:                give {@wprezent7} to player                message "{@msgwielkanoc}"    else:        cancel event        message "&cW tej chwili nie trwa event wielkanocny"        #EVENT STONEDROPon mine of stone:    if {event.stonedrop} is true:        chance of {@skrzynkadiax}%:            drop 1 chest named "&6Skrzynka &bdiamentow"            stop        chance of {@skrzynkagold}%:            drop 1 chest named "&6Skrzynka zlota"            stop        chance of {@skrzynkaemerald}%:            drop 1 chest named "&6Skrzynka &aszmaragdow"            stop        chance of {@skrzynkairon}%:            drop 1 chest named "&6Skrzynka &7zelaza"            stop        chance of {@skrzynkacoal}%:            drop 1 chest named "&6Skrzynka &0wegla"            stop        chance of {@skrzynkalapis}%:            drop 1 chest named "&6Skrzynka &9lapisu"            stop        chance of {@skrzynkaredstone}%:            drop 1 chest named "&6Skrzynka &4redstone"            stopon rightclick with chest:    {event.stonedrop} is true:        name of player's tool is "&6Skrzynka &bdiamentow":            cancel event            remove 1 chest named "&6Skrzynka &bdiamentow" from player's tool            set {_diax} to a random integer between 1 and 4            give {_diax} of diamond to player            message "&aGratulacje! &3Otrzymales %{_diax}% diamenty/ow!"        name of player's tool is "&6Skrzynka zlota":            cancel event            remove 1 chest named "&6Skrzynka zlota" from player's tool            set {_gold} to a random integer between 3 and 6            give {_gold} of gold ingot to player            message "&aGratulacje! &3Otrzymales %{_gold}% sztabek zlota"        name of player's tool is "&6Skrzynka &aszmaragdow":            cancel event            remove 1 chest named "&6Skrzynka &aszmaragdow" from player's tool            set {_emerald} to a random integer between 1 and 5            give {_emerald} of emerald to player            message "&aGratulacje! &3Otrzymales %{_emerald}% szmaragdy!"        name of player's tool is "&6Skrzynka &7zelaza":            cancel event            remove 1 chest named "&6Skrzynka <grey>zelaza" from player's tool            set {_iron} to a random integer between 4 and 8            give {_iron} of iron ingot to player            message "&aGratulacje! &3Otrzymales %{_iron}% zelaza!"        name of player's tool is "&6Skrzynka &0wegla":            cancel event            remove 1 chest named "&6Skrzynka &0wegla" from player's tool            set {_coal} to a random integer between 4 and 9            give {_coal} of coal to player            message "&aGratulacje! &3Otrzymales %{_coal}% wegla!"        name of player's tool is "&6Skrzynka &9lapisu":            cancel event            remove 1 chest named "&6Skrzynka &9lapisu" from player's tool            set {_lapis} to a random integer between 2 and 9            give {_lapis} of lapis lazuli to player            message "&aGratulacje! &3Otrzymales %{_lapis}% lapisu!"        name of player's tool is "&6Skrzynka &4redsrone":            cancel event            remove 1 chest named "&6Skrzynka &4redstone"            set {_redstone} to a random integer between 5 and 10            give {_redstone} of redstone to player            message "&aGratulacje! &3Otrzymales %{_redstone}% redstone!"#EVENT EXP#on break of stone:    if {event.exp} is true:        give {@iexp} xp to player                                #WIADOMOSCI PO WEJSCIU NA SERWER#                on join:    set {data} to subtext of "%now%" between 1 and 5    wait 1 seconds    message "&6Aktywne eventy:"    if {event.exp} is true:        message "&2Bonus expa ze stone jest wlaczony!"    else:        message "Bonus expa ze stone - nie"    {event.stonedrop} is true:        message "&2Event StoneDrop jest wlaczony!"    else:        message "Event StoneDrop -   nie"    "%{data}%" is {@Wielkanoc}:        message "&2Event Wielkanocny jest wlaczony!"    else:        message "Event wielkanocny - nie"    "%{data}%" is "30.10" or "31.10" or "01.11":        message "&2Event Halloween jest wlaczony!"    else:        message "Event halloween - nie"    "%{data}%" is "24.12" or "25.12":        message "&2Event Bozonarodzeniowy jest wlaczony!"    else:        message "Event bozonarodzeniowy - nie"

//Dodaję spoiler, code i łączę posty. ~ :norbi:

Odnośnik do komentarza
https://skript.pl/temat/602-happyevents-skrypt-na-event/#findComment-61475
Udostępnij na innych stronach

Dodałem datę i zgadza się ona z data na serwerze, a event nadal nie działa

 

Może źle tą datę ustawiłem :F

Mógłbyś czerwonym kolorem zaznaczyć gdzie mam wpisać tą datę tak, żeby event się włączył? :P

Edytowane przez Edek
Odnośnik do komentarza
https://skript.pl/temat/602-happyevents-skrypt-na-event/#findComment-61541
Udostępnij na innych stronach

  • bvcz zablokował(a) ten temat
  • Libter odblokował(a) ten temat
  • 3 lata później...
Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...