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

Skrypt na /home i /sethome


MaciekBrym

Rekomendowane odpowiedzi

Opublikowano

Siema mam problem ze skryptem. Gdy wpisuje /sethome 1 i pisze /home 1 działa pięknie lecz jak napisze /sethome las itd. a potem /home 1 lub las żadne nie działa :/
 

 

command /ustawdom [<text>]:
    aliases: sethome
    permission: skript.dom
    trigger:
        if arg 1 is not set:
            set {dom.%player%.dom1} to location of player
            send "&4Ustawiles dom, wroc do niego komenda /home"
            stop
        if arg 1 is set:
            if player has permissions "skript.admin":
                arg is {dom.%player%::*}:    
                    send "&4Poprawiles coordy domu &c%arg 1%"
                    set {dom.%player%.%arg 1%} to location of player    
                    stop
                if arg is not set:
                    send "&cBlad:&4Podaj nazwe domu"
                    stop
                if arg is set:
                    if {dom.%player%.ilosc} is more than 999:
                        send "&cBlad:&4Juz wykorzystales liczbe dostepnych domow"
                    if {dom.%player%.ilosc} is less than 1000:
                        set {dom.%player%.%arg 1%} to location of player
                        add 1 to {dom.%player%.ilosc}
                        send "&4Ustawiles dom &c%arg 1%&4, wroc do niego komenda /home %arg 1%"
                        add arg 1 to {dom.%player%::*}
                        stop
        if arg is set:
            if player has permissions "skript.svip":
                arg is {dom.%player%::*}:    
                    send "&4Poprawiles coordy domu &c%arg 1%&4, wroc do niego komenda /home %arg 1%"
                    set {dom.%player%.%arg 1%} to location of player    
                    stop
                if arg is not set:
                    send "&cBlad:&4Podaj nazwe domu"
                    stop
                if arg is set:
                    if {dom.%player%.ilosc} is more than 4:
                        send "&cBlad:&4Juz wykorzystales liczbe dostepnych domow"
                    if {dom.%player%.ilosc} is less than 5:
                        set {dom.%player%.%arg 1%} to location of player
                        add 1 to {dom.%player%.ilosc}
                        send "&4Ustawiles dom &c%arg 1%&4, wroc do niego komenda /home %arg 1%"
                        add arg 1 to {dom.%player%::*}
                        stop
        if arg is set:
            if player has permissions "skript.vip":
                arg is {dom.%player%::*}:    
                    send "&4Poprawiles coordy domu &c%arg 1%&4, wroc do niego komenda /home %arg 1%"
                    set {dom.%player%.%arg 1%} to location of player
                    stop
                if arg is not set:
                    send "&cBlad:&4Podaj nazwe domu"
                    stop
                if arg is set:
                    if {dom.%player%.ilosc} is more than 2:
                        send "&cBlad:&4Juz wykorzystales liczbe dostepnych domow"
                    if {dom.%player%.ilosc} is less than 3:
                        set {dom.%player%.%arg 1%} to location of player
                        add 1 to {dom.%player%.ilosc}
                        send "&4Ustawiles dom &c%arg 1%&4, wroc do niego komenda /home %arg 1%"
                        add arg 1 to {dom.%player%::*}
                        stop
command /dom [<text>]:
    aliases: home
    permission: skript.domlista
    trigger:
        arg is {dom.%player%::*}:
            teleport player to {dom.%player%.%arg 1%}
            send "&4Witaj w domu %arg 1%"
            stop
        if arg is "home":
            teleport player to {dom.%player%.dom1}
            send "&4Teleport do domu"
            stop
        if arg is not set:
            send "&4Lista domow"
            send "&chome"
            loop {dom.%player%::*}:
                send "&c%loop-value%"
            
command /usundom [<text>]:
    aliases: delhome
    permission: skript.domusun
    trigger:
        if arg 1 is "wszystkie":
            set {dom.%player%.ilosc} to 0
            send "&4Usunales wszystkie domy"
            delete {dom.%player%::*}
            stop
        if arg is not set:
            send "&cBlad:&4Mozesz usunac tylko wszystkie domy! Wpisz /dom aby zobaczyc liste domow"
            stop

 

1377531174-U173186.png

Opublikowano

e ty,po co ci skrypt skoro w pluginie essential masz sethome i home,w permission staw danej randze 

-sethome[2 lub 3]

graphic.png

Opublikowano
        if arg 1 is set:
            if player has permissions "skript.admin":
                arg is {dom.%player%::*}:    
                    send "&4Poprawiles coordy domu &c%arg 1%"
                    set {dom.%player%.%arg 1%} to location of player    
                    stop
                if arg is not set:
                    send "&cBlad:&4Podaj nazwe domu"
                    stop

Nie rozumiem, najpierw piszesz że jest arg, a potem piszesz jeżeli nie ma argumentu a pare linijek wyzej dales jeżeli jest argument, nie rozumiem :D Piszę już taki skrypcik i podsyłam

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Opublikowano

knugi
        if arg 1 is not set:
            set {dom.%player%.dom1} to location of player
            send "&4Ustawiles dom, wroc do niego komenda /home"
            stop

To jest poto aby gracz bez permisji miał dostępny 1 /sethome

        if arg 1 is set:
            if player has permissions "skript.admin":
                arg is {dom.%player%::*}:    
                    send "&4Poprawiles coordy domu &c%arg 1%"
                    set {dom.%player%.%arg 1%} to location of player    
                    stop
                if arg is not set:
                    send "&cBlad:&4Podaj nazwe domu"
                    stop
                if arg is set:
                    if {dom.%player%.ilosc} is more than 999:
                        send "&cBlad:&4Juz wykorzystales liczbe dostepnych domow"
                    if {dom.%player%.ilosc} is less than 1000:
                        set {dom.%player%.%arg 1%} to location of player
                        add 1 to {dom.%player%.ilosc}
                        send "&4Ustawiles dom &c%arg 1%&4, wroc do niego komenda /home %arg 1%"
                        add arg 1 to {dom.%player%::*}
                        stop

A to jest poto aby gracz z permisją skript.admin miał 1000 sethome
 

1377531174-U173186.png

Opublikowano

Zrobiłem tutaj takie coś, nie testowałem, ale łap:

command /ustawdom [<text>]:
	aliases: sethome
	trigger:
		arg 1 is set:
			player has permission "dom.admin":
				arg is not {dom.%arg%.%player%}:
					set {dom.%arg%.%player%} to location of player
					add arg to {%player%.lista.domow::*}
					send "&4Ustawiles dom, mozesz do niego wrocic pod komenda /home"
					stop
				arg is {dom.%arg%.%player%}:
					set {dom.%arg%.%player%} to locationn of player
					send "&4Poprawiles cordy domu %arg%.
					stop
			send "&cNo permission"
			stop
		arg 1 not set:
			set {dom.home.%player%} to location of player
			send "&4Ustawiles dom, mozesz do niego wrocic pod komenda /home"
			player has permission "dom.admin":
				"home" is not {%player%.lista.domow::*}:
					add "home" to {%player%.lista.domow::*"
					stop
				stop
			stop
		stop
command /home [<text>]:
	trigger:
		arg 1 is set:
			player has permission "dom.admin":
				{dom.%arg%.%player%} is set:
					teleport player to {dom.%arg%.%player%}
					send "&4Witaj w domu %arg%!"
					stop
				send "&4Nie masz takiego domu /domlista"
				stop
			send "&cNo permission"
			stop
		arg 1 not set:
			{dom.home.%player%} is set:
				teleport player to {dom.home.%player%}
				send "&cWitaj w domu"
				stop
			send "&cNie posiadasz domu"
			stop
command /domlista:
	aliases: homelist
	trigger:
		player has permission "dom.admin":
			{%player%.lista.domow::*} is set:
				send "&cLista domow:"
				send "%{%player%.lista.domow::*}%"
				stop
			send "&cNie masz domow!"
			stop
		send "&cNo permission"
		stop
command /usundom [<text>]:
	aliases: delhome
	trigger:
		arg 1 is not set:
			player doesn't have permission "dom.admin":
				{dom.home.%player%} is set:
					clear {dom.home.%player%}
					send "&cUsunales dom!"
					stop
				send "&cNie posiadasz domu!"
				stop
			set {dom.%player%.lenght} to lenght of {%player%.lista.domow::*}
			{dom.%player%.lenght} is larger than 1:
				send "&4Wybierz jaki chcesz usunac dom z &c/domlista&4, lub <&cwszystkie&4> aby usunac wszystkie"
				stop
			{dom.%player%.lenght} is 0:
				send "&cNie posiadasz domow!"
				stop
			{dom.%player%.lenght} is 1:
				{dom.home.%player%} is set:
					clear {dom.home.%player%}
					send "&cUsunales swoj dom.
					stop
				send "&4Wybierz jaki chcesz usunac dom z &c/domlista&4, lub <&cwszystkie&4> aby usunac wszystkie"
				stop
			stop
		arg 1 is set:
			player has permission "dom.admin":
				{dom.%arg%.%player%} is set:
					clear {dom.%arg%.%player%}
					send "&cUsunales dom %arg%"
					stop
				send "&cNie ma takiego domu, wpisz /domlista"
				stop
			send "&cNo permission"
			stop
		stop

Liczę na wielkiego + :)

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

  • 1 rok później...
Opublikowano


Masz zarys, pododawaj sobie permissie i podopisuj :P

 

command /sethome [<text>]:

    trigger:

        if arg 1 is set:

            set {home::%player%::%arg 1%} to location of player

            send "&aUstawiles dom: &e%arg 1%

            stop

        else if arg 1 is not set:

            set {home::%player%::home} to location of player

            send "&aUstawiles dom!"

            stop

command /home [<text>]:

    trigger:

        if arg 1 is not set:

            if {home::%player%::home} is set:

                teleport player to {home::%player%::home}"

                send "&aJestes w domu! :)"

                stop

            else:

                send "&aDomyslny dom nie ustawiony! Wpisz &e/Sethome"

                stop

        else if arg 1 is set:

            if {home::%player%::%arg 1%} is set:

                teleport player to {home::%player%::%arg 1%}

                send "&aZostales przeteleportowany do domu: &e%arg 1%"

                stop

             else:

                 send "&aTaki dom nie istnieje!"

                 stop

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...