# ################################### # # LEVELS # # ################################### # # author: MatiX119 # # version: 1.0 # # ZAKAZ EDYTOWANIA TYCH INFORMACJI!!! # # ################################### # # ###################################################################### # # Oficjalna strona skryptu: # # http://www.matix119.esy.es/skrypty/levels.html # # Ważne zasady użytkowania skryptu: # # http://www.matix119.esy.es/skrypty/zasady-uzytkowania-skryptow.html # # ###################################################################### # options: # ############################# # # USTAWIENIA # # ############################# # # Maksymalny level, który można zdobyć. # W przypadku zmiany tego ustawienia należy skonfigurować exp. max-lvl: 50 # Ustawienia expa w zależności od powyższego ustawienia, znajdziesz niżej w kodzie # Ustaw format czatu aby level był wyświetlany obok nicku ze zmiennej {lvl.%player%}. # Jeśli format czatu stosujesz w innym ze swoich skryptów, to wystarczy, że dopiszesz powyższą zmienną, # aby wyświetlany był level. chat-format: &8[&7%{lvl.%player%}%&8] &r<%player%> %message% # ############################# # # Zmienne, czat i # # zabezpieczenia # # ############################# # variables: {lvl.%player%} = 1 {exp.%player%} = 0 {exp.max.%player%} = 0 {double.exp} = false on chat: set message format to "{@chat-format}" every 1 second: loop all players: if {lvl.%loop-player%} > {@max-lvl}: set {lvl.%loop-player%} to {@max-lvl} set {lvl.%loop-player%} to {lvl.%loop-player%}-1 execute console command "/maxexpchange %loop-player%" set {exp.%loop-player%} to {exp.max.%loop-player%} set {lvl.%loop-player%} to {@max-lvl} # ############################# # # Sprawdzanie aktualnego # # poziomu # # ############################# # command /poziom []: aliases: /exp, /stats, /statystyki trigger: if arg 1 is not set: if {exp.%player%} is not set: set {exp.%player%} to 0 if {exp.max.%player%} is not set: set {exp.max.%player%} to {explvl1} if {lvl.%player%} is not set: set {lvl.%player%} to 1 send "&5&l=============================" to player send "&6Statystyki %player%:" to player send " &2Poziom: &e%{lvl.%player%}%" to player send " &2Punky doświadczenia: &c%{exp.%player%}%&9/&3%{exp.max.%player%}%&6" to player send "&5&l=============================" to player if arg 1 is set: if player has permission "admin": set {_p} to arg 1 parsed as player if {_p} is offlineplayer: if {exp.%{_p}%} is not set: set {exp.%{_p}%} to 0 if {exp.max.%{_p}%} is not set: set {exp.max.%{_p}%} to {explvl1} if {lvl.%{_p}%} is not set: set {lvl.%{_p}%} to 1 send "&5&l=============================" to player send "&6Statystyki %{_p}%:" to player send " &2Poziom: &e%{lvl.%{_p}%}%" to player send " &2Punky doświadczenia: &c%{exp.%{_p}%}%&9/&3%{exp.max.%{_p}%}%&6" to player send "&5&l=============================" to player else: send "&4Ten gracz jest offline." to player else: send "&4Nie masz uprawnień." to player # ############################# # # Aktywowanie podwójnego expa # # ############################# # command /double-exp: aliases: /doubleexp permission: admin permission message: &4Nie masz uprawnień. trigger: if {double.exp} is false: set {double.exp} to true send "&aAktywowano &7DoubleExpa!" to player stop if {double.exp} is true: set {double.exp} to false send "&cZdezaktywowano &7DoubleExpa!" to player stop # ############################# # # Zmienianie levela # # ############################# # command /level-set [] []: usage: /level-set permission: admin permission message: &4Nie masz uprawnień. executable by: console and player trigger: if arg 1 is set: set {_p} to arg 1 parsed as player if {_p} is offlineplayer: if arg 2 is set: set {_i} to arg 2 parsed as number if {_i} is between 1 and {@max-lvl}: set {_lvl.%{_p}%} to {lvl.%{_p}%} set {_exp.%{_p}%} to {exp.%{_p}%} set {_exp.max.%{_p}%} to {exp.max.%{_p}%} set {lvl.%{_p}%} to {_i} if {lvl.%{_p}%} = {@max-lvl}: set {lvl.%{_p}%} to {lvl.%{_p}%}-1 execute console command "/maxexpchange %{_p}%" set {exp.%{_p}%} to {exp.max.%{_p}%} set {lvl.%{_p}%} to {@max-lvl} else: set {exp.%{_p}%} to 0 execute console command "/maxexpchange %{_p}%" send "&aUstawiono level %{_p}% na: &e%{lvl.%{_p}%}% &6[&c%{exp.%{_p}%}%&9/&3%{exp.max.%{_p}%}%&6]" to player send "&8Poprzedni level: &7%{_lvl.%{_p}%}% &8[&7%{_exp.%{_p}%}%&8/&7%{_exp.max.%{_p}%}%&8]" to player else: send "&cPodany level musi być w zakresie od 1 do {@max-lvl}." to player else: send "&f/level-set &c" else: send "&4Ten gracz jest offline." to player else: send "&f/level-set &c &f" # ############################# # # Dawanie expa + główny # # system leveli # # ############################# # command /exp-give [] [] []: usage: /exp-give executable by: console trigger: if arg 1 is set: if arg 2 is set: if {exp.%player-arg%} is not set: set {exp.%player-arg%} to 0 if {exp.max.%player-arg%} is not set: set {exp.max.%player-arg%} to {explvl1} if {lvl.%player-arg%} is not set: set {lvl.%player-arg%} to 1 if {lvl.%player-arg%} >= {@max-lvl}: stop else: if {double.exp} is false: add arg 2 to {exp.%player-arg%} set {_double.exp} to "Exp" set {_ilosc} to "%arg 2%" if {double.exp} is true: add arg 2*2 to {exp.%player-arg%} set {_double.exp} to "DoubleExp" set {_ilosc} to "%arg 2*2%" if arg 2 >= 0: set {_znak} to "&2+" if arg 2 < 0: set {_znak} to "&4" if {exp.%player-arg%} < 0: set {exp.%player-arg%} to 0 if {exp.%player-arg%} >= {exp.max.%player-arg%}: add 1 to {lvl.%player-arg%} if arg 3 is not "-s": send "&7[&8%{_double.exp}%&7] %{_znak}%%{_ilosc}% &6[&c%{exp.max.%player-arg%}%&9/&3%{exp.max.%player-arg%}%&6]" to player-arg execute console command "/maxexpchange %player-arg%" if {lvl.%player-arg%} >= {@max-lvl}: set {exp.%player-arg%} to {exp.max.%player-arg%} else: set {exp.%player-arg%} to 0 # strike lightning effect at the player-arg send "&5&lGratulacje! Awansowales na wyzszy poziom: &f&l%{lvl.%player-arg%}%" to player-arg else: if arg 3 is "-s": stop else: send "&7[&8%{_double.exp}%&7] %{_znak}%%{_ilosc}% &6[&c%{exp.%player-arg%}%&9/&3%{exp.max.%player-arg%}%&6]" to player-arg else: send "&f/exp-give &c &f[-s]" else: send "&f/exp-give &c &f [-s]" # ############################# # # TEJ KOMENDY NIE WOLNO # # UŻYWAĆ RĘCZNIE!!! # # ############################# # command /maxexpchange []: executable by: console trigger: # ########################################################################## # # # # Tu znajdują się ustawienia maksymalnej ilośi expa do następnego levela. # # Przykład: aby awansować na level 2, gracz musi mieć 100 expa. # # Jeśli zmieniłeś w ustawieniach maksymalny poziom, to musisz dodać lub # # usunąć poniższe ustawienia w części: # # # # ########################################################################## # if {lvl.%player-arg%} is 1: set {explvl1} to 100 set {exp.max.%player-arg%} to {explvl1} if {lvl.%player-arg%} is 2: set {exp.max.%player-arg%} to 250 if {lvl.%player-arg%} is 3: set {exp.max.%player-arg%} to 400 if {lvl.%player-arg%} is 4: set {exp.max.%player-arg%} to 550 if {lvl.%player-arg%} is 5: set {exp.max.%player-arg%} to 700 if {lvl.%player-arg%} is 6: set {exp.max.%player-arg%} to 850 if {lvl.%player-arg%} is 7: set {exp.max.%player-arg%} to 1000 if {lvl.%player-arg%} is 8: set {exp.max.%player-arg%} to 1150 if {lvl.%player-arg%} is 9: set {exp.max.%player-arg%} to 1300 if {lvl.%player-arg%} is 10: set {exp.max.%player-arg%} to 1450 if {lvl.%player-arg%} is 11: set {exp.max.%player-arg%} to 1600 if {lvl.%player-arg%} is 12: set {exp.max.%player-arg%} to 1750 if {lvl.%player-arg%} is 13: set {exp.max.%player-arg%} to 1900 if {lvl.%player-arg%} is 14: set {exp.max.%player-arg%} to 2050 if {lvl.%player-arg%} is 15: set {exp.max.%player-arg%} to 2200 if {lvl.%player-arg%} is 16: set {exp.max.%player-arg%} to 2350 if {lvl.%player-arg%} is 17: set {exp.max.%player-arg%} to 2500 if {lvl.%player-arg%} is 18: set {exp.max.%player-arg%} to 2650 if {lvl.%player-arg%} is 19: set {exp.max.%player-arg%} to 2800 if {lvl.%player-arg%} is 20: set {exp.max.%player-arg%} to 2950 if {lvl.%player-arg%} is 21: set {exp.max.%player-arg%} to 3100 if {lvl.%player-arg%} is 22: set {exp.max.%player-arg%} to 3250 if {lvl.%player-arg%} is 23: set {exp.max.%player-arg%} to 3400 if {lvl.%player-arg%} is 24: set {exp.max.%player-arg%} to 3550 if {lvl.%player-arg%} is 25: set {exp.max.%player-arg%} to 3700 if {lvl.%player-arg%} is 26: set {exp.max.%player-arg%} to 3850 if {lvl.%player-arg%} is 27: set {exp.max.%player-arg%} to 4000 if {lvl.%player-arg%} is 28: set {exp.max.%player-arg%} to 4150 if {lvl.%player-arg%} is 29: set {exp.max.%player-arg%} to 4300 if {lvl.%player-arg%} is 30: set {exp.max.%player-arg%} to 4450 if {lvl.%player-arg%} is 31: set {exp.max.%player-arg%} to 4600 if {lvl.%player-arg%} is 32: set {exp.max.%player-arg%} to 4750 if {lvl.%player-arg%} is 33: set {exp.max.%player-arg%} to 4900 if {lvl.%player-arg%} is 34: set {exp.max.%player-arg%} to 5100 if {lvl.%player-arg%} is 35: set {exp.max.%player-arg%} to 5250 if {lvl.%player-arg%} is 36: set {exp.max.%player-arg%} to 5400 if {lvl.%player-arg%} is 37: set {exp.max.%player-arg%} to 5550 if {lvl.%player-arg%} is 38: set {exp.max.%player-arg%} to 5700 if {lvl.%player-arg%} is 39: set {exp.max.%player-arg%} to 5950 if {lvl.%player-arg%} is 40: set {exp.max.%player-arg%} to 6100 if {lvl.%player-arg%} is 41: set {exp.max.%player-arg%} to 6250 if {lvl.%player-arg%} is 42: set {exp.max.%player-arg%} to 6400 if {lvl.%player-arg%} is 43: set {exp.max.%player-arg%} to 6650 if {lvl.%player-arg%} is 44: set {exp.max.%player-arg%} to 6800 if {lvl.%player-arg%} is 45: set {exp.max.%player-arg%} to 6950 if {lvl.%player-arg%} is 46: set {exp.max.%player-arg%} to 7100 if {lvl.%player-arg%} is 47: set {exp.max.%player-arg%} to 7250 if {lvl.%player-arg%} is 48: set {exp.max.%player-arg%} to 7400 if {lvl.%player-arg%} is 49: set {exp.max.%player-arg%} to 7550 # ################################### # # W razie zmiany ustawienia maksymal- # # nego poziomu, to należy dodać lub # # usunąć powyższą część kodu jak # # według wzoru. # # ################################### #