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] Z pisaniem skryptu na gildie


Rekomendowane odpowiedzi

Opublikowano

Jak w temacie, mam problem z pisaniem skryptu na gildie. Nie wiem jak dodać usunięcie gildi, mój kod:

variables:
	{gildia.%player%.status} = false
	
command /gildia [<text>] [<text>] [<text>]:
	aliases: g
	trigger:
		if argument 1 is not set:
			message "=========================================="
			message "  "
			message "&6 /gildia stworz&8  &4TAG NAZWA &8- Tworzy nowa gildie"
			message "&6 /gildia dolacz&8 &4TAG &8- Dolaczenie do gildi"
			message "&6 /gildia opusc&8 &8- Opuszczenie gildi"
			message "&6 /gildia zapros&8 &4NICK &8- Zaprasza gracza do gildii"
			message "&6 /gildia wyrzuc&8 &4NICK &8- Wyrzucasz gracza z gildii"
			message "&6 /gildia usun&8- Usuwasz swoja gildie"
			message "  "
			message "=========================================="			
		argument 1 is "stworz":
			if argument 2 is set:
				if argument 3 is set:
					if {gildia.%argument 2%.tag} is not set:
						if {gildia.%argument 3%.nazwa} is not set:
							if player has 64 Diamond:
								if {gildia.%player%.status} is false:
									set {gildia.%player%.status} to true
									set {gildia.%player%.tag} to argument 2
									remove 64 Diamond from player
									set {gildia.%argument 2%.tag} to argument 2
									set {gildia.%argument 2%.nazwa} to argument 3
									set {gildia.%argument 2%.dom} to location of player
									make console execute command "pex user %name of player% add worldguard.*"
									make console execute command "pex user %name of player% add worldedit.*"
									make console execute command "pex reload"
									wait 1 tick
									make player execute command "//pos1"
									make player execute command "//pos2"
									wait 1 tick
									make player execute command "//expand 50 n"
									make player execute command "//expand 50 s"
									make player execute command "//expand 50 w"
									make player execute command "//expand 50 e"
									make player execute command "//expand vert"
									wait 1 tick
									make player execute command "/rg define gildia-%argument 2%"
									wait 1 tick
									make player execute command "/rg addowner gildia-%argument 2% %name of player%"
									make player execute command "/rg flag gildia-%name of player% use allow"
									wait 1 tick
									make player execute command "/rg flag gildia-%argument 2% farewell &7Opuszczono teren gildii: &c%argument 2%"
									make player execute command "/rg flag gildia-%argument 2% greeting &7Opuszczono teren gildii: &c%argument 2%"
									make console execute command "pex user %name of player% remove worldguard.*"
									make console execute command "pex user %name of player% remove worldedit.*"
									make console execute command "pex reload"
									loop 100 times:
									message " "
									set {gildia.%argument 2%.lider} to player
									broadcast "&aGracz &7%name of player% &astworzyl gildie &4%argument 2%"
									message "&6Twoja gildia otrzymala teren"
								else:
									message "&6Jestes juz w gildii!"
							else:
								message "&6Aby utworzyc gildie, musisz posiadac wymagane itemy."
						else:
							message "&6Istnieje juz gildia o nazwie &8%argument 3%"
					else:
						message "&6Istnieje juz gildia o tagu &8%argument 2%"
				else:
					message "&6Uzycie: &9/gildia stworz &4TAG NAZWA"
			else:
				message "&6Uzycie: &9/gildia stworz &4TAG NAZWA"
		argument 1 is "usun":
			if {gildia.%player%.status} is true:
				set {gildia.%player%.status} to falses
				stop

Co muszę dopisać do usun aby usuneło całkowicie wszystkie varibles (tag i nazwe gildi) bo to co jest wyżej to po usunięciu nie moge stworzyć gildi, która się nazywała tak samo jak ta co ją usunołem.

─────────────────────────────────────────────────────────────────────────────


Moderator to usuwa. EHE...


─────────────────────────────────────────────────────────────────────────────

Opublikowano

Nie nic nie zmienia, mój błąd. Ale jest to samo.

 

Po za tym ta część odpowiada za to czy gracz ma być brany pod uwagę jako FreeKill czy Gracz mający gildie.

─────────────────────────────────────────────────────────────────────────────


Moderator to usuwa. EHE...


─────────────────────────────────────────────────────────────────────────────

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...