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 - tym razem na ulepszanie


CevaBikaGaming

Rekomendowane odpowiedzi

Opublikowano

Witam.

 

Potrzebuję skryptu:

 

komenda /ulepsz

 

(tutaj tekst który sobie z edytuję)

 

Komenda /ulepsz miecz

 

50% szans na dodanie 5 do ostrości miecza

 

50% szans na spalenie

 

Komenda /ulepsz kilof

 

50% szans na dodanie 5 do wydajności i 1 do niezniszczalności kilofa

 

50% na spalenie.

 

 

 

Opublikowano

NIE TESTOWANE

command /ulepsz [<text>]:
	trigger:
		if player has permission "ulepsz.sk":
			if arg 1 is set:
				if arg 1 is "miecz":
					if player's tool is diamond sword:
						chance of 50%:
							remove diamond sword from player's inventory
							give diamond sword of sharpness 5
						chance of 50%:
							remove diamond sword from player's inventory
							send "&cTwój miecz został spalony !"
				if arg 1 is "kilof":
					if player's tool is diamond picaxe:
						chance of 50%:
							remove diamond picaxe from player's inventory
							give diamond picaxe of efficiency 5 and unbreaking 1
						chance of 50%:
							remove diamond picaxe from player's inventory
							send "&cTwój kilof został spalony !"
			else:
				repair player's tool
		else:
			send "&cNie masz uprawnień !" 

aby ulepszać, musisz mieć permisje 'ulepsz.sk'

Straszę już forum od

20 CZERWCA 2015r.

Blaaaaaarg*

*Lubię Isaaca, opis Shoopu Da Whoopu

Opublikowano

Nie testowane. Według twoich dyrektyw. Inaczej się chyba nie da.

command /ulepsz [<text>]:
	trigger:
		if player has permission "ulepsz.sk":
			if arg 1 is set:
				if arg 1 is "miecz":
					if player's tool is diamond sword:
						chance of 50%:
							remove diamond sword from player's inventory
							give diamond sword of sharpness 5
						chance of 50%:
							remove diamond sword from player's inventory
							send "&cTwój miecz został spalony !"
					if player's tool is diamond sword of sharpness 1:
						chance of 50%:
							remove diamond sword of sharpness 1 from player's inventory
							give diamond sword of sharpness 6
						chance of 50%:
							remove diamond sword of sharpness 1 from player's inventory
							send "&cTwój miecz został spalony !"
					if player's tool is diamond sword of sharpness 2:
						chance of 50%:
							remove diamond sword of sharpness 2 from player's inventory
							give diamond sword of sharpness 7
						chance of 50%:
							remove diamond sword of sharpness 2 from player's inventory
							send "&cTwój miecz został spalony !"
					if player's tool is diamond sword of sharpness 3:
						chance of 50%:
							remove diamond sword of sharpness 3 from player's inventory
							give diamond sword of sharpness 8
						chance of 50%:
							remove diamond sword of sharpness 3 from player's inventory
							send "&cTwój miecz został spalony !"
					if player's tool is diamond sword of sharpness 4:
						chance of 50%:
							remove diamond sword of sharpness 4 from player's inventory
							give diamond sword of sharpness 9
						chance of 50%:
							remove diamond sword of sharpness 4 from player's inventory
							send "&cTwój miecz został spalony !"
					if player's tool is diamond sword of sharpness 5:
						chance of 50%:
							remove diamond sword of sharpness 5 from player's inventory
							give diamond sword of sharpness 10
						chance of 50%:
							remove diamond sword of sharpness 5 from player's inventory
							send "&cTwój miecz został spalony !"
				if arg 1 is "kilof":
					if player's tool is diamond picaxe:
						chance of 50%:
							remove diamond picaxe from player's inventory
							give diamond picaxe of efficiency 5 and unbreaking 1
						chance of 50%:
							remove diamond picaxe from player's inventory
							send "&cTwój kilof został spalony !"
					if player's tool is diamond picaxe of efficiency 1:
						chance of 50%:
							remove diamond picaxe of efficiency 1 from player's inventory
							give diamond picaxe of efficiency 6 and unbreaking 1
						chance of 50%:
							remove diamond picaxe of efficiency 1 from player's inventory
							send "&cTwój kilof został spalony !"
					if player's tool is diamond picaxe of efficiency 2:
						chance of 50%:
							remove diamond picaxe of efficiency 2 from player's inventory
							give diamond picaxe of efficiency 7 and unbreaking 1
						chance of 50%:
							remove diamond picaxe of efficiency 2 from player's inventory
							send "&cTwój kilof został spalony !"
					if player's tool is diamond picaxe of efficiency 3:
						chance of 50%:
							remove diamond picaxe of efficiency 3 from player's inventory
							give diamond picaxe of efficiency 8 and unbreaking 1
						chance of 50%:
							remove diamond picaxe of efficiency 3 from player's inventory
							send "&cTwój kilof został spalony !"
					if player's tool is diamond picaxe of efficiency 4:
						chance of 50%:
							remove diamond picaxe of efficiency 4 from player's inventory
							give diamond picaxe of efficiency 9
						chance of 50%:
							remove diamond picaxe of efficiency 4 from player's inventory
							send "&cTwój kilof został spalony !"
					if player's tool is diamond picaxe of efficiency 5:
						chance of 50%:
							remove diamond picaxe of efficiency 5 from player's inventory
							give diamond picaxe of efficiency 10
						chance of 50%:
							remove diamond picaxe of efficiency 5 from player's inventory
							send "&cTwój kilof został spalony !"
		else:
			send "&cNie masz uprawnień !"

Jak chcesz jeszcze wyżej enchanty. Kontynuuj wzór:

if player's tool is diamond sword/picaxe of sharpness */efficiency * and unbreaking 1:
	chance of 50%:
		remove *góra* from player's inventory
		give *góra(enchant+1)*
	chance of 50%:
		remove *góra* from player's inventory
		send "&cTwój kilof zostal spalony"

Straszę już forum od

20 CZERWCA 2015r.

Blaaaaaarg*

*Lubię Isaaca, opis Shoopu Da Whoopu

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...