Skocz do zawartości
  • 0

Pokazywanie itemu na chacie


Gość Mirejdz

Pytanie

Witam, mam problem gdyż robię skrypt aby napisaniu na chacie [item] przez gracza zamieniało mu na nazwę itemu który trzyma w ręce, ilość oraz jeżeli ma enchanty np. Sharpness 30 i smite 15 to wyświetla się 30/15

Tutaj kod:

on chat:
	replace all "[item]" with "%name of player's tool% %number%" in the message

I " name of player's tool " działa jednak dalej już nie działa

Chodzi mi o to np. co by było Napisane kiedy gracz by miał miecz z enchantem sharpness 30 smite 15 i bane of arthropods 10

Miecz Zaglady 30/15/10 (x1)

Odnośnik do komentarza
https://skript.pl/temat/29918-pokazywanie-itemu-na-chacie/
Udostępnij na innych stronach

13 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on chat:
	set {_e} to enchant of player's tool
	set {_i} to "%player's tool% %name of player's tool% %lore of player's tool%"
	set {_s} to number of player's tool in the player's inventory
	replace all "sharpness" and "smite" and "fire aspect" and "bane and arthropods" with "/" in {_e}
	replace all "<INNE ENCHANTY oddzielaj and>" with "/" in {_e}
	replace all "[item]" with "%{_s}%x &6%{_i}% %{_e}%" in message

 

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/29918-pokazywanie-itemu-na-chacie/#findComment-196368
Udostępnij na innych stronach

  • 0
on chat:
	set {_x} to "%player's tool%"
	set {_x} to first 2 characters of {_x}
	replace all " " in {_x} with ""
	set {_x} to {_x} parsed as integer
	replace all "[item]" with "%name of player's tool% %enchant of player's tool% (%{_x}%)" in the message

Tą część z liczeniem przedmiotu, wziąłem od knugiego.

Odnośnik do komentarza
https://skript.pl/temat/29918-pokazywanie-itemu-na-chacie/#findComment-196369
Udostępnij na innych stronach

  • 0
1 minutę temu, Mirejdz napisał:

@xAxee

To jest bląd w tym 


%enchanted of player's tool%

a teraz? 

on chat:
	set {_e} to enchant of player's tool
	set {_i} to "%player's tool% %name of player's tool% %lore of player's tool%"
	set {_s} to number of player's tool in the player's inventory
	replace all "sharpness" and "smite" and "fire aspect" and "bane and arthropods" with "/" in {_e}
	replace all "<INNE ENCHANTY oddzielaj and>" with "/" in {_e}
	replace all "[item]" with "%{_s}%x &6%{_i}% %{_e}%" in message

 

Odnośnik do komentarza
https://skript.pl/temat/29918-pokazywanie-itemu-na-chacie/#findComment-196372
Udostępnij na innych stronach

  • 0
on chat:
	set {_x} to "%player's tool%"
	set {_x} to first 2 characters of {_x}
	replace all " " in {_x} with ""
	set {_x} to {_x} parsed as integer
	set {_l} to enchantment of player's tool
	replace all "[item]" with "%name of player's tool% %{_l}% (%{_x}%)" in the message

 

Odnośnik do komentarza
https://skript.pl/temat/29918-pokazywanie-itemu-na-chacie/#findComment-196375
Udostępnij na innych stronach

  • 0

emm dziala jednak wolalbym zeby nie pisalo diamond sword of sharpness 10 tylko np Miecz Zagłady 30/15/10 (x1) te numer itemu dziala jednak enchanty nie

EDIT:

Em moj kolega mowil ze mozna jakas do tego skellet plugin wykorzystac

 

 

Edytowane przez Mirejdz
Odnośnik do komentarza
https://skript.pl/temat/29918-pokazywanie-itemu-na-chacie/#findComment-196385
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ę...