Skocz do zawartości
  • 0

Odliczanie do okreslonego eventu


Pytanie

Witam tak jak w temacie chcialbym by na actionbarze bylo odliczanie do czasu  np. nowej edycji ktorego ustawie w configu skryptu lub komenda

żeby komenda byla np. /start

i zaczelo odliczac do nowej edycji

i gdy sie rozpocznie ten event czyli ta edycja pisalo na actionbarze EDYCJA SIE ROZPOCZELA!

Z góry dziękuję!

Edytowane przez fitofep
Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
3 minuty temu, xAxee napisał:

every 1 minute:
	if {turbodrop} is set:
		remove 1 from {turbodrop}
		if {turbodrop} is 1:
			send players title "&2&lPE&f&lHC" with subtitle "&7TurboDrop sie &fzakonczyl&8." for 3 seconds
			delete {turbodrop}
			loop all players:
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &c&oWYLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f-1 minut&8."
		else:
			loop all players:
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &a&oWLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f%{turbodrop}% minut&8."

on quit:
	set {back::%player%} to location of player
on join:
	if player's world is "world":
		if {back::%player%} is set:
			teleport player to {back::%player%} in world "world"

 

can understand loop players

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209681
Udostępnij na innych stronach

  • 0
Teraz, fitofep napisał:

can understand loop players

ah... 

every 1 minute:
	if {turbodrop} is set:
		remove 1 from {turbodrop}
		if {turbodrop} is 1:
			delete {turbodrop}
			loop all players:
				send loop-player title "&2&lPE&f&lHC" with subtitle "&7TurboDrop sie &fzakonczyl&8." for 3 seconds
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &c&oWYLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f-1 minut&8."
		else:
			loop all players:
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &a&oWLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f%{turbodrop}% minut&8."

 

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209682
Udostępnij na innych stronach

  • 0
4 minuty temu, xAxee napisał:

every 1 minute:
	if {turbodrop} is set:
		remove 1 from {turbodrop}
		if {turbodrop} is 1:
			send players title "&2&lPE&f&lHC" with subtitle "&7TurboDrop sie &fzakonczyl&8." for 3 seconds
			delete {turbodrop}
			loop all players:
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &c&oWYLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f-1 minut&8."
		else:
			loop all players:
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &a&oWLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f%{turbodrop}% minut&8."

on quit:
	set {back::%player%} to location of player
on join:
	if player's world is "world":
		if {back::%player%} is set:
			teleport player to {back::%player%} in world "world"

 

1. cant understand loop all players

2. nie teleportuje mnie do ostatniego miejsca

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209683
Udostępnij na innych stronach

  • 0
7 minut temu, xAxee napisał:

ah... 


every 1 minute:
	if {turbodrop} is set:
		remove 1 from {turbodrop}
		if {turbodrop} is 1:
			delete {turbodrop}
			loop all players:
				send loop-player title "&2&lPE&f&lHC" with subtitle "&7TurboDrop sie &fzakonczyl&8." for 3 seconds
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &c&oWYLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f-1 minut&8."
		else:
			loop all players:
				if inventory name of current inventory of loop-player is "&2&lPE&f&lHC &8- &fDrop":
					set loop-player's current inventory's slot 21 to gold pickaxe named "&8» &fSystem TurboDrop &8«" with lore "&c ||&8» &7TurboDrop: &a&oWLACZONY&f*||&8» &7TurboDrop zakonczy sie za: &f%{turbodrop}% minut&8."

 

dobra to understand juz dziala

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209684
Udostępnij na innych stronach

  • 0
1 minutę temu, fitofep napisał:

dobra to understand juz dziala

aha bo przy quit nie jest sprawdzany swiat xd

on quit:
	if player's world is "world":
		set {back::%player%} to location of player
on join:
	if {back::%player%} is set:
		teleport player to {back::%player%} in world "world"

 

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209685
Udostępnij na innych stronach

  • 0
1 minutę temu, xAxee napisał:

aha bo przy quit nie jest sprawdzany swiat xd


on quit:
	if player's world is "world":
		set {back::%player%} to location of player
on join:
	if {back::%player%} is set:
		teleport player to {back::%player%} in world "world"

 

variables cannot be used here. (onjoin.sk, line 6: teleport player to (back::%player%} in world "world"

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209686
Udostępnij na innych stronach

  • 0
Teraz, xAxee napisał:

w zmiennej dałeś ( a nie }

jest tak:

on quit:
    if player's world is "world":
        set {back::%player%} to location of player
on join:
    if {back::%player%} is set:
        teleport player to {back::%player%} in world "world"

Odnośnik do komentarza
https://skript.pl/temat/32245-odliczanie-do-okreslonego-eventu/#findComment-209690
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ę...