Skocz do zawartości
  • 0

Nie dziala pare skryptow


Pytanie

Czesc moglby ktos ogarnac te skrypty i poprawic ? z gory bardzo bardzo dziekuje 

Spoiler

on right click on villager:
    if name of entity is "&bKowal":
        wait 3 tick
        open chest with 1 row named "&eKowal" to player
        format slot 0 of player with 1 of Gray Stained Glass Pane to close
        format slot 1 of player with 1 of Gray Stained Glass Pane to close
                format slot 2 of player with 1 of Gray Stained Glass Pane to close
        format slot 3 of player with 1 of Gray Stained Glass Pane to close
        format slot 4 of player with 1 of diamond sword named "&eOstrze Wladcy Swiatow" with lore "&6Cena Srebra: 800000||&6Cena Golda: 5" to run [make player execute "zakup kp1"]
                format slot 5 of player with 1 of Gray Stained Glass Pane to close
        format slot 6 of player with 1 of Gray Stained Glass Pane to close
                format slot 7 of player with 1 of Gray Stained Glass Pane to close
        format slot 8 of player with 1 of Gray Stained Glass Pane to close

on rightclick on ender chest:
    cancel event

on rightclick on ender chest:
     if player's tool is air:
         wait 3 tick
     open chest with 1 row named "&eKowal" to player
     format slot 0 of player with 1 of diamond named "&dSzanse --->" to close
     format slot 1 of player with 1 of Red Stained Glass Pane named "&4Czerwony: 1 Procent"
         format slot 2 of player with 1 of Green Stained Glass Pane named "&aZielony: 5 Procent"
     format slot 3 of player with 1 of Blue Stained Glass Pane named "&1Niebieski: 10 Procent"
     format slot 4 of player with 1 of Yellow Stained Glass Pane named "&6Zolty: 15 Procent
         format slot 5 of player with 1 of Black Stained Glass Pane named "&0Czarny: 20 Procent"
        
on rightclick on ender chest:
     if player's tool is tripwire hook named "&d&lKlucz Ruletki":
         send "&6Losowanie"
         wait 3 second
         send "&c3"
         wait 2 second
         send "&c2"
         wait 1 second
         send "&1"  
         chance of 1%:
                 give 1 Red Stained Glass Pane named "&4Czerwony" to player
         chance of 5%:
                 give 1 Green Stained Glass Pane named "&aZielony" to player
         chance of 10%:
                 give 1 Blue Stained Glass Pane named "&1Niebieski" to player
         chance of 15%:
                 give 1 Yellow Stained Glass Pane named "&6Zolty" to player
         chance of 20%:
                 give 1 Black Stained Glass Pane named "&0Czarny" to player

command /holo [<text>] [<text>]:
        trigger:
                if argument 1 is not set:
                        send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"
                if argument 1 is "dodaj":
                        if argument 2 is set:
                                if {holo.%argument 2%} is not set:                                     
                                        set {_loc} to location of target block
                                        set {holo.%argument 2%} to "%{_loc}%"
                                        new Hologram "%{_loc}%.holo";
                                        "%{_loc}%.holo".Hologram.change{"%argument 2%"};
                                        "%{_loc}%.holo".Hologram.show{{_loc}};
                                        add argument 2 to {holo::*}
                                        send "&aDodales hologram '%argument 2%'!"
                                        stop
                                else:
                                        send "&cTaki hologram jest juz ustawiony!"
                        else:
                                send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"
                if argument 1 is "usun":
                        if argument 2 is set:
                                if {holo.%argument 2%} is set:
                                        set {_loc} to {holo.%argument 2%}
                                        "%{_loc}%.holo".Hologram.delete{};
                                        delete {holo.%argument 2%}
                                        remove argument 2 from {holo::*}
                                        send "&aUsunales hologram '%argument 2%'!"
                                        stop
                                else:
                                        send "&cTaki hologram nie istnieje!"
 
                        else:
                                send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"
                if argument 1 is "lista":
                        if argument 2 is not set:
                                send "&3Lista Hologramow:"
                                loop {holo::*}:
                                        send "&7%loop-index%. &f%loop-value%"
                                stop
                        else:
                                send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"

 


#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[_End_Of_Skript]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~#

Spoiler

ommand /zakup [<text>]:
    trigger:
        if arg 1 is "kp1":
            if {gold.%player%} is less than 5:
                send "&7Nie Posiadasz 5 golda! &aPosiadasz: %{gold.%player%}% golda"
                stop
            if {gold.%player%} is equal to 5:
                remove 5 from {gold.%player%}
                stop
            if {gold.%player%} is more than 5:
                remove 5 from {gold.%player%}
                stop
        if arg 1 is "kp1":
            if {srebro.%player%} is less than 800000:
                send "&7Nie Posiadasz 800000 srebra! &aPosiadasz: %{srebro.%player%}% srebra"
                stop
            if {srebro.%player%} is equal to 800000:
                remove 800000 from {srebro.%player%}
                give 1 give 1 276 named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%durability of player's tool%&f&l/&7&l1561" to player
                send "&bZakupiono"
                stop
            if {srebro.%player%} is more than 800000:
                remove 800000 from {srebro.%player%}
                give 1 give 1 276 named "&e&lExcalibur||Wlasnosc: %player%||&f&lZabici gracze: %{killedbyexcalibur.%player%}%||&7&lWytrzymalosc: &8&l%durability of player's tool%&f&l/&7&l1561" to player
                send "&bZakupiono!"
                stop

 

 

Edytowane przez Ixidi
Odnośnik do komentarza
https://skript.pl/temat/15325-nie-dziala-pare-skryptow/
Udostępnij na innych stronach

1 odpowiedź na to pytanie

Rekomendowane odpowiedzi

  • 0

Ad 1

Spoiler

on right click on villager:
    if name of entity is "&bKowal":
        wait 3 tick
        open chest with 1 row named "&eKowal" to player
        format slot 0 of player with 1 of Gray Stained Glass Pane to close
        format slot 1 of player with 1 of Gray Stained Glass Pane to close
        format slot 2 of player with 1 of Gray Stained Glass Pane to close
        format slot 3 of player with 1 of Gray Stained Glass Pane to close
        format slot 4 of player with 1 of diamond sword named "&eOstrze Wladcy Swiatow" with lore "&6Cena Srebra: 800000||&6Cena Golda: 5" to run [make player execute "zakup kp1"]
        format slot 5 of player with 1 of Gray Stained Glass Pane to close
        format slot 6 of player with 1 of Gray Stained Glass Pane to close
        format slot 7 of player with 1 of Gray Stained Glass Pane to close
        format slot 8 of player with 1 of Gray Stained Glass Pane to close

on rightclick on ender chest:
    cancel event

on rightclick on ender chest:
    if player's tool is air:
        wait 3 tick
        open chest with 1 row named "&eKowal" to player
        format slot 0 of player with 1 of diamond named "&dSzanse --->" to close
        format slot 1 of player with 1 of Red Stained Glass Pane named "&4Czerwony: 1 Procent" to be unstealable
        format slot 2 of player with 1 of Green Stained Glass Pane named "&aZielony: 5 Procent" to be unstealable
        format slot 3 of player with 1 of Blue Stained Glass Pane named "&1Niebieski: 10 Procent" to be unstealable
        format slot 4 of player with 1 of Yellow Stained Glass Pane named "&6Zolty: 15 Procent" to be unstealable
        format slot 5 of player with 1 of Black Stained Glass Pane named "&0Czarny: 20 Procent" to be unstealable

on rightclick on ender chest:
    if player's tool is tripwire hook named "&d&lKlucz Ruletki":
        send "&6Losowanie"
        wait 3 second
        send "&c3"
        wait 2 second
        send "&c2"
        wait 1 second
        send "&1"  
        chance of 1%:
            give 1 Red Stained Glass Pane named "&4Czerwony" to player
        chance of 5%:
            give 1 Green Stained Glass Pane named "&aZielony" to player
        chance of 10%:
            give 1 Blue Stained Glass Pane named "&1Niebieski" to player
        chance of 15%:
            give 1 Yellow Stained Glass Pane named "&6Zolty" to player
        chance of 20%:
            give 1 Black Stained Glass Pane named "&0Czarny" to player

command /holo [<text>] [<text>]:
        trigger:
                if argument 1 is not set:
                        send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"
                if argument 1 is "dodaj":
                        if argument 2 is set:
                                if {holo.%argument 2%} is not set:                                     
                                        set {_loc} to location of target block
                                        set {holo.%argument 2%} to "%{_loc}%"
                                        new Hologram "%{_loc}%.holo";
                                        "%{_loc}%.holo".Hologram.change{"%argument 2%"};
                                        "%{_loc}%.holo".Hologram.show{{_loc}};
                                        add argument 2 to {holo::*}
                                        send "&aDodales hologram '%argument 2%'!"
                                        stop
                                else:
                                        send "&cTaki hologram jest juz ustawiony!"
                        else:
                                send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"
                if argument 1 is "usun":
                        if argument 2 is set:
                                if {holo.%argument 2%} is set:
                                        set {_loc} to {holo.%argument 2%}
                                        "%{_loc}%.holo".Hologram.delete{};
                                        delete {holo.%argument 2%}
                                        remove argument 2 from {holo::*}
                                        send "&aUsunales hologram '%argument 2%'!"
                                        stop
                                else:
                                        send "&cTaki hologram nie istnieje!"
 
                        else:
                                send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"
                if argument 1 is "lista":
                        if argument 2 is not set:
                                send "&3Lista Hologramow:"
                                loop {holo::*}:
                                        send "&7%loop-index%. &f%loop-value%"
                                stop
                        else:
                                send "&cPrzyklad: /holo <lista|dodaj|usun> <nazwa>"

Robilem to jakis czas, mam nadzieje, ze docenisz moja prace, jezeli odpiszesz to zrobie dla ciebie drugi skrypt, chce bys to zrobil, bym mial pewnosc, ze trzeba ci pomoc

 

Polecam ci:

Oraz

oddzielania, czy jak to sie nazywa tabami, a jak juz chcesz spacje to 4, a nie 5

 

#Edit, to uczucie, gdy zmarnujesz czas, bo zapomniales sprawdzic date ;/

Edytowane przez rudyxd
Odnośnik do komentarza
https://skript.pl/temat/15325-nie-dziala-pare-skryptow/#findComment-106169
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ę...