Skocz do zawartości
  • 0

KOwadlo


ZombieMc

Pytanie

on rightclick on anvil:
    cancel event
    if player's tool is any pickaxe or any Axe or any shovel or any hoe or any sword or any helmet or any chestplate or any leggings or any boots or bow:
        open chest with 3 rows named "&8&lKowadlo" to player
        set {itemencahnt.%player%} to player's tool 
        wait 1 ticks
        format slot 11 of player with 1 of 145 named "&a&lNAPRAW ITEM" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "kowadlo napraw %player%"]
        format slot 15 of player with 1 of 421 named "&a&lZMIEN NAZWE" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "kowadlo napraw %player%"]
        stop
    else:
        send "&4BLAD: &cKliknij prawym przyciskiem myszy na kowadlo aby naprawic lub zmienic nazwe przedmiotu." to player


command /kowadlo [<text>] [<player>]:
    trigger:
        if arg-1 is "napraw":
            if arg-2 is set:
                if player-arg's level is greater than 4:
                    execute console command "repair    hand %player%"
                    remove 35 from player-arg's level
                    send "&aPomyslnie naprawiono przedmiot." to player-arg
                    stop
            else:
                send "&cBLAD: &4nie posiadasz wystarczajacego lvl lub tego przedmiotu nie mozna naprawic." to player-arg
                stop

Naprawcie ten skrypt!

Odnośnik do komentarza
https://skript.pl/temat/24994-kowadlo/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on rightclick on anvil:
    cancel event
    if player's tool is any pickaxe or any Axe or any shovel or any hoe or any sword or any helmet or any chestplate or any leggings or any boots or bow:
        open chest with 3 rows named "&8&lKowadlo" to player
        set {itemencahnt.%player%} to player's tool 
        wait 1 ticks
        format slot 11 of player with 1 of 145 named "&a&lNAPRAW ITEM" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "kowadlo napraw %player%"]
        format slot 15 of player with 1 of 421 named "&a&lZMIEN NAZWE" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "kowadlo napraw %player%"]
        stop
    else:
        send "&4BLAD: &cKliknij prawym przyciskiem myszy na kowadlo aby naprawic lub zmienic nazwe przedmiotu." to player


command /kowadlo [<text>] [<player>]:
    trigger:
        if arg-1 is "napraw":
            if arg-2 is set:
                if player-arg's level is greater than 4:
                    execute console command "repair %player%"
                    remove 35 from player-arg's level
                    send "&aPomyslnie naprawiono przedmiot." to player-arg
                    stop
            else:
                send "&cBLAD: &4nie posiadasz wystarczajacego lvl lub tego przedmiotu nie mozna naprawic." to player-arg
                stop

 

Odnośnik do komentarza
https://skript.pl/temat/24994-kowadlo/#findComment-166408
Udostępnij na innych stronach

  • 0
on rightclick on anvil:
    cancel event
    if player's tool is any pickaxe or any Axe or any shovel or any hoe or any sword or any helmet or any chestplate or any leggings or any boots or bow:
        open chest with 3 rows named "&8&lKowadlo" to player
        set {itemencahnt.%player%} to player's tool 
        wait 1 ticks
        format slot 11 of player with 1 of 145 named "&a&lNAPRAW ITEM" with lore " &8» &eKoszt: &a35 lvl" to close then run [execute console command "kowadlo napraw %player%"]
        format slot 15 of player with 1 of 421 named "&a&lZMIEN NAZWE" with lore " &8» &eKoszt: &a20 lvl" to close then run [execute console command "kowadlo zmien %player%"]
        stop
    else:
        send "&4BLAD: &cKliknij prawym przyciskiem myszy na kowadlo aby naprawic lub zmienic nazwe przedmiotu." to player


command /kowadlo [<text>] [<player>]:
    trigger:
        if arg-1 is "napraw":
            if arg-2 is set:
                if player-arg's level is greater than 34:
                    repair player's tool
                    remove 35 from player-arg's level
                    send "&aPomyslnie naprawiono przedmiot." to player-arg
                    stop
            else:
                send "&cBLAD: &4nie posiadasz wystarczajacego lvl lub tego przedmiotu nie mozna naprawic." to player-arg
                stop
        if arg-1 is "zmien":
            if arg-2 is set:
                if player-arg's level is greater than 19:
                    send "&cNapisz na czacie nazwę kilofu jaką chcesz mieć ustawioną. Masz na to 60 sekund!"
  				    set {nazwa::%player%} to true
                    wait 60 seconds
                    delete {nazwa::%player%}
                    stop
            else:
                send "&cBLAD: &4nie posiadasz wystarczajacego lvl lub tego przedmiotu nie mozna naprawic." to player-arg
                stop
  
on chat:
    if {nazwa::%player%} is set:
        cancel event
        set name of player's tool to "%coloured message%"
        delete {nazwa::%player%}
        send "&cZmieniono nazwę kilofu na &6%coloured message%"
        stop

 

Edytowane przez Bananowiec
Odnośnik do komentarza
https://skript.pl/temat/24994-kowadlo/#findComment-166586
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ę...