Skocz do zawartości
  • 0

Potrzebuje skrypt na exp i lvl z mobow!


Pytanie

Cześć. Potrzebuje skrypt na exp i lvle z mobow. Wygladaloby to tak, ze za zabicie moba z nazwa np. zombie lvl 1, dostawal bym 5 expa za zombie lvl 2 10 expa itp. na 2 lvl bym potrzebowal 50 expa, na 3 100, na 4 200 itp. Na czacie by pisalo jaki lvl bym mial. Pisala by sie do mnie i na czacie wiadomosc jaki lvl wbilem. Z gory dzieki :) 

Odnośnik do komentarza
https://skript.pl/temat/21672-potrzebuje-skrypt-na-exp-i-lvl-z-mobow/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

jesli w nicku moba jest "LvL" mozna to zmienic w 10 linijce kodu i jest w nicku liczba to oznacza jej level przyklad

mob nazywa sie "zombiaczek LvL1" BLAD!

mob nazywa sie "zombiaczek LvL 1" PRPRAWNE

 

Spoiler

on join:
	if {neededExp::%player%} is not set:
		set {neededExp::%player%} to 50
	if {currentExp::%player%} is not set:
		set {currentExp::%player%} to 0
	if {level::%player%} is not set:
		set {level::%player%} to 1
on death of zombie:
	if attacker is a player:
		if vicitm's name contains "LvL"
			set {_name::*} to victim's name split at " "
			loop {_name::*}:
				loop-value parsed as integer is set:
					set {_lvl} to loop-value parsed as integer
			if {_lvl} is set:
				if {neededExp::%attacker%} is not set:
					set {neededExp::%attacker%} to 50
				if {currentExp::%attacker%} is not set:
					set {currentExp::%attacker%} to 0
				if {level::%attacker%} is not set:
					set {level::%attacker%} to 1
				add {_lvl}*5 to {currentExp::%attacker%}
				if {currentExp::%attacker%} >= {neededExp::%attacker%}:
					remove {neededExp::%attacker%} from {currentExp::%attacker%}
					set {neededExp::%attacker%} to {neededExp::%attacker%}*2
					add 1 to {level::%attacker%}
					broadcast ""
					broadcast "&2Gracz &3%attacker%&2 awansowal na &6%{level::%attacker%}% level"
					broadcast ""
on chat:
	cancel event
	broadcast "&e[%{level::%player%}%] &3%player%: &7%message%"

 

 

Odnośnik do komentarza
https://skript.pl/temat/21672-potrzebuje-skrypt-na-exp-i-lvl-z-mobow/#findComment-147612
Udostępnij na innych stronach

  • 0
Godzinę temu, kaol48s napisał:

jesli w nicku moba jest "LvL" mozna to zmienic w 10 linijce kodu i jest w nicku liczba to oznacza jej level przyklad

mob nazywa sie "zombiaczek LvL1" BLAD!

mob nazywa sie "zombiaczek LvL 1" PRPRAWNE

 

  Ukryj zawartość


on join:
	if {neededExp::%player%} is not set:
		set {neededExp::%player%} to 50
	if {currentExp::%player%} is not set:
		set {currentExp::%player%} to 0
	if {level::%player%} is not set:
		set {level::%player%} to 1
on death of zombie:
	if attacker is a player:
		if vicitm's name contains "LvL"
			set {_name::*} to victim's name split at " "
			loop {_name::*}:
				loop-value parsed as integer is set:
					set {_lvl} to loop-value parsed as integer
			if {_lvl} is set:
				if {neededExp::%attacker%} is not set:
					set {neededExp::%attacker%} to 50
				if {currentExp::%attacker%} is not set:
					set {currentExp::%attacker%} to 0
				if {level::%attacker%} is not set:
					set {level::%attacker%} to 1
				add {_lvl}*5 to {currentExp::%attacker%}
				if {currentExp::%attacker%} >= {neededExp::%attacker%}:
					remove {neededExp::%attacker%} from {currentExp::%attacker%}
					set {neededExp::%attacker%} to {neededExp::%attacker%}*2
					add 1 to {level::%attacker%}
					broadcast ""
					broadcast "&2Gracz &3%attacker%&2 awansowal na &6%{level::%attacker%}% level"
					broadcast ""
on chat:
	cancel event
	broadcast "&e[%{level::%player%}%] &3%player%: &7%message%"

 

 

A jak usunąć ten podstawowy exp? To znaczy, żeby leciał tylko ten ze skryptu

Odnośnik do komentarza
https://skript.pl/temat/21672-potrzebuje-skrypt-na-exp-i-lvl-z-mobow/#findComment-147629
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ę...