Skocz do zawartości
  • 0

Poprawa


Rafix1423

Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

tu masz lepszą wersje :D

Spoiler

variables:
	{exp::%player%} = 0
	{lvl::%player%} = 1
	{neededExp::2} = 100 #potrzebny exp na lvl 2#
	{neededExp::3} = 250 #potrzebny exp na lvl 3#
	{neededExp::4} = 750 #itd...#
	{neededExp::5} = 1000
	{neededExp::6} = 1200
	{neededExp::7} = 1400
	{neededExp::8} = 1600
	{neededExp::9} = 1800
	{neededExp::10} = 2500
	
command /lvl:
	trigger:
		send "&f&lTwoj Lvl: &b%{lvl::%player%}%"
		send "&f&lTwoj Exp: &b%{exp::%player%}%&8/&a%{neededExp::%{lvl::%player%}+1%}%"
		
command /resetlvl:
	trigger:
		set {lvl::%player%} to 1
		set {pexp::%player%} to 100
		set {exp::%player%} to 0
		
on death:
	if victim is zombie:
		if attacker is player:
			if name of victim is "&4&lMlody Zombie.LvL 1":
				add 15 to {exp::%attacker%}
				send "&a[&2EXP&a] &2Dodano &a15 &bExpa" to attacker
				set {progress.%attacker%} to {exp::%attacker%} / {pexp::%attacker%}
				set level progress of the attacker to {progress.%attacker%}
				set attacker's level to {lvl::%attacker%}
		
#
#LVLE
#				
on death:
	if attacker is a player:
		if victim is a zombie:
			if name of victim is "&4&lMlody Zombie.LvL 1":
				if {exp::%attacker%} >= {neededExp::%{lvl::%attacker%}+1%}:
					add 1 to {lvl::%attacker%}
					send "&aAwansowales na &6%{lvl::%attacker%}% &6LVL" to attacker
			

 

 

Odnośnik do komentarza
https://skript.pl/temat/22154-poprawa/#findComment-151087
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ę...