Skocz do zawartości
  • 0

Arene + itemy


Grzegorz Matysiak

Pytanie

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
13 minut temu, HaX1oR napisał:

Cześć znalazłem coś co ci się przyda...
 https://raw.githubusercontent.com/SkriptDevTeam/1vs1/master/1vs1.sk

~Autorstwa RaiZeN.

Liczę na "+" :P

 

Ale ja liczyłem na areny grupowe 

Odnośnik do komentarza
https://skript.pl/temat/10600-arene-itemy/#findComment-78164
Udostępnij na innych stronach

  • 0

#arena::list::*
#arena::location::%arena%
#arena::world::%arena%::pos1
#arena::world::%arena%::pos2
#arena::worlds::*
#arena::portal::%arena%::pos1
#arena::portal::%arena%::pos2
#arena::msg::%arena%
#arena::inv::%arena%::holding::*
#arena::inv::%arena%::helmet
#arena::inv::%arena%::chestplate
#arena::inv::%arena%::leggings
#arena::inv::%arena%::boots
#arena::invopen::%player%

on any movement:
    loop {arena::worlds::*}:
        player's world is loop-value-1
        loop {arena::list::*}:
            {arena::world::%loop-value-2%::pos1} is {arena::world::%loop-value-2%::pos2}
            player's world is {arena::world::%loop-value-2%::pos1}
            loop blocks within {arena::portal::%loop-value-2%::pos1} to {arena::portal::%loop-value-2%::pos2}:
                location at block at player is location at loop-block
                clear player's inventory
                loop {arena::inv::%loop-value-2%::holding::*}:
                    add loop-value-3 to player's inventory
                teleport player to {arena::location::%loop-value-2%}
                if {arena::msg::%loop-value-2%} is not set:
                    send "&eDolaczyles na arene &c%loop-value-2%&e!"
                    stop
                send "%colored {arena::msg::%loop-value-2%}%"
                stop

method "errMsg" {player}:
    set {_p} to arg{1};
    send "&cArena Admin Commands" to {_p}
    send "&e/arena list" to {_p}
    send "&e/arena create <name>" to {_p}
    send "&e/arena portal <name> <pos1/pos2>" to {_p}
    send "&e/arena msg <name> <text>" to {_p}
    send "&e/arena clearmsg <name>" to {_p}
    send "&e/arena edit <name>" to {_p}
    send "&e/arena inv <name>" to {_p}
    send "&e/arena armor <name>" to {_p}
    send "&e/arena remove <name>" to {_p}
    send "&e/arena cleardata" to {_p}

on inventory close:
    if {arena::invopen::%player%} is set:
        send "%inventory name of player% %{arena::invopen::%player%}%"
        delete {arena::inv::%{arena::invopen::%player%}%::holding::*}
        loop 4*9 times:
            if slot "%loop-number - 1%" parsed as an integer of current inventory of player is not air:
                set {arena::inv::%{arena::invopen::%player%}%::holding::%loop-number - 1%} to slot "%loop-number - 1%" parsed as an integer of current inventory of player
        send "&aUstawiono nowy ekwipunek dla areny &7%{arena::invopen::%player%}%&a!"
        delete {arena::invopen::%player%}

command /arena [<text>] [<text>] [<text>]:
    trigger:
        if player doesn't have permission "freepvp.arena":
            send "&cNie ma takiej komendy, wpisz &7/pomoc&c."
            stop
        if arg 1 is "list":
            if size of {arena::list::*} is 0:
                send "&eBrak dostepnych aren."
                stop
            send "&eDostepne areny: &7%{arena::list::*}%"
            stop
        if arg 1 is "create":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} contains arg 2:
                send "&cTaka nazwa juz istnieje!"
                stop
            add arg 2 to {arena::list::*}
            set {arena::location::%arg 2%} to location of player
            send "&aUtworzyles nowa arene &7%arg 2% &ana koordynatach &7%location of player% &aw swiecie &7%player's world%&a!"
            send "&aAby stworzyc portal, wpisz &7/arena portal %arg 2% <pos1/pos2>&a!"
            send "&aAby zmienic miejsce teleportu, wpisz &7/arena edit %arg 2%&a!"
            stop
        if arg 1 is "portal":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            if arg 3 is not "pos1" or "pos2":
                function "errMsg" {player}
                stop
            set {_w} to {arena::world::%arg 2%::%arg 3%}
            set {arena::portal::%arg 2%::%arg 3%} to location of targeted block
            set {arena::world::%arg 2%::%arg 3%} to player's world
            if {arena::worlds::*} contains player's world:
                set {_asdad} to true
            else:
                add player's world to {arena::worlds::*}
            if {_w} is set:
                loop {arena::list::*}:
                    if {arena::world::%loop-value%::pos1} is {_w}:
                        set {_} to true
                    if {arena::world::%loop-value%::pos2} is {_w}:
                        set {_} to true
                if {_} isn't true:
                    remove {_w} from {arena::worlds::*}
            send "&aUstawiles pozycje &7%arg 3% &aportalu na arene &7%arg 2% &ana koordynaty &7%location of targeted block%&a!"
            stop
        if arg 1 is "edit":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            set {arena::location::%arg 2%} to location of player
            send "&aZmieniles pozycje areny &7%arg 2% &ana koordynaty &7%location of player% &aw swiecie &7%player's world%&a!"
            stop
        if arg 1 is "inv":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            send "&aOtwieranie ekwipunku areny: &7%arg 2%&a.."
            open chest with 4 rows named "&cEkwipunek na arenie: &7%arg 2%" to player
            wait 1 tick
            set {_s} to 0
            loop {arena::inv::%arg 2%::holding::*}:
                set slot {_s} of current inventory of player to loop-value
                add 1 to {_s}
            set {arena::invopen::%player%} to arg 2
            while inventory name of player is "&cEkwipunek na arenie: &7%arg 2%":
                set {arena::invopen::%player%} to arg 2
                wait 5 tick
            delete {arena::invopen::%player%}
            stop
        if arg 1 is "armor":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            
        if arg 1 is "msg":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            if arg 3 is not set:
                if {arena::msg::%arg 2%} is not set:
                    send "&aAktualna wiadomosc dolaczenia do areny &7%arg 2% &ato: &eDolaczyles na arene &c%arg 2%&e!"
                else:
                    send "&aAktualna wiadomosc dolaczenia do areny &7%arg 2% &ato: &r%colored {arena::msg::%arg 2%}%"
                send "&aAby zmienic wiadomosc wpisz &7/arena msg %arg 2% <wiadomosc>"
                stop
            set {arena::msg::%arg 2%} to arg 3
            send "&aNowa wiadomosc dolaczenia do areny &7%arg 2% &ato: &r%colored arg 3%&a!"
            stop
        if arg 1 is "clearmsg":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            delete {arena::msg::%arg 2%}
            send "&aUsunales wiadomosc dolaczenia do areny &7%arg 2%&a!"
            stop
        if arg 1 is "remove":
            if arg 2 is not set:
                function "errMsg" {player}
                stop
            if {arena::list::*} doesn't contain arg 2:
                send "&cNie ma takiej areny!"
                stop
            remove arg 2 from {arena::list::*}
            delete {arena::location::%arg 2%}
            set {_w1} to {arena::world::%arg 2%::pos1}
            set {_w2} to {arena::world::%arg 2%::pos2}
            delete {arena::world::%arg 2%::pos1}
            delete {arena::world::%arg 2%::pos2}
            delete {arena::portal::%arg 2%::pos1}
            delete {arena::portal::%arg 2%::pos2}
            send "&aUsunales arene &7%arg 2%&a!"
            loop {arena::list::*}:
                if {arena::world::%loop-value%::pos1} is {_w1}:
                    set {_1} to true
                if {arena::world::%loop-value%::pos1} is {_w2}:
                    set {_2} to true
                if {arena::world::%loop-value%::pos2} is {_w1}:
                    set {_1} to true
                if {arena::world::%loop-value%::pos2} is {_w2}:
                    set {_2} to true
            if {_1} isn't true:
                remove {_w1} from {arena::worlds::*}
            if {_2} isn't true:
                remove {_w2} from {arena::worlds::*}
            stop
        if arg 1 is "cleardata":
            send "&aJesli jestes pewny ze chcesz wyczyscic konfiguracje wpisz &7/arena imsure&a!"
            stop
        if arg 1 is "imsure":
            delete {arena::*}
            send "&aWyczysciles konfiguracje!"
            stop
        else:
            function "errMsg" {player}
            stop

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Ktos moze to dokończyc zeby mozna było robic portal i zeby byla komenda setkit i ustawia eq na daną arene ?

Odnośnik do komentarza
https://skript.pl/temat/10600-arene-itemy/#findComment-78247
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ę...