View difference between Paste ID: kx4S319A and 85Fezvb1
SHOW: | | - or go back to the newest paste.
1
# ======================== #
2
# Nazwa: PvPlevels
3
# Autor: AramekPL | LVL na chacie by raxoooo
4
# Wersja: 0.1
5
# ======================== #
6
# Część informacyjne.
7
        # Z nową wersją zostaną dodane:
8
        # - Wyświetlanie na chacie
9
        # - Wybieranie nagród
10
 
11
# Część konfiguracyjna.
12
options:
13
        # Opcja prefix jest wyświetlana wrzy pisaniu wiadomosci graczy.
14
        prefix: &4[&6PvPlevels&4]
15
        # Ile ma zabierać LVL'a za zginięcie.
16-
       dlvl: 1
16+
        dlvl: 1
17-
       # Ile ma dodawać dla zabójcy za zabicie?
17+
        # Ile ma dodawać dla zabójcy za zabicie?
18-
       klvl: 1
18+
        klvl: 1
19-
       # Nagroda w postaci itemu:
19+
        # Nagroda w postaci itemu:
20-
       item: diamond
20+
        item: diamond
21-
       iloscitemu: 1
21+
        iloscitemu: 1
22-
       # Nagroda w postaci kasy:
22+
        # Nagroda w postaci kasy:
23-
       kasa: 20
23+
        kasa: 20
24-
       # Nagroda w postaci EXP:
24+
        # Nagroda w postaci EXP:
25-
       exp: 8
25+
        exp: 8
26
 
27
# Nie tykać tego jak się nie znasz!
28
on death:
29-
       attacker is player
29+
        attacker is player
30-
       add {@klvl} to {lvl.pvp.%attacker%}
30+
        add {@klvl} to {lvl.pvp.%attacker%}
31-
       add 1 to {k.pvp.%attacker%}
31+
        add 1 to {k.pvp.%attacker%}
32-
       remove {@dlvl} {lvl.pvp.%victim%}
32+
        remove {@dlvl} {lvl.pvp.%victim%}
33-
       add 1 to {d.pvp.%victim%}
33+
        add 1 to {d.pvp.%victim%}
34-
       send "{@prefix} &bZabiłeś gracza %victim%!" to attacker
34+
        send "{@prefix} &bZabiłeś gracza %victim%!" to attacker
35-
       send "{@prefix} &bW nagrode rowniez otrzymujesz {@iloscitemu} {@item}!" to attacker
35+
        send "{@prefix} &bW nagrode rowniez otrzymujesz {@iloscitemu} {@item}!" to attacker
36-
       send "{@prefix} &bTwoje statystyki wzrosly!" to attacker
36+
        send "{@prefix} &bTwoje statystyki wzrosly!" to attacker
37-
       send "{@prefix} &bTwoje statystyki obniżyły się!" to victim
37+
        send "{@prefix} &bTwoje statystyki obniżyły się!" to victim
38-
       send "{@prefix} &bZabił ciebie gracz %attacker%" to victim
38+
        send "{@prefix} &bZabił ciebie gracz %attacker%" to victim
39-
       add {@iloscitemu} {@item} to attacker
39+
        add {@iloscitemu} {@item} to attacker
40-
       execute console command "/eco give %attacker% {@kasa}"
40+
        execute console command "/eco give %attacker% {@kasa}"
41-
       add {@exp} xp to the attacker
41+
        add {@exp} xp to the attacker
42
command /pvp <text> [<text>] [<text>]:
43-
       usage: &4/pvp [staty] [nick]
43+
        usage: &4/pvp [staty] [nick]
44-
       trigger:
44+
        trigger:
45-
               if argument 1 is equal to "pomoc":
45+
                if argument 1 is equal to "pomoc":
46-
                       send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
46+
                        send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
47-
                       send "&4◍&6/pvp staty &b= Sprawdza twoje statystyki."
47+
                        send "&4◍&6/pvp staty &b= Sprawdza twoje statystyki."
48-
                       send "&4◍&6/pvp staty [NICK]&b = Sprawdza statystyki danego gracza."
48+
                        send "&4◍&6/pvp staty [NICK]&b = Sprawdza statystyki danego gracza."
49-
                       send "&4◍&6/pvp set [LVL]&b = Ustawia tobie dany LVL PvP."
49+
                        send "&4◍&6/pvp set [LVL]&b = Ustawia tobie dany LVL PvP."
50-
                       send "&4◍&6/pvp set [LVL] [NICK] &b= Ustawia denemu graczowi LVL PvP."
50+
                        send "&4◍&6/pvp set [LVL] [NICK] &b= Ustawia denemu graczowi LVL PvP."
51-
                       send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
51+
                        send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
52-
               if argument 1 is equal to "staty":
52+
                if argument 1 is equal to "staty":
53-
                       if argument 2 is set:
53+
                        if argument 2 is set:
54-
                               send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
54+
                                send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
55-
                               send "&4◍ &bZabójstwa: &6%{k.pvp.%argument 2%}%"
55+
                                send "&4◍ &bZabójstwa: &6%{k.pvp.%argument 2%}%"
56-
                               send "&4◍ &bZgony: &6 %{d.pvp.%argument 2%}%"
56+
                                send "&4◍ &bZgony: &6 %{d.pvp.%argument 2%}%"
57-
                               send "&4◍ &bLvl: &6%{lvl.pvp.%argument 2%}%"
57+
                                send "&4◍ &bLvl: &6%{lvl.pvp.%argument 2%}%"
58-
                               send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
58+
                                send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
59-
                       else:
59+
                        else:
60-
                               send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
60+
                                send "&4=-=-=-=-=-=-=&6PVP STATY&4=-=-=-=-=-=-="
61-
                               send "&4◍ &bZabójstwa: &6%{k.pvp.%player%}%"
61+
                                send "&4◍ &bZabójstwa: &6%{k.pvp.%player%}%"
62-
                               send "&4◍ &bZgony: &6 %{d.pvp.%player%}%"
62+
                                send "&4◍ &bZgony: &6 %{d.pvp.%player%}%"
63-
                               send "&4◍ &bLvl: &6%{lvl.pvp.%player%}%"
63+
                                send "&4◍ &bLvl: &6%{lvl.pvp.%player%}%"
64-
                               send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
64+
                                send "&4=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
65-
               if argument 1 is equal to "set":
65+
                if argument 1 is equal to "set":
66-
                       if player has permission "sc.pvp.set":
66+
                        if player has permission "sc.pvp.set":
67-
                               if argument 3 is not set:
67+
                                if argument 3 is not set:
68-
                                       send "&bUstawiłeś swój LVL PVP na %argument 2%"
68+
                                        send "&bUstawiłeś swój LVL PVP na %argument 2%"
69-
                                       set {lvl.pvp.%player%} to argument 2
69+
                                        set {lvl.pvp.%player%} to argument 2
70-
                               else:
70+
                                else:
71-
                                       send "&bUstawiles graczowi &c%argument 3% &blvl &c%argument 2%"
71+
                                        send "&bUstawiles graczowi &c%argument 3% &blvl &c%argument 2%"
72-
                                       set {lvl.pvp.%argument 3%} to argument 2
72+
                                        set {lvl.pvp.%argument 3%} to argument 2
73-
                       else:
73+
                        else:
74-
                               send "&c[&4BLAD&c] &bNie masz uprawnien do tego!"
74+
                                send "&c[&4BLAD&c] &bNie masz uprawnien do tego!"
75
on chat:
76-
        set message to "&9[&cLvl:&6%{lvl.pvp.%player%}%&9] %message%"
76+
        set message to "&9[&cLvl:&6%{lvl.pvp.%player%}%&9] &f%message%"