Skocz do zawartości

MyPVP - skrypt na pvp


Rekomendowane odpowiedzi

MyPVP

Witajcie dziś przedstawię wam skrypt na PvP.

komendy (permissie w nawiasach):

Spoiler

/pvp - teleportuje na pvp

/pvp [gracz] - teleportuje danego gracza na pvp (patbox.pvptp)

/setpvp - ustawia miejsce respawnu/areny pvp (patbox.setpvp)

Uwaga - arene pvp zaleca się ustawić na osobnym świecie

Dostępne kity: Wojownik, Łucznik

W nowych aktualizacja dodam nową zawartość!

Kod (1.0):

Spoiler

# MyPVP - skrypt na pvp
#copyright 2017 by Patbox

command /pvp [<player>]:
    trigger:
        if arg 1 is not set:
            teleport player to {patbox.pvp}
            set {patbox.antypvp.%player%} to 1
            give player diamond of infinity named "&6&lKity"
            stop
        else:
            if executor has permission "patbox.pvptp":
                teleport arg 1 to {patbox.pvp}
                set {patbox.antypvp.%arg 1%} to 1
                give arg 1 diamond of infinity named "&6&lKity"
                stop
command /setpvp:
    permission: patbox.setpvp
    trigger:
        set {patbox.pvp} to location of player
        send "&aUstawiono nowe PVP!"
        set {pvpworld} to player's world
on damage:
    if victim is player:
        if victim world is {pvpworld}:
            if {patbox.antypvp.%victim%} is 1:
                cancel event
                set {patbox.antypvp.%victim%} to 0
                stop
on death:
    if player is in world {pvpworld}:
        wait 1 tick
        force victim to respawn
        wait 1 tick
        execute command "pvp %player%"
on rightclick with diamond:
    open chest with 1 rows named "&6&lKity" to player
    wait 1 tick
    format slot 0 of player with 1 of diamond sword named "&6Wojownik" to close then run "pvpkit Wojownik %player%"
    format slot 1 of player with 1 of bow named "&aŁucznik" to close then run "pvpkit lucznik %player%"
command /pvpkit [<text>] [<player>]:
    permission: patbox.pvpkit
    trigger:
        if arg 1 is "Wojownik":
            set slot 0 of arg 2 to 1 of diamond sword of sharpness 1 named "&6Miecz %arg 2%"
            set slot 1 of arg 2 to 1 of steak of sharpness 1 named "&6Stek po amerykańsku."
            set slot 0 of arg 2 to 1 of diamond sword of sharpness 1 named "&6Miecz %arg 2%"
            set slot 1 of arg 2 to 64 of steak of sharpness 1 named "&6Stek po amerykańsku."
            set slot 39 of arg 2 to 1 of iron helmet of protection 1 named "&6Zbroja %arg 2%"
            set slot 38 of arg 2 to 1 of iron chestplate of protection 1 named "&6Zbroja %arg 2%"
            set slot 36 of arg 2 to 1 of iron boots of protection 1 named "&6Zbroja %arg 2%"
        if arg 1 is "lucznik":
            set slot 0 of arg 2 to 1 of iron sword named "&aNóż %arg 2%"
            set slot 1 of arg 2 to 1 of bow of infinity 1 and power 2 named "&aŁuk %arg 2%"
            set slot 2 of arg 2 to 64 of steak of sharpness 1 named "&6Stek po amerykańsku."
            set slot 9 of arg 2 to 1 of arrow
            set slot 38 of arg 2 to 1 of chainmail chestplate of protection 2 named "&aZbroja %arg 2%"
            set slot 36 of arg 2 to 1 of leather boots named "&aButy %arg 2%"            

 

Edytowane przez Patbox
Odnośnik do komentarza
https://skript.pl/temat/21067-mypvp-skrypt-na-pvp/
Udostępnij na innych stronach

  • 1 miesiąc temu...
  • 4 lata później...
  • 1 miesiąc temu...

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Dodaj odpowiedź do tematu...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

  • Ostatnio przeglądający   0 użytkowników

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