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] Skript - zestawy.


Rekomendowane odpowiedzi

Opublikowano

Witam!

Mój problem polega na tym, że wpisując komendę "/zestaw vip" gracz otrzymuje zestaw domyślny (czyli gracz) i zestaw vipa :(

 

Macie tutaj skrypt:

options:
	logo: ****
command /zestaw [<text>]:
	aliases: kit, z
	permission message: &4Brak uprawnien!
	permission: zestawy.all
	trigger:
		if arg 1 is "gracz":
		player has permission "zestaw.gracz":
			add leather chestplate named "&a&lNapiersnik &7&lGracza" to player's inventory
			add leather boots named "&a&lButy &7&lGracza" to player's inventory
			add leather leggings named "&a&lSpodnie &7&lGracza" to player's inventory
			add leather helmet named "&a&lHelm &7&lGracza" to player's inventory
			send "{@logo} &aOtrzymales zestaw &7&lGracza"
		if arg 1 is "vip":
		player has permission "zestaw.vip":
			add iron chestplate named "&a&lNapiersnik &e&lVIP" to player's inventory
			add iron boots named "&a&lButy &e&lVIP" to player's inventory
			add iron leggings named "&a&lSpodnie &e&lVIP" to player's inventory
			add iron helmet named "&a&lHelm &e&lVIP" to player's inventory
			send "{@logo} &aOtrzymales zestaw &e&lVIP"
		if arg 1 is "svip":
		player has permission "zestaw.supervip":
			add iron chestplate with enchant protection 2 named "&a&lNapiersnik &5&lSuper&e&lVIP" to player's inventory
			add iron boots enchanted protection 2 named "&a&lButy &5&lSuper&e&lVIP" to player's inventory
			add iron leggings enchanted protection 2 named "&a&lSpodnie &5Super&e&lVIP" to player's inventory
			add iron helmet enchanted protection 2 named "&a&lHelm &5&lSuper&e&lVIP" to player's inventory

Za pomoc daję plusiki :)

serwer_ourmc.gif

Opublikowano
options:
	logo: ****
command /zestaw [<text>]:
	aliases: kit, z
	permission message: &4Brak uprawnien!
	permission: zestawy.all
	trigger:
		if arg 1 is "gracz":
			player has permission "zestaw.gracz":
				add leather chestplate named "&a&lNapiersnik &7&lGracza" to player's inventory
				add leather boots named "&a&lButy &7&lGracza" to player's inventory
				add leather leggings named "&a&lSpodnie &7&lGracza" to player's inventory
				add leather helmet named "&a&lHelm &7&lGracza" to player's inventory
				send "{@logo} &aOtrzymales zestaw &7&lGracza"
		if arg 1 is "vip":
			player has permission "zestaw.vip":
				add iron chestplate named "&a&lNapiersnik &e&lVIP" to player's inventory
				add iron boots named "&a&lButy &e&lVIP" to player's inventory
				add iron leggings named "&a&lSpodnie &e&lVIP" to player's inventory
				add iron helmet named "&a&lHelm &e&lVIP" to player's inventory
				send "{@logo} &aOtrzymales zestaw &e&lVIP"
		if arg 1 is "svip":
			player has permission "zestaw.supervip":
				add iron chestplate of protection 2 named "&a&lNapiersnik &5&lSuper&e&lVIP" to player's inventory
				add iron boots of protection 2 named "&a&lButy &5&lSuper&e&lVIP" to player's inventory
				add iron leggings of protection 2 named "&a&lSpodnie &5Super&e&lVIP" to player's inventory
				add iron helmet of protection 2 named "&a&lHelm &5&lSuper&e&lVIP" to player's inventory

Proszę bardzo :)

Opublikowano

Awww, faktycznie, nie ogarnąłem, że trzeba wytabować :( Mój błąd...

 

A teraz kolejne pytanko, dało by się zrobić coś takiego, mięsko czy tam ciasto zaczarowane na Infinity 1 ?

serwer_ourmc.gif

Opublikowano

Musiałbyś Użyć innego pluginu na enchanty np . TimTheEnchater bo Essentials , czy standardowy Bukkit nie umożliwia. 

He? Lepiej się nie wypowiadaj jeżeli nie wiesz...

give 1 bow of infinity 1 to the player

1394047278-U990178.png

Opublikowano

Niestety Musisz Użyć Uprawnienia :( Gdy dodawałem Kod Który odpowiada Za Nazwę Itemu ,  to po zjedzeniu Nie Pobierało go . masz Kod :

on eat of cooked porkchop:	
	if player has permissions "Test":
		remove 1 cooked porkchop from player
		add 1 cooked porkchop to player
Opublikowano
command /Kebab:
	trigger:
		give a 320 of infinity 1 named "&2sKebab" to the player
	


on eat of cooked porkchop:
	if name of player's tool is "&2sKebab":
		remove 1 320 named "&2sKebab" from player
		give a 320 of infinity 1 named "&2sKebab" to the player

Jezeli oto chodzi daj like ;)

Opublikowano

@up

Zgłoszony za spam.

 

@2up

A nie dało by się zrobić jedzenia bez końca? Czyli bez zbędnego dodawania itemu? Ale dobra, nie będę wybredny i wezmę to :)

serwer_ourmc.gif

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...