Skocz do zawartości
  • 0

Zapis eq


Wirnowiled

Pytanie

Mam tutaj skrypt:

 

command /pbdolacz:
	trigger:
		set {pozprzedpb.%player%} to the player's location
		execute console command "mvtp %player% paintball"
		stop
command /pbwyjdz:
	trigger:
		set chestplate of the player to air
		wait 3 ticks
		teleport player to {pozprzedpb.%player%}
		stop

 

Chciałbym, aby przy przenoszeniu się do świata "paintball", zapisywało i czyściło mi eq, a po powrocie do do poprzedniej pozycji (linia: teleport player to {pozprzedpb.%player%}), oddawało to co zabrało przy wchodzeniu do świata "paintball". Mam nadzieję, że rozumiecie, o co mi chodzi. :/

Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Zapisuje zbroje i przedmioty 

set {helm.%player%} to "%helmet of player%"set {napiersnik.%player%} to "%chestplate of player%"set {spodnie.%player%} to "%legging of player%"set {buty.%player%} to "%boots of player%"set {inv.%player%} to serialized inventory of player

Oddaje przedmioty:

 

equip the player with {helm.%player%} parsed as itemequip the player with {napiersnik.%player%} parsed as itemequip the player with {spodnie.%player%} parsed as itemequip the player with {buty.%player%} parsed as itemrestore inventory of player from {inv.%player%}
Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135010
Udostępnij na innych stronach

  • 0

@Meksa

[18:47:25] [Server thread/INFO]: [Skript] Reloading pb2.sk...
[18:47:25] [Server thread/ERROR]: Can't understand this expression: 'serialized inventory of player' (pb2.sk, line 7: set {inv.%player%} to serialized inventory of player')
[18:47:25] [Server thread/ERROR]: Can't understand this condition/effect: restore inventory of player from {inv.%player%} (pb2.sk, line 20: restore inventory of player from {inv.%player%}')
[18:47:25] [Server thread/INFO]: [Skript] Encountered 2 errors while reloading pb2.sk!

Nie działa tylko to.

Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135015
Udostępnij na innych stronach

  • 0

Zapisywanie:

loop all items in the player's inventory:    add loop-item to {itemki.%player%::*}    remove loop-item from the player

Oddawanie:

loop {itemki.%player%::*}:    add {itemki.%player%::*} to the player    clear {itemki.%player%::*}

//Edytowano  

 

Edytowane przez Meksa
Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135017
Udostępnij na innych stronach

  • 0
5 minut temu, Wirnowiled napisał:

Do eq wraca tylko item, który był położony jako pierwszy

np. mam w eq kolejno: deski, piasek, stone

przy zapisie zabiera mi wszystko

przy oddawaniu oddaje tylko deski

Zobacz teraz edytowałem

Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135021
Udostępnij na innych stronach

  • 0

Tera wszystko gra, a dałoby się zrobić, aby oddawało itemy w te same sloty co są w eq, bo narazie rzuca wszystkie po kolei (boje się, że jak zapisuje itemy ze zbroją i potem oddaje to zbroja wpada bezposrednio do eq, a jesli mialbym cale eq wypelnione, to nadmiar itemow gdzie by sie podzial?).

Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135023
Udostępnij na innych stronach

  • 0
Teraz, Wirnowiled napisał:

Tera wszystko gra, a dałoby się zrobić, aby oddawało itemy w te same sloty co są w eq, bo narazie rzuca wszystkie po kolei (boje się, że jak zapisuje itemy ze zbroją i potem oddaje to zbroja wpada bezposrednio do eq, a jesli mialbym cale eq wypelnione, to nadmiar itemow gdzie by sie podzial?).

A tego to już nie wiem :/

Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135024
Udostępnij na innych stronach

  • 0
command /pbdolacz:
	trigger:
		loop player's inventory:
			loop 36 times:
				set {slot::%loop-integer%::%player%} to loop-item
		set {pozprzedpb.%player%} to the player's location
		execute console command "mvtp %player% paintball"
		stop
command /pbwyjdz:
	trigger:
		loop 36 times:
			set slot loop-integer to {slot::%loop-integer%::%player%}
		wait 3 ticks
		teleport player to {pozprzedpb.%player%}
		stop

Spróbuj to.. może zadziała

Odnośnik do komentarza
https://skript.pl/temat/19871-zapis-eq/#findComment-135148
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ę...