Ir para conteúdo

Krl que skript foda #2


iVictor777z

Posts Recomendados

Olá, novamente venho trazer um skript foda dos gringos ... Bom, ele é um healthbar EM SKRIPT!

 

Código Fonte:

 

 

 

# Help
#     Permissions:
#         healthbar.notify = Be notified on issues with the script
options:
# Global Settings
	Health Bar: classic # Change to a desired healthbar, see below for details
		# default = if nothing below is provided the healthbar defaults to this. A new take on classic
		# classic = just like the good old days! Simply shows hearts but with more configuration!
		# informational = much more text based includes far more accurate numbers instead of symbols
#	Damage Indicators: false # REQUIRES SKRAYFALL, HOLOGRAPHIC DISPLAYS & HEALTHBARINDICATORS
# Default Health Bar
#	Default Icon: &4❤
#	Default Icon Damaged: &c❤ # The icon for half hearts
#	Default Icon Depleted: &0❤ # The icon for missing health
#	Default Bar Size: 5 # The size of the default health bar
#	Default Timer: 3 seconds # The amount of time it takes for a health bar to dissapear
# Classic Health Bar
	Classic Icon: &4❤
	Classic Icon Depleted: &0❤ # The icon for missing health
	Classic Timer: 3 seconds # The amount of time it takes for a health bar to dissapear
#-----------------------------------------------------------------------#
# Code below: edit if you would like but be cautious it can cause issues
#-----------------------------------------------------------------------#
damage:
	victim is a player:
		attacker is not a player
		name of attacker is set
		set {_name} to "%coloured name of attacker%"
		delete name of attacker
		wait 1 tick
		set name of attacker to "%{_name}%"
		stop
	attacker is a player
	wait 2 ticks
	name of victim does not contain "{@Classic Icon}":
		set {_previousname} to "%coloured name of victim%"
	"{@Health Bar}" is "classic":
		set {_bar} to ""
		loop max health of victim times:
			set {_value} to loop-value
			if health of victim is less than {_value} -0.5:
				if loop-value is 1:
					health of victim is 0:
						set {_bar} to "%{_bar}%{@Classic Icon Depleted}"
					else:
						set {_bar} to "%{_bar}%{@Classic Icon}"
				else:
					set {_bar} to "%{_bar}%{@Classic Icon Depleted}"
			else:
				set {_bar} to "%{_bar}%{@Classic Icon}"
			set {_name} to "%{_bar}%"
			set name of victim to "%{_name}%"
		wait {@Classic Timer}
		name of victim is "%{_name}%":
			delete name of victim
		else:
			{_previousname} is set
			while victim is alive:
				name of victim is not set:
					set name of victim to {_previousname}
					stop
				wait 1 tick
#	else:
#		set {_bar} to ""
#		loop {@Default Bar Size} times:
#			loop-value is greater than (max health of victim - health of victim) + ({@Default Bar Size} - max health of victim):
#				set {_bar} to "%{_bar}%{@Default Icon Depleted}"
#			else:
#				set {_bar} to "%{_bar}%{@Default Icon}"
#		send "Health = &a%health of victim%/%max health of victim%" to attacker
#		set {_p} to "%health of victim / max health of victim%"
#		replace all "0." in {_p} with ""
#		length of {_p} is less than 2:
#			set {_p} to "%{_p}%0"
#		send "Percent = &a%{_p}%%%" to attacker
#		send "Quality = &a%(max health of victim - health of victim) + ({@Default Bar Size} - max health of victim)%" to attacker
#		send "Adder &a%{@Default Bar Size} - max health of victim%" to attacker
#		set name of victim to "%{_bar}%"

 

 

 

Screenshots: (DA BUKKIT DEV)

 

913fd0f47b1b44b6a6138e6a1f21ebd7.png

Link para o comentário
Compartilhar em outros sites

Como instalo Skript ? sou nb, só sei de plugin :c

 

1° - Requer Skript instalado no Servidor. Abaixe em https://dev.bukkit.org/bukkit-plugins/skript/files

2° - Inicie o servidor 1 vez para que o Skript faça as pastas dele.

3° - Abra a pasta que o Skript fez, Skript/scripts/

4° - Já baixou o Skript que você quer? Se sim agora mova o arquivo "NomeQueVocêDeu.sk" para aquela pasta que citei no 3° passo.

5° - Abra o servidor e divirta-se!

Link para o comentário
Compartilhar em outros sites

Participe da Conversa

Você pode postar agora e se cadastrar mais tarde. Se você tiver uma conta, a class='ipsType_brandedLink' href='https://gamersboard.com.br/login/' data-ipsDialog data-ipsDialog-size='medium' data-ipsDialog-title='Sign In Now'>acesse agora para postar com sua conta.
Observação: sua postagem exigirá aprovação do moderador antes de ficar visível.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.

Processando...
×
×
  • Criar Novo...