Skocz do zawartości
  • 0

Level Exp z potworów [PILNE]


Pytanie

Witam tworzę serwer RPG i potrzebuję pomocy mam plugin na spawn mobów i mogę te moby konfigurować w każdy sposób ilość żyć itd.


I chciałbym zrobić tak że gdy mamy 0 lvl exp i gdy zabijemy 20 np.zombie to mamy 1 lvl exp to ile exp ma wypadać z potworów


Odnośnik do komentarza
https://skript.pl/temat/9009-level-exp-z-potwor%C3%B3w-pilne/
Udostępnij na innych stronach

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

variables:

{lvl.%player%} = 1

{xp.%player%} = 0

command /lvl:

trigger:

send "&aTwoj lvl: &f%{lvl.%player%}&a, twoje doswiadczenie: &f%{xp.%player%}%&a."

on death of zombie:

if attacker is a player:

add 1 to {xp.%attacker%}

if {xp.%attacker%} is 10:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f2 lvl&a!"

if {xp.%attacker%} is 30:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f3 lvl&a!"

if {xp.%attacker%} is 80:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f4 lvl&a!"

if {xp.%attacker%} is 160:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f5 lvl&a!"

if {xp.%attacker%} is 260:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f6 lvl&a!"

if {xp.%attacker%} is 380:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f7 lvl&a!"

if {xp.%attacker%} is 420:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f8 lvl&a!"

if {xp.%attacker%} is 580:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f9 lvl&a!"

if {xp.%attacker%} is 760:

add 1 to {lvl.%attacker%}

send "&aOsiagnales &f10 lvl&a!"

To powinno działać :)

Odnośnik do komentarza
https://skript.pl/temat/9009-level-exp-z-potwor%C3%B3w-pilne/#findComment-69763
Udostępnij na innych stronach

  • 0

astranaar mógł byś jeszcze dopisać komende /statystyki żeby pisało np gdy mamy 1 lvl pisze doświadczenie (ilość zabitych potworów) / 10 gdy mamy 2 lvl (ilość zabitych potworów) / 30

Odnośnik do komentarza
https://skript.pl/temat/9009-level-exp-z-potwor%C3%B3w-pilne/#findComment-69785
Udostępnij na innych stronach

  • 0

A dało by się zablokowac ten normalny exp który wykorzystujemy np. do enchantowania?


 


a co do @up spróbuj to:



variables:
{lvl.%player%} = 1
{xp.%player%} = 0
{zombie.%player%} = 0

command /lvl:
trigger:
send "&aTwoj lvl: &f%{lvl.%player%}&a, twoje doswiadczenie: &f%{xp.%player%}%&a."
send "&aZabite zombie: &f%{zombie.%player%}%&a."

on death of zombie:
if attacker is a player:
add 1 to {xp.%attacker%}
if {xp.%attacker%} is 10:
add 1 to {lvl.%attacker%}
add 1 to {zombie.%player%}
send "&aOsiagnales &f2 lvl&a!"
if {xp.%attacker%} is 30:
add 1 to {lvl.%attacker%}
add 1 to {zombie.%player%}
send "&aOsiagnales &f3 lvl&a!"
if {xp.%attacker%} is 80:
add 1 to {lvl.%attacker%}
add 1 to {zombie.%player%}
send "&aOsiagnales &f4 lvl&a!"
if {xp.%attacker%} is 160:
add 1 to {lvl.%attacker%}
add 1 to {zombie.%player%}
send "&aOsiagnales &f5 lvl&a!"
if {xp.%attacker%} is 260:
add 1 to {zombie.%player%}
add 1 to {lvl.%attacker%}
send "&aOsiagnales &f6 lvl&a!"
if {xp.%attacker%} is 380:
add 1 to {lvl.%attacker%}
add 1 to {zombie.%player%}
send "&aOsiagnales &f7 lvl&a!"
if {xp.%attacker%} is 420:
add 1 to {lvl.%attacker%}
add 1 to {zombie.%player%}
send "&aOsiagnales &f8 lvl&a!"
if {xp.%attacker%} is 580:
add 1 to {lvl.%attacker%}
send "&aOsiagnales &f9 lvl&a!"
if {xp.%attacker%} is 760:
add 1 to {zombie.%player%}
add 1 to {lvl.%attacker%}
send "&aOsiagnales &f10 lvl&a!"

Edytowane przez Neital
Odnośnik do komentarza
https://skript.pl/temat/9009-level-exp-z-potwor%C3%B3w-pilne/#findComment-69791
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ę...