Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Problem] Skrypt - nie pokazuje cuboida.


Rekomendowane odpowiedzi

Opublikowano

Witam, mam problem dotyczący skryptu na gildie:

o to kod założenia:

WIEM ,ŻE JEST KRZYWO I JAK WPISUJE /rg info to nie pokazuje cuba..

 

 

       if arg 1 is "zaloz":
                        if arg 2 is set:
                                if arg 3 is set:
                                        if player has {@pay1}:
                                                if player has {@pay2}:
                                                        if player has {@pay3}:
                                                                if player has {@pay4}:
                                                                        if player has {@pay5}:
                                                                                if player has {@pay6}:
                                                                                        if arg 2 is set:
                                                                                                set {nazwa.%player%} to arg 2
                                                                                                if arg 3 is set:
                                                                                                        set {tag.%player%} to arg 3
                                                                                                        send "            &6 Zabezpieczenie &8- &9Tworzenie ..."
                                                                                                        set {pos%player%} to location of player
                                                                                                        set {pos1%player%} to {pos%player%}
                                                                                                        send "&c&l          Nie ruszaj kamera przez 2 sekundy!"
                                                                                                        wait 1 second
                                                                                                        if {_pos} isn't location of player:
                                                                                                                send "    &c&lWykryto ruch, zakladanie anulowane !!"
                                                                                                                stop
                                                                                                        wait 1 second
                                                                                                        set block 0.1 meter above player to dragon egg
                                                                                                        execute console command "//pos1"
                                                                                                        execute console command "//pos2"
                                                                                                        execute console command "//expand 25 n"
                                                                                                        execute console command "//expand 24 s"
                                                                                                        execute console command "//expand 25 w"
                                                                                                        execute console command "//expand 24 e"
                                                                                                        execute console command "//expand vert"
                                                                                                        execute console command "rg define %name of player%"
                                                                                                        execute console command "rg addowner -w world %name of player% %name of player%"
                                                                                                        set {owner%player%} to 1
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "x"
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "x"
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "x"
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "                  &6Zabezpieczenie &8- &aStworzone ..."
                                                                                                        send "            &8Srodek druzyny wyznacza smocze jajko"
                                                                                                        send "    &8Dzialka ma rozmiary &950 x 50.&8 Mozesz ja powiekszac za oplata."
                                                                                                        send "           &8Wiecej informacji pod komenda &9&l/druzyna&8."
                                                                                                        remove {@pay1} from player
                                                                                                        remove {@pay2} from player
                                                                                                        remove {@pay3} from player
                                                                                                        remove {@pay4} from player
                                                                                                        remove {@pay5} from player
                                                                                                        remove {@pay6} from player
                                                                                                        broadcast "&9Gracz &6%player% &9Zalozyl druzyne o nazwie &6%{nazwa.%player%}% &c[&2%{tag.%player%}%&c]"
                                                                                                        set the player's display name to "&6[&c%{tag.%player%}%&6]&7 %name of player%"
                                                                                                        set the player's tablist name to "&c[%{tag.%player%}%]%name of player%"
                                                                                                        add 1 to {limit%player%}
                                                                                                        stop

#---

#

# Drake MpcForum!

#

#---

Opublikowano

UC i guilds jakis zz tych to sa slabe i zbugowane

CPU i5 6600k 4,1GHZ | RAM HyperX SAVAGE 16GB RAMGPU ASUS GTX 1070 ROG STRIX 8GOC |

SSD1 Samsung EVO 850 120GB| SSD2 ADATA SP600 120GB |HDD Toshiba 1TB

Reklama serwera minigames w starym stylu Kliknij tutaj

 

Opublikowano

                                                                                                        execute console command "//pos1"
                                                                                                        execute console command "//pos2"
                                                                                                        execute console command "//expand 25 n"
                                                                                                        execute console command "//expand 24 s"
                                                                                                        execute console command "//expand 25 w"
                                                                                                        execute console command "//expand 24 e"
                                                                                                        execute console command "//expand vert"
                                                                                                        execute console command "rg define %name of player%"
                                                                                                        execute console command "rg addowner -w world %name of player% %name of player%"[/code]

Od kiedy consola może dawać regiony ? o_O 
Tu jest problem consola nie może wyznaczać zaznaczać i dawać regionów ! 

 

Opublikowano

a probowales cos takiego ?
 

 

execute console command "//pos1"
                                                                                                        execute console command "//pos2"
                                                                                                        execute console command "//expand 25 n"
                                                                                                        execute console command "//expand 24 s"
                                                                                                        execute console command "//expand 25 w"
                                                                                                        execute console command "//expand 24 e"
                                                                                                        execute console command "//expand vert"
                                                                                                        execute console command "rg define %name of player%"
                                                                                                        execute console command "rg addowner -w world %name of player% %name of player%"

 Daje Like bo moge 


Minecraft - zarzadzanie-serwerem

  • 7 miesięcy temu...
Opublikowano

Mam ten sam skrypt na gildie i naprawiłem ten problem bo kodowanie (kod skrytpu) jest źle napisany ;)

 

Pomęczyłem się 1h i naprawiłem wszystkie błędy w skrypcie.

Jest tak:

 

Nie tworzy Cuboida bo nie ma jak tego zrobić gracz bez prawa do we i wg, nie doda Ci gracza do cuboida po wpisaniu /g zapros i po wpisaniu /g usun nie usuwa cuboida

 

Tutaj masz cały dobry kod daję CI go z racji że sam mam z neta musisz tylko dopisać kod z usuwaniem cuboida po usunięciu gildii + środek gildii to Ender Crystal:

Jeżeli wiesz jak ustawić sethome dla całej gildii chętnie skorzystam bo tego też nie mam każdy osobno musi ustawiać

 

 

options:
        pay1: 64 diamond
        pay2: 64 emerald
        pay3: 64 golden apple
        pay4: 64 golden carrot
        pay5: 64 bookshelf
        pay6: 16 ender pearl  
on damage of a endercrystal:
    if attacker has permission "skrypt.ender":
        message "Mozesz rozwalic Ender Crystal" to attacker
        stop
    else:
        cancel event
        stop
on rightclick on endercrystal:
    message "&7&l=======&a&l{Informacje}&7&l=========="
    message
    stop
command /itemy:
    trigger:
        send "&9&l===={&a&lPrzedmioty na Gildie&9&l}===="
        send "&6&l1. &3&l64 Diamenty"
        send "&6&l2. &3&l64 Emeraldy"
        send "&6&l3. &3&l64 Zlota Jablka"
        send "&6&l4. &3&l64 Zlote Marchewki"
        send "&6&l5. &3&l64 Biblioteczki"
        send "&6&l6. &3&l16 Perl Kresu"
        stop
command /gildia [<text>] [<text>] [<text>]:
        aliases: g
        permission: guild.default
        trigger:
                if arg 1 is not set:
                        send "&l================================================"
                        send "&3/gildia zaloz <nazwa> <tag> &2- Zaklada Gildie"
                        send "&3/gildia usun &2- Usuwa Gildie"
                        send "&3/gildia zapros <nick> &2- Zaprasza Gracza Do Gildii"
                        send "&3/gildia wyrzuc <nick> &2- Wyrzuca Gracza Z Gildii"
                        send "&3/gildia awansuj <nick> &2- Awansuje gracza na moderatora"
                        send "&3/gildia degraduj <nick> &2- Degraduje moderatora na czlonka"
                        send "&3/itemy &2- Pokazuje liste potrzebnych przedmiotow na Gildie"
                        send "&c&lPamietaj srodek Gildii jest w miejscu ktorym stoisz"
                        send "&l================================================"
                        if player is op:
                                send "&l================================================"
                                send "&3/gildia zaloz <nazwa> <tag> &2- Zaklada Gildie"
                                send "&3/gildia usun &2- Usuwa Gildie"
                                send "&3/gildia zapros <nick> &2- Zaprasza Gracza Do Gildii"
                                send "&3/gildia wyrzuc <nick> &2- Wyrzuca Gracza Z Gildii"
                                send "&3/gildia awansuj <nick> &2- Awansuje gracza na moderatora"
                                send "&3/gildia degraduj <nick> &2- Degraduje moderatora na czlonka"
                                send "&l===========       &cKomendy Admina       &f&l==============="
                                send "&c/gildia przeladuj &2- reloaduje skrypt"
                                send "&l================================================"
                               
                if arg 1 is "przeladuj":
                        send "&2Rozpoczato przeladowywanie NewGuild..."
                        execute console command "sk reload newguild"
                        send "&2NewGuild przeladowano"
                        stop
                if arg 1 is "itemy":
                        send "&2Potrzebujesz: &c{@pay1}, {@pay2}, {@pay3}, {@pay4}, {@pay5}, {@pay6}"
                        stop
                if arg 1 is "zaloz":
                        if arg 2 is set:
                                if arg 3 is set:
                                        if player has {@pay1}:
                                                if player has {@pay2}:
                                                        if player has {@pay3}:
                                                                if player has {@pay4}:
                                                                        if player has {@pay5}:
                                                                                if player has {@pay6}:
                                                                                        if arg 2 is set:
                                                                                                set {nazwa.%player%} to arg 2
                                                                                                if arg 3 is set:
                                                                                                        set {baza.%player%} to location of player
                                                                                                        send "            &7 Zabezpieczenie &8- &aTworzenie ..."
                                                                                                        set {pos%player%} to location of player
                                                                                                        set {pos1%player%} to {pos%player%}
                                                                                                        send "&c&l          Nie ruszaj kamera przez 2 sekundy!"
                                                                                                        wait 1 second
                                                                                                        if {_pos} isn't location of player:
                                                                                                                send "    &c&lWykryto ruch, zakladanie anulowane !!"
                                                                                                                stop
                                                                                                        wait 1 second
                                                                                                        spawn a endercrystal 0.1 meters above the player
                                                                                                        execute console command "pex user %name of player% add worldedit.*"
                                                                                                        execute console command "pex user %name of player% add worldguard.*"
                                                                                                        execute player command "//pos1"
                                                                                                        execute player command "//pos2"
                                                                                                        execute player command "//expand 38 n"
                                                                                                        execute player command "//expand 38 s"
                                                                                                        execute player command "//expand 38 w"
                                                                                                        execute player command "//expand 38 e"
                                                                                                        execute player command "//expand 65 u"
                                                                                                        execute player command "//expand 55 d"
                                                                                                        execute player command "//expand vert"
                                                                                                        execute player command "rg define %name of player%"
                                                                                                        execute player command "rg flag %player% farewell &a>>>&3Wychodzisz z terenu Gildii %arg 2%"
                                                                                                        execute player command "rg flag %player% greeting &a>>>&3Wchodzisz na teren Gildii %arg 2%"
                                                                                                        execute player command "rg addowner -w world %name of player% %name of player%"
                                                                                                        set {owner%player%} to 1
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "x"
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "x"
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        send "x"
                                                                                                        send ""
                                                                                                        send " "
                                                                                                        send "  "
                                                                                                        send "   "
                                                                                                        send "    "
                                                                                                        send "     "
                                                                                                        send "      "
                                                                                                        send "       "
                                                                                                        send "        "
                                                                                                        send "         "
                                                                                                        send "          "
                                                                                                        send "           "
                                                                                                        send "            "
                                                                                                        send "             "
                                                                                                        send "              "
                                                                                                        send "               "
                                                                                                        set {gildia.%arg 3%} to location of player
                                                                                                        send "                   Zabezpieczenie &8- &aStworzone ..."
                                                                                                        send "            &8Srodek gildii wyznacza Ender Crystal"
                                                                                                        send "    &8Dzialka ma rozmiary &c 75 x 75 x 60 x 50"
                                                                                                        send "           &8Wiecej informacji pod komenda &a&l/gildia&8."
                                                                                                        remove {@pay1} from player
                                                                                                        remove {@pay2} from player
                                                                                                        remove {@pay3} from player
                                                                                                        remove {@pay4} from player
                                                                                                        remove {@pay5} from player
                                                                                                        remove {@pay6} from player
                                                                                                        broadcast "&cGracz &6%player% &cZalozyl gildie o nazwie &b%{nazwa.%player%}% &c[&2%{tag.%player%}%&c]"
                                                                                                        set the player's display name to "&6[&c%arg 3%&6]&7 %name of player%"
                                                                                                        set the player's tablist name to "[%arg 3%]%name of player%"
                                                                                                        add 1 to {limit%player%}
                                                                                                        stop
                                                                                else:
                                                                                        send "&cNie posiadasz {@pay6}"
                                                                        else:
                                                                                send "&cNie posiadasz {@pay5}"
                                                                else:
                                                                        send "&cNie posiadasz {@pay4}"
                                                        else:
                                                                send "&cNie posiadasz {@pay3}"
                                                else:
                                                        send "&c Nie posiadsz {@pay2}"
                                        else:
                                                send "&cNie posiadasz {@pay1}"
                                if arg 3 is not set:           
                                        send "&cPodaj tag gildii"      
                        if arg 2 is not set:
                                send "&cPodaj nazwe gildii"                    
                if arg 1 is "zapros":
                        if {owner%player%} or {moderator%player%} is 1:
                                if arg 2 is set:
                                        execute player command "rg addmember %player% %arg 2%"
                                        send "&2Zaprosiles gracza &7%arg 2% do gildii"
                                        broadcast "&2Gracz &7%arg 2% &2zostal zaproszony do gildii &c%{nazwa.%player%}%"
                                        set the player's display name to "&6[%arg 3%&6]&7 %name of player%"
                                        set the player's tablist name to "&c[%{tag.%player%}%]%name of player%"
                                        set {czlonek%arg 2%%{nazwa%player%}%} to 1
                                        send {tag.%player%} to {tag.%arg 2%}
                               
                                else:
                                        send "&cPodales bledny nick, lub gracz nie jest online"
                                if arg 2 is not set:
                                        send "&cPodaj nick gracza"
                        stop
                if arg 1 is "wyrzuc":
                        if {owner%player%} or {moderator%player%} is 1:
                                if arg 2 is set:
                                        execute player command "rg removemember %player% %arg 2%"
                                        send "&2Wyrzuciles gracza &7%arg 2% &2z gildii"
                                        broadcast "&2Gracz &7%arg 2% &2zostal wyrzucony z gildii &c%{nazwa.%player%}%"
                                        set the player's display name to "&7%name of player%"
                                        set the player's tablist name to "&7%name of player%"
                                        set {czlonek%arg 2%%{nazwa%player%}%} to 0
                                else:
                                        send "&cPodales bledny nick, lub gracz nie jest online"
                                if arg 2 is not set:
                                        send "&cPodaj nick gracza"
                        stop
                if arg 1 is "baza":
                        teleport player to {baza.%player%}
                        stop
                if arg 1 is "ustaw":
                        set {baza.%player%} to location of player
                        send "&a&l>>>&3&lUstawiles dom Gildii"
                        stop
                if arg 1 is "usun":
                        if {owner%player%} is 1:
                                execute console command "rg del %name of player%"
                                send "&cUsunoles gildie"
                                broadcast "&2Gracz &7%player% &2usunol gildie &c%{nazwa.%player%}%"
                                broadcast "&2Koordy terenu usunietej gildii to &6%{pos1%player%}%"
                                set the player's display name to "&7%name of player%"
                                set the player's tablist name to "&7%name of player%"
                                set {limit%player%} to 0
                                set {owner%player%} to 0
                        else:
                                send "&cNie posiadasz gildii"
                        stop
                if arg 1 is "awansuj":
                        if  {owner%player%} is 1:
                                if arg 2 is set:
                                        set {moderator%arg 2%} to 1
                                        send "Awansowales %arg 2% na moderatora gildii"
                                else:
                                        send "&cPodales bledny nick gracza, lub gracz nie jest online"
                                if arg 2 is not set:
                                        send "&cPodaj nick gracza"
                        else:
                                send "&cNie jestes zalozycielem gildii"
                if arg 1 is "degraduj":
                        if {owner%player%} is 1:
                                if arg 2 is set:
                                        if {czlonek%arg 2%%{nazwa%player%}%} is 1:
                                                if {moderator%arg 2%} is 1:
                                                        set {moderator%arg 2%} to 0
                                                        send "&cDegradowales %arg 2% do rangi czlonka"
                                                else:
                                                        send "&cGracz nie jest moderatorem gildii"
                                        else:
                                                send "&cGracz nie jest czlonkiem twojej gildi"
                                else:
                                        send "&cPodales bledny nick gracza, lub gracz nie jest online"
                        else:
                                send "7cNie jestes zalozycielem gildii"
                                if {owner%player%} is 0:
                                        send "&cNie posiadasz gildii"  
on command "/gildia zaloz":
        if {owner%player%} is 1:
                if {limit%player%} is 1:
                        send "&cMasz juz jedna gilide"
                        cancel event

 

TEMAT


 


Opublikowano

zamiast execute player.. itd

uzyj z wildskripta

run player command "//pos1" as op

itd.

 

bo inaczej zabawa z permisjami itd.

 

i jak dasz tak jak @pablos11 to nie uzna za spam komendami.

Opublikowano

tam trzeba jeszcze pogrzebać bo są błędy ;) ale niestety poprawiłem tylko to co mi jest potrzebne a i tak kod skryptu jest już sporo zmieniony bo jest w nim sporo problemów

TEMAT


 


Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...