Skocz do zawartości
  • 0

PvPLevels skrypt


Shellowy

Pytanie

Dokladnie chodzi mi o cos takiego jak PvPLevels tylko ze w skrypcie.

Czyli... Aby dostac pierwszy lvl potrzebujemy 1 killa, nastepnie aby dostac 2 lvl potrzebujemy 1 killa, aby dostac 3 lvl potrzebujemy jednego killa i tak dalej... 

Chodzi mi oczywiscie o zabijanie graczy.

Aha, i oczywiscie ze przed nickiem &7[&3(LVL)LvL&7]

I jeszcze jakbyscie mogli to za zabicie gracza:

1 Diament

"Gratulacje, dostales 1 diament za zabicie gracza"

5 Butelek z enchantem

"Gratulacje, dostales 5 butelek z enchantem za zabicie gracza"

50$

"Gratulacje, dostales 50$ za zabicie gracza"

 

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

9 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
variables:
	{lvl::%player%} = 0

on death of a player:
	if attacker is a player:
		add 1 to {lvl::%attacker%}
		give 1 diamond to player
		send "&aGratulacje, zdobyles diament za zabicie gracza!"
		give 5 bottle of enchanting to player
		send "&aGratulacje, zdobyles 5 butelek z expem za zabicie gracza!"
		add 50 to player's balance
		send "&aGratulacje, zdobyles $50 za zabicie gracza!"
		
on chat:
	set message to "&7[&3%{lvl::%player%}%LvL&7]%display name of player% &3» &7%message%"

Iz jestem poczatkujacy, tak mi to wyszlo, nie testowane.

ew. jezeli ci nie pasuje wiadomosc na chacie to zmien sobie ten kawalek kodu " %display name of player% &3» &7%message% "

jezeli nie dziala, daj znac

Edytowane przez Inkrypto
wkradla sie pomylka xD
Odnośnik do komentarza
https://skript.pl/temat/10870-pvplevels-skrypt/#findComment-79604
Udostępnij na innych stronach

  • 0
variables:
	{lvl.%player%} = 0

on death of a player:
	if attacker is a player:
		add 1 to {lvl.%attacker%}
		give 1 diamond  to attacker
		send "&aGratulacje, zdobyles diament za zabicie gracza!" to attacker
		give 5 bottle of enchanting to attacker
		send "&aGratulacje, zdobyles 5 butelek z expem za zabicie gracza!" to attacker
		add 50 to attacker's balance
		send "&aGratulacje, zdobyles $50 za zabicie gracza!" to attacker
		
on chat:
	set message to "&7[&3%{lvl::%player%}%LvL&7]%display name of player% &3» &7%message%"

No gratulacje, tylko w skrypcie były błędy :P

Nie jestem pewien czy przez ten skrypt będą inne perfixy, m. in. rangi

Odnośnik do komentarza
https://skript.pl/temat/10870-pvplevels-skrypt/#findComment-79605
Udostępnij na innych stronach

  • 0

Robione, poprostu w tym gdzies jest blad

set message to "&7[&3%{lvl::%player%}%LvL&7]%display name of player% &3» &7%message%"

Moze w essentialschat jakos to zmienic ?

 

Edytowane przez Shellowy
Odnośnik do komentarza
https://skript.pl/temat/10870-pvplevels-skrypt/#findComment-79610
Udostępnij na innych stronach

  • 0
on death of a player:
	if attacker is a player:
		add 1 to {lvl::%attacker%}
		give 1 diamond to player
		send "&aGratulacje, zdobyles diament za zabicie gracza!"
		give 5 bottle of enchanting to player
		send "&aGratulacje, zdobyles 5 butelek z expem za zabicie gracza!"
		add 50 to player's balance
		send "&aGratulacje, zdobyles $50 za zabicie gracza!"
		
on chat:
	set message to "&7[&3%{lvl::%player%}%LvL&7]%display name of player% &3» &7%message%"
	
on join:
	if {lvl::%player%} is not set:
		set {lvl::%player%} to 0

I /kickall, i ty tez wyjdz i wejdz ;D

Tak btw. daj ip na pw ;D

Oj jednak nie wyjdzie, nie umiem zrobic by sam lvl byl pomiedzy ranga/nickiem, czy cuś.

Sorry.

Z tego co wiem, moze sie myle, essentialschat nie wspolpracuje z sk.

Wszystko to dobre zrobienie skryptu i odpowiednie ustawienie EssentialsChat, wiec moze pasowac.

Edytowane przez Inkrypto
Odnośnik do komentarza
https://skript.pl/temat/10870-pvplevels-skrypt/#findComment-79611
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ę...