Skocz do zawartości
  • 0

efekty od prota


brvads

Pytanie

Potrzebuje skryptu, który daje efekty od prota na częściach setach.
 

Bania - 50prot+ jump boost, 100prot+ jump boost 2
Klata - 50prot+ rezystancje, 100prot+ rezystancje 2
spodnie - 50prot+ regeneracje, 100prot+ regeneracje 2
buty - 50prot+ speed, 100prot+ speed 2

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/
Udostępnij na innych stronach

18 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
26 minut temu, brvads napisał:

Potrzebuje skryptu, który daje efekty od prota na częściach setach.
 

Bania - 50prot+ jump boost, 100prot+ jump boost 2
Klata - 50prot+ rezystancje, 100prot+ rezystancje 2
spodnie - 50prot+ regeneracje, 100prot+ regeneracje 2
buty - 50prot+ speed, 100prot+ speed 2

Proszę, oto skrypt. Wymagany silnik PaperSpigot (lub jakikolwiek jego fork (Tuinity, Purpur, itp.)) oraz dodatek Skript-Paper.

on player change armor:
	if level of protection of past event-item >= 50:
		if past event-item's type is any helmet:
			remove jump boost from player
		else if past event-item's type is any chestplate:
			remove resistance from player
		else if past event-item's type is any leggings:
			remove regeneration from player
		else if past event-item's type is any boots:
			remove speed from player
	level of protection of future event-item >= 50
	if level of protection of future event-item is between 50 and 99:
		set {_t} to 1
	else if level of protection of future event-item >= 100:
		set {_t} to 2
	if future event-item's type is any helmet:
		apply potion of jump boost of tier {_t} to player for 999 days
	else if future event-item's type is any chestplate:
		apply potion of resistance of tier {_t} to player for 999 days
	else if future event-item's type is any leggings:
		apply potion of regeneration of tier {_t} to player for 999 days
	else if future event-item's type is any boots:
		apply potion of speed of tier {_t} to player for 999 days

 

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280868
Udostępnij na innych stronach

  • 0

Proszę kod, nie był testowany:

on armor equip:
	event-item is helmet:
		event-item's level of protection >= 100:
			apply jump boost to the player for 999 days
		else if event-item's level of protection >= 50:
			apply jump boost of tier 2 to the player for 999 days
	event-item is chestplate:
		event-item's level of protection >= 100:
			apply resistance to the player for 999 days
		else if event-item's level of protection >= 50:
			apply resistance of tier 2 to the player for 999 days
	event-item is leggings:
		event-item's level of protection >= 100:
			apply regeneration to the player for 999 days
		else if event-item's level of protection >= 50:
			apply regeneration of tier 2 to the player for 999 days
	event-item is boots:
		event-item's level of protection >= 100:
			apply speed to the player for 999 days
		else if event-item's level of protection >= 50:
			apply speed of tier 2 to the player for 999 days

on armor unequip:
	event-item is helmet:
		event-item's level of protection >= 50:
			remove jump boost from player
	event-item is chestplate:
		event-item's level of protection >= 50:
			remove resistance from player
	event-item is leggings:
		event-item's level of protection >= 50:
			remove regeneration from player
	event-item is boots:
		event-item's level of protection >= 50:
			remove speed from player

 

Nie działa? Podaj: 
- wersja serwera i silnik
- wersję skript i jego dodatków
- błędy z serwera oraz z konsoli

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280869
Udostępnij na innych stronach

  • 0

W obydwóch skryptach jest ten sam błąd, mianowicie na początku. [23:37:05 ERROR]: can't understand this event: on player change armor i on armor equip

Edytowane przez xNightPower_
Nieaktywny

Naprawiam formatowanie na ciemnym stylu.

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280870
Udostępnij na innych stronach

  • 0
2 minuty temu, brvads napisał:

W obydwóch skryptach jest ten sam błąd, mianowicie na początku. [23:37:05 ERROR]: can't understand this event: on player change armor i on armor equip

A spełniasz wymagania? Posiadasz to, co podałem? Pobrałeś ten dodatek?

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280872
Udostępnij na innych stronach

  • 0
8 godzin temu, CoFFeIN04 napisał:

 

1.8.8 paperspigot, 2.5.3, dodatki najaktualniejsze 

 

8 godzin temu, Kormic napisał:

A spełniasz wymagania? Posiadasz to, co podałem? Pobrałeś ten dodatek?

tak

Nieaktywny

Łączę posty.

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280873
Udostępnij na innych stronach

  • 0
1 minutę temu, brvads napisał:

1.8.8 paperspigot, 2.5.3, dodatki najaktualniejsze 

Rozumiem, że 2.5.3 od Matocolotoe?

EDIT:

Co do mojego skryptu, Skript-Paper nie wspiera wersji 1.8, dlatego też trzeba będzie użyć mojego skryptu SkArmorEvent.

Edytowane przez Kormic
Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280875
Udostępnij na innych stronach

  • 0
8 godzin temu, Kormic napisał:

Rozumiem, że 2.5.3 od Matocolotoe?

tak

 

Aaa, dobra myślałem ze mam paperspigota, a okazało się ze mam [23:41:54 INFO]: This server is running CraftBukkit version git-Spigot-db6de12-18fbb24 (MC: 1.8.8) (Implementing API version 1.8.8-R0.1-SNAPSHOT), bo mam serwer jest na localhoscie i byłem święcie przekoanany ze cały czas pracuje na paperspigocie, sorki za problem. 

Nieaktywny

Łączę posty.

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280876
Udostępnij na innych stronach

  • 0

Zapomniałem wspomnieć, że ten event wymaga min. Paper 1.12.2+, jeśli nie masz takiego to musisz skorzystać z SharpSk

EDIT: no to najpierw zobacz jak będzie z paperspigotem

Edytowane przez CoFFeIN04
Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280878
Udostępnij na innych stronach

  • 0
Teraz, brvads napisał:

Macie może download silinika paperspigot 1.8.8, bo trochę się u nich zmieniło i nie moge znalezc nic 

Download wersji 1.8.8 nic nie zmieni, gdyż i tak żaden z tych skryptów nie zadziała.

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280880
Udostępnij na innych stronach

  • 0

https://papermc.io/  -> przycisk DOWNLOADS -> przycisk LEGACY -> przy 1.8.8 klikasz "DOWNLOAD"

 

tak jak mówiłem, wymaga paper 1.12.2+, więc jeszcze dodatek SharpSk

Edytowane przez CoFFeIN04
Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280881
Udostępnij na innych stronach

  • 0
8 godzin temu, Kormic napisał:

Download wersji 1.8.8 nic nie zmieni, gdyż i tak żaden z tych skryptów nie zadziała.

faktycznie jest dalej ten sam błąd

 

8 godzin temu, CoFFeIN04 napisał:

https://papermc.io/  -> przycisk DOWNLOADS -> przycisk LEGACY -> przy 1.8.8 klikasz "DOWNLOAD"

 

tak jak mówiłem, wymaga paper 1.12.2+, więc jeszcze dodatek SharpSk

Dzięki, już znalazłem

 

Może coś z tym skript-paper jest nie tak bo jakieś tam błedy są w konsoli, macie jakiegoś linka do pobrania na wersje 1.8.8?

Nieaktywny

Łączę posty.

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280882
Udostępnij na innych stronach

  • 0
8 godzin temu, CoFFeIN04 napisał:

Wypróbuj mój skrypt, tylko dodaj SharpSK na 1.8.8

oo, działa :) 

 

8 godzin temu, CoFFeIN04 napisał:

Wypróbuj mój skrypt, tylko dodaj SharpSK na 1.8.8

tylko nie działa to z tym tier 2 cały czas jest zwykły efekt bez tieru

Nieaktywny

Łączę posty.

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280886
Udostępnij na innych stronach

  • 0
Teraz, brvads napisał:

tylko nie działa to z tym tier 2 cały czas jest zwykły efekt bez tieru

Moja wersja. Wymagany skrypt SkArmorEvent.

Możesz równie dobrze event podmienić na 'on armor equip' i 'on armor unequip' z SharpSK.

on skae armor equip:
	level of protection of event-item >= 50
	if level of protection of event-item is between 50 and 99:
		set {_t} to 1
	else if level of protection of event-item >= 100:
		set {_t} to 2
	if event-item's type is helmet:
		apply jump boost of tier {_t} to player for 999 days
	else if event-item's type is chestplate:
		apply resistance of tier {_t} to player for 999 days
	else if event-item's type is leggings:
		apply regeneration of tier {_t} to player for 999 days
	else if event-item's type is boots:
		apply speed of tier {_t} to player for 999 days

on skae armor unequip:
	level of protection of event-item >= 50
	if event-item's type is helmet:
		remove jump boost from player
	else if event-item's type is chestplate:
		remove resistance from player
	else if event-item's type is leggings:
		remove regeneration from player
	else if event-item's type is boots:
		remove speed from player

 

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280888
Udostępnij na innych stronach

  • 0
2 minuty temu, Kormic napisał:

Moja wersja. Wymagany skrypt SkArmorEvent.

Możesz równie dobrze event podmienić na 'on armor equip' i 'on armor unequip' z SharpSK.


on skae armor equip:
	level of protection of event-item >= 50
	if level of protection of event-item is between 50 and 99:
		set {_t} to 1
	else if level of protection of event-item >= 100:
		set {_t} to 2
	if event-item's type is helmet:
		apply jump boost of tier {_t} to player for 999 days
	else if event-item's type is chestplate:
		apply resistance of tier {_t} to player for 999 days
	else if event-item's type is leggings:
		apply regeneration of tier {_t} to player for 999 days
	else if event-item's type is boots:
		apply speed of tier {_t} to player for 999 days

on skae armor unequip:
	level of protection of event-item >= 50
	if event-item's type is helmet:
		remove jump boost from player
	else if event-item's type is chestplate:
		remove resistance from player
	else if event-item's type is leggings:
		remove regeneration from player
	else if event-item's type is boots:
		remove speed from player

 

działa, dzięki

Odnośnik do komentarza
https://skript.pl/temat/44744-efekty-od-prota/#findComment-280889
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...