Skocz do zawartości
  • 0

Problem ze skryptem


Fruzzie

Pytanie

Witam! Mam problem ze skryptem... Chodzi o to, że jak już wykonam misję to dalej pokazują się szczegóły misji...

variables:

        {Quest1.%player%} = false
        {Quest1.wtrakcie.%player%} = false
on rightclick on villager:
        name of villager is "Quester":
                cancel event
                if {Quest1.%player%} is false:
                        if {Quest1.wtrakcie.%player%} is false:
                                send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                                send "&7                            Witaj, %player% !"
                                send "&7   Ostatnio brakuje mi skóry na zbroje, czy mógłbyś mi ją dostarczyć ?"
                                send "&7                     Oczywiście odwdzięczę Ci się :)"
                                send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                                set {Quest1.wtrakcie.%player%} to true
                                stop
                        if {Quest1.wtrakcie.%player%} is true:
                                player has 5 leather:
                                        remove 5 leather from the player                    
                                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                                        send "&7                      Dziękuje Ci bardzo za pomoc !"
                                        send "&7                        Proszę oto twoja nagroda."
                                        send " "          
                                        send "&7                    Otrzymałeś 10 steaków i 15 żelaza !" 
                                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
set {Quest1.wtrakcie.%player%} to false
                                        add 15 iron ingot to the player
                                        add 10 steak to the player
                                        strike lightning effect at the player
                                        set {Quest1.%player%} to true
                                        stop
                                else:                          
                                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                                        send "&7                    Nie przyniosłeś dla mnie skóry !"
                                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
command /quest [<Text&gt] [<player&gt]:
        trigger:
                arg 1 is not set:
                        send "&7Wpisz: &9/quest spawn&7/&9reset"
                        stop trigger
                arg 1 is "Spawn" or "Villager":
                        player has permissions "quest.spawn":
                                spawn villager at the targeted block
                                set the spawned villager's display name to "Quester"
                                send "&7Pomyslnie zrespiono Quester !"
                        else:
                                send "&7Nie posiadasz uprawnien !"
                arg 1 is "Reset" or "Resetuj":
                        player has permissions "quest.reset":
                                send "&7Resetuje questy gracza !"
                                set {Quest1.%player%} to false
                                set {Quest2.%player%} to false
                                set {Quest3.%player%} to false
                                set {Quest4.%player%} to false
                                set {Quest5.%player%} to false
                                set {Quest6.%player%} to false
                                set {Quest7.%player%} to false
                                set {Quest8.%player%} to false
                                set {Quest9.%player%} to false
                                set {Quest10.%player%} to false
                                set {Quest11.%player%} to false
                                set {Quest1.wtrakcie.%player%} to false
                                set {Quest2.wtrakcie.%player%} to false
                                set {Quest3.wtrakcie.%player%} to false
                                set {Quest4.wtrakcie.%player%} to false
                                set {Quest5.wtrakcie.%player%} to false
                                set {Quest6.wtrakcie.%player%} to false
                                set {Quest7.wtrakcie.%player%} to false
                                set {Quest8.wtrakcie.%player%} to false
                                set {Quest9.wtrakcie.%player%} to false
                                set {Quest10.wtrakcie.%player%} to false
                                set {Quest11.wtrakcie.%player%} to false
                                set {Stone.%player%} to 0
                                wait 1 second
                                send "&7Questy zostaly zresetowane !"
                        else:
                                send "&7Nie posiadasz uprawnien !"
command /misja:
        trigger:
                if {Quest1.wtrakcie.%player%} is false:
                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                        send "&7                       Aktualnie nie wykonujesz żadnej misji !"
                        send "&7                 Idź po nią do Staszka, który znajduje się w mieście."
                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                else:
                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
                        send "&7                               Szczegóły misji I"
                        send "&7                          Zdobądź 5 skóry dla Staszka."
                        send "&7                       Możesz ją zdobyć zabijając krowy."
                        send "&8[&9+&8]=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=[&9+&8]"
Odnośnik do komentarza
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Automatycznie wygenerowana wiadomość.

Ten temat został przeniesiony z "Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!" do "Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!".

Odnośnik do komentarza
Udostępnij na innych stronach

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ę...