Skocz do zawartości
  • 0

Skrypt na poziom


Pytanie

Witam. Potrzebuje wraz przesylam wam fajny skrypt : https://code.skript.pl/j6WBad4m/

Mianowicie potrzebuje zeby po &8[&3Poziom {LVL}&8] byla ranga np. Nowy

Potem od 30 lvl'a inna od 60 inna od 100 do 200 inna od 200 do 300 inna itd do i tak do 1000

I zeby to wszystko tak wygladalo:

&8[&3Poziom {LVL}&8] &8[&3Nowy&3] &8[&cWlasciciel&8] &3{PLAYER}&8>>&2&o {MESSAGE}

 

Usuwam prefix, który się przeniósł z działu zleceń //xVendrome

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
6 minut temu, Kaelus napisał:

Te rangi chcesz używając PEX czy jakiegoś innego pluginu ? 

Rangi sa ale ja chce zeby te rangi byly do skryptu

&8[&3Poziom {LVL}&8] &8[&3Nowy&3]

Edytowane przez mateuszeqq13212
Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114032
Udostępnij na innych stronach

  • 0

Coś takiego?

Spoiler

variables:
	{lvl::%player%} = 1
	{exp::%player%} = 0
	{ranga::%player%} = "{@ranga1}"
	{wymag::%player%} = 100
options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
	
	ranga1: "Nowy"
	ranga2: "Nowy2"
	ranga3: "Nowy3"
	ranga4: "Nowy4"
	ranga5: "Nowy5"
	ranga6: "Nowy6"
	ranga7: "Nowy7"
	ranga8: "Nowy8"
	ranga9: "Nowy9"
	ranga10: "Nowy10"
	ranga11: "Nowy11"
	ranga12: "Nowy12"
	ranga13: "Nowy13"
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death:
	if attacker is a player:
		if victim is a zombie:
			add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {wymag::%attacker%}:
			if {lvl::%attacker%} < 999:
				set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 30:
					set {ranga::%attacker%} to "{@ranga2}"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "{@ranga3}"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "{@ranga4}"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "{@ranga5}"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "{@ranga6}"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "{@ranga7}"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "{@ranga8}"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "{@ranga9}"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "{@ranga10}"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "{@ranga11}"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "{@ranga12}"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "{@ranga13}"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({wymag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"

 

 

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114108
Udostępnij na innych stronach

  • 0
2 godziny temu, knugi napisał:

Coś takiego?

  Ukryj zawartość


variables:
	{lvl::%player%} = 1
	{exp::%player%} = 0
	{ranga::%player%} = "{@ranga1}"
	{wymag::%player%} = 100
options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
	
	ranga1: "Nowy"
	ranga2: "Nowy2"
	ranga3: "Nowy3"
	ranga4: "Nowy4"
	ranga5: "Nowy5"
	ranga6: "Nowy6"
	ranga7: "Nowy7"
	ranga8: "Nowy8"
	ranga9: "Nowy9"
	ranga10: "Nowy10"
	ranga11: "Nowy11"
	ranga12: "Nowy12"
	ranga13: "Nowy13"
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death:
	if attacker is a player:
		if victim is a zombie:
			add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {wymag::%attacker%}:
			if {lvl::%attacker%} < 999:
				set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 30:
					set {ranga::%attacker%} to "{@ranga2}"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "{@ranga3}"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "{@ranga4}"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "{@ranga5}"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "{@ranga6}"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "{@ranga7}"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "{@ranga8}"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "{@ranga9}"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "{@ranga10}"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "{@ranga11}"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "{@ranga12}"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "{@ranga13}"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({wymag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"

 

 

bledy z tym Nowy1  [...]

Podam jeden blad:

""Nowy2"" is not a number 'set {ranga::attacker} to {@ranga2"}

Lub cos takiego :P

Edytowane przez mateuszeqq13212
Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114158
Udostępnij na innych stronach

  • 0

Przepraszam, mój błąd :D

Spoiler

variables:
	{lvl::%player%} = 1
	{exp::%player%} = 0
	{ranga::%player%} = "{@ranga1}"
	{wymag::%player%} = 100
options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
	
	ranga1: Nowy
	ranga2: Nowy2
	ranga3: Nowy3
	ranga4: Nowy4
	ranga5: Nowy5
	ranga6: Nowy6
	ranga7: Nowy7
	ranga8: Nowy8
	ranga9: Nowy9
	ranga10: Nowy10
	ranga11: Nowy11
	ranga12: Nowy12
	ranga13: Nowy13
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death:
	if attacker is a player:
		if victim is a zombie:
			add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {wymag::%attacker%}:
			if {lvl::%attacker%} < 999:
				set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 30:
					set {ranga::%attacker%} to "{@ranga2}"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "{@ranga3}"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "{@ranga4}"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "{@ranga5}"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "{@ranga6}"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "{@ranga7}"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "{@ranga8}"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "{@ranga9}"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "{@ranga10}"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "{@ranga11}"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "{@ranga12}"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "{@ranga13}"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({wymag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"

 

Poprawione :)

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114165
Udostępnij na innych stronach

  • 0
1 minutę temu, knugi napisał:

Przepraszam, mój błąd :D

  Ukryj zawartość


variables:
	{lvl::%player%} = 1
	{exp::%player%} = 0
	{ranga::%player%} = "{@ranga1}"
	{wymag::%player%} = 100
options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
	
	ranga1: Nowy
	ranga2: Nowy2
	ranga3: Nowy3
	ranga4: Nowy4
	ranga5: Nowy5
	ranga6: Nowy6
	ranga7: Nowy7
	ranga8: Nowy8
	ranga9: Nowy9
	ranga10: Nowy10
	ranga11: Nowy11
	ranga12: Nowy12
	ranga13: Nowy13
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death:
	if attacker is a player:
		if victim is a zombie:
			add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {wymag::%attacker%}:
			if {lvl::%attacker%} < 999:
				set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 30:
					set {ranga::%attacker%} to "{@ranga2}"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "{@ranga3}"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "{@ranga4}"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "{@ranga5}"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "{@ranga6}"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "{@ranga7}"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "{@ranga8}"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "{@ranga9}"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "{@ranga10}"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "{@ranga11}"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "{@ranga12}"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "{@ranga13}"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({wymag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"

 

Poprawione :)

Tak niby 0 bledow ale gdy cos napisze to jest tak: Poziom 1 {@ranga1}

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114167
Udostępnij na innych stronach

  • 0

Pomogło mi jedynie usunięcie variables.csv :/

A tutaj poprawiony kod :P

Spoiler

variables:
	{lvl::%player%} = 1
	{exp::%player%} = 0
	{ranga::%player%} = "Nowy"
	{wymag::%player%} = 100
options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death:
	if attacker is a player:
		if victim is a zombie:
			add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {wymag::%attacker%}:
			if {lvl::%attacker%} < 999:
				set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 2:
					set {ranga::%attacker%} to "Nowy"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "Nowy1"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "Nowy2"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "Nowy3"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "Nowy4"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "Nowy5"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "Nowy6"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "Nowy7"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "Nowy8"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "Nowy9"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "Nowy10"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "Nowy11"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({wymag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"

 

 

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114175
Udostępnij na innych stronach

  • 0
2 minuty temu, knugi napisał:

Pomogło mi jedynie usunięcie variables.csv :/

A tutaj poprawiony kod :P

  Ukryj zawartość


variables:
	{lvl::%player%} = 1
	{exp::%player%} = 0
	{ranga::%player%} = "Nowy"
	{wymag::%player%} = 100
options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death:
	if attacker is a player:
		if victim is a zombie:
			add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {wymag::%attacker%}:
			if {lvl::%attacker%} < 999:
				set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 2:
					set {ranga::%attacker%} to "Nowy"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "Nowy1"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "Nowy2"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "Nowy3"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "Nowy4"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "Nowy5"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "Nowy6"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "Nowy7"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "Nowy8"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "Nowy9"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "Nowy10"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "Nowy11"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({wymag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"

 

 

Dalej to samo :/ A moze temu ze mam wersje minecraft 1.5.2 ?

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114178
Udostępnij na innych stronach

  • 0
7 minut temu, knugi napisał:

Nie, bo wtedy przywraca Tobie stare variablesy (po prostu trzyma te zmienne i nadpisuje później w pliku)

1. Wyłącz serwer

2. Usuń plik

3. Włącz serwer

Będzie działać ! :)

Dziala ! Ale jest problem bo gdy zabije nwt 20 graczy to nie dodaje mi lvl'u :( Dalej jest 1 poprawisz?

Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114202
Udostępnij na innych stronach

  • 0

Czyli masz to samo co u mnie :P

Skript life is bugged xDD

 

Spoiler

options:
	next: 1,2
	tag: &8[&6Parkour&8]
	chat: &8[&3Poziom {LVL}&8] &8[&3{RANGA}&8] &3{PLAYER}&8>>&2&o {MESSAGE}
on chat:
	cancel event
	set {_chat} to "{@chat}"
	replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
	replace all "{MESSAGE}" with "%colored message%" in {_chat}
	replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
	replace all "{RANGA}" with "%{ranga::%player%}%" in {_chat}
	broadcast "%{_chat}%"
on death of zombie:
	loop all players:
		if "%attacker%" is "%loop-player%":
			set {_x} to true
			exit loop
	if {_x} is set:
		if {expmag::%attacker%} is not set:
			set {lvl::%attacker%} to 1
			set {exp::%attacker%} to 0
			set {ranga::%attacker%} to "Nowy"
			set {expmag::%attacker%} to 100
		add 10 to {exp::%attacker%}
		if {exp::%attacker%} > {expmag::%attacker%}:
			if {lvl::%attacker%} < 1000:
				set {_exp} to ({exp::%attacker%} - {expmag::%attacker%})
				set {exp::%attacker%} to {_exp}
				set {expmag::%attacker%} to (({expmag::%attacker%} / 5 ) * 6)
				add 1 to {lvl::%attacker%}
				send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
				if {lvl::%attacker%} = 10:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
				if {lvl::%attacker%} = 20:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
				if {lvl::%attacker%} = 30:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
				if {lvl::%attacker%} = 40:
					send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
				if {lvl::%attacker%} is 2:
					set {ranga::%attacker%} to "Nowy"
				if {lvl::%attacker%} is 60:
					set {ranga::%attacker%} to "Nowy1"
				if {lvl::%attacker%} is 100:
					set {ranga::%attacker%} to "Nowy2"
				if {lvl::%attacker%} is 200:
					set {ranga::%attacker%} to "Nowy3"
				if {lvl::%attacker%} is 300:
					set {ranga::%attacker%} to "Nowy4"
				if {lvl::%attacker%} is 400:
					set {ranga::%attacker%} to "Nowy5"
				if {lvl::%attacker%} is 500:
					set {ranga::%attacker%} to "Nowy6"
				if {lvl::%attacker%} is 600:
					set {ranga::%attacker%} to "Nowy7"
				if {lvl::%attacker%} is 700:
					set {ranga::%attacker%} to "Nowy8"
				if {lvl::%attacker%} is 800:
					set {ranga::%attacker%} to "Nowy9"
				if {lvl::%attacker%} is 900:
					set {ranga::%attacker%} to "Nowy10"
				if {lvl::%attacker%} is 1000:
					set {ranga::%attacker%} to "Nowy11"
			else:
				send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% expmag&7!" to attacker
			
	   
command /poziom [<text>]:
	trigger:
		set {_next} to ({expmag::%player%} - {exp::%player%})
		send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
		send "&8> &7expmagane: &6%{expmag::%player%}% &6xp"

 

Poprawione, testowane, u mnie działa :)

 

Nie wiem czemu, ale też był błąd ze zmienną wymag, więc zmieniłem ją na expmag

Edytowane przez knugi
Literówka
Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114207
Udostępnij na innych stronach

  • 0

Ej, ale to było na zombie :o

if victim is a zombie:
            add 10 to {exp::%attacker%}

I za każdego zombiaka dostajesz 10 xp

na drugi poziom wymagane jest 100, czyli 10 zombiaków

 

Jeżeli chcesz aby działało na graczy zmień

on death of zombie:

na 

on death of player

Powinno działać :)

Edytowane przez knugi
Cytat + dopisek
Odnośnik do komentarza
https://skript.pl/temat/16684-skrypt-na-poziom/#findComment-114217
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ę...