Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Nie nalicza zabójstwa, a zgony tak.


FejminTVV

Rekomendowane odpowiedzi

Opublikowano
on load:

        set {lista::1} to 1

        set {lista::2} to 2

        set {lista::3} to 3

        set {lista::4} to 4

        set {lista::5} to 5

        set {lista::6} to 6

        set {lista::7} to 7

        set {lista::8} to 8

        set {lista::9} to 9

        set {lista::10} to 10

        set {lista::11} to 1.3

        set {lista::12} to 5.7

        set {lista::12} to 9.4

        set {lista::13} to 3.1

options:

# Chat

        chat: true #True - Wlacz lvl przed nickiem False - Wylacz lvl przed nickiem

        chat-format: {LVL} {NICK}: {MESSAGE}

        tag: &7[&biPVPStats&7]

 

# ilosc dawanego elo

 

        klvl: 1

        delo: 5

        kelo: 6

 

# Nagrody

        item: diamond

        item2: gold ingot

        item3: iron ingot

        item4: stick

        item5: iron sword

        iloscitemu: 1

        kasa: 10

        exp: 8

 

 

on death:

        if attacker is player:

                add {@klvl} to {lvl.pvp::%attacker%}

                set {_rando} to random number of {lista::*}

                add {_rando} to {elo.pvp::%attacker%}

                add 1 to {k.pvp::%attacker%}

                remove {_rando} from {elo.pvp::%victim%}       

                add 1 to {d.pvp::%victim%}

                send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to attacker

                send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to victim

                send "{@tag} &7Zabiles gracza &b%victim%!" to attacker

                send "{@tag} &7Twoje statystyki wzrosly!" to attacker

                send "{@tag} &7Twoje statystyki spadly!" to victim

                send "{@tag} &7Dostales %{_rando}% ELO!" to attacker

                send "{@tag} &7Straciles %{_rando}% ELO!" to victim

                send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to victim

                execute command "/playsound mob.wither.death %victim%"

                execute command "/playsound mob.irongolem.death %attacker%"

                execute console command "/eco give %attacker% {@kasa}"

                set death message to "&b%attacker% &7zabil &b%victim% &7z &b%type of tool of the attacker%"

                add {@exp} xp to the attacker

                if chance of 6%:       

                        add {@iloscitemu} {@item} to attacker

                        send "{@tag} &7W nagrode rowniez otrzymujesz &b{@iloscitemu} {@item}!" to attacker

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to attacker

                if chance of 25%:

                        add {@iloscitemu} {@item2} to attacker

                        send "{@tag} &7W nagrode rowniez otrzymujesz &b{@iloscitemu} {@item2}!" to attacker

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to attacker

                if chance of 23%:

                        add {@iloscitemu} {@item3} to attacker

                        send "{@tag} &7W nagrode rowniez otrzymujesz &b{@iloscitemu} {@item3}!" to attacker

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to attacker

                if chance of 9%:

                        add {@iloscitemu} {@item4} to attacker

                        send "{@tag} &7W nagrode rowniez otrzymujesz &b{@iloscitemu} {@item4}!" to attacker

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to attacker

                if chance of 2%:

                        add {@iloscitemu} {@item4} to attacker

                        send "{@tag} &7W nagrode rowniez otrzymujesz &b{@iloscitemu} {@item5}!" to attacker

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]" to attacker  

        else:

                victim is player

                broadcast "&7Gracz &b%victim% &7umarl w niewyjasnionych okolicznosciach!"

                add 1 to {d.pvp::%victim%}

                remove {_rando} from {elo.pvp::%victim%}

 

command /staty [<text>] [<text>]:

        trigger:

                if arg 1 is not set:

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]"

                        send "&b* &7Zabojstwa: &b%{k.pvp::%player%}%"

                        send "&b* &7Zgony: &b%{d.pvp::%player%}%"

                        send "&b* &7Lvl: &b%{lvl.pvp::%player%}%"

                        send "&b* &7Elo: &b%{elo.pvp::%player%}%"

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]"

                if arg 1 is not empty:

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]"

                        send "&7Staty: &e%arg 1%"

                        send "&b* &7Zabojstwa: &b%{k.pvp::%arg 1%}%"

                        send "&b* &7Zgony: &b%{d.pvp::%arg 1%}%"

                        send "&b* &7Lvl: &b%{lvl.pvp::%arg 1%}%"

                        send "&b* &7Elo: &b%{elo.pvp::%arg 1%}%"

                        send "&7[&bx&7]&7&M--------------&7[ &biPVP-STATS &7]&7&M--------------&7[&bx&7]"

                        stop

command /staty-reset [<text>]:

        trigger:

                if arg 1 is not set:

                        if player doesn't have permission "iPVPStats.admin":

                                send "&cBrak Uprawnien"

                                stop

                        delete {d.pvp::*}

                        delete {k.pvp::*}

                        delete {lvl.pvp::*}

                        delete {elo.pvp::*}

                        send "{@tag} &cReset Statystyk"

                        broadcast "&aStatystyki zostaly &c&nzresetowane. &aProsimy o wyjscie z serwera, aby statystyki zostaly zaktualizowane"

                if arg 1 is "reload":

                        execute player command "sk reload %script%"

                        broadcast "&biPvPStats &7wymaga wersji Skript &b2.0.2/2.1 ..."

                        wait 1 seconds

                        broadcast "&f------------------------------------------------"

                        broadcast "&f               Enable &9iPvPStats"

                        broadcast "&f------------------------------------------------"

                        broadcast "&fAutor: &bFejminTV"

               

 

 

on chat:

        if {@chat} is equal to true:

                set {_chat} to "{@chat-format}"

                replace all "{LVL}" with "&f[Lvl&b%{lvl.pvp::%player%}%&f]" in {_chat}

                replace all "{NICK}" with "%display name of player%" in {_chat}

                replace all "{MESSAGE}" with "%message%" in {_chat}

                send "%{_chat}%" to all players

                cancel event

 

on join:

        {k.pvp::%name of player%} is not set:

                set {k.pvp::%name of player%} to 0

        {d.pvp::%name of player%} is not set:

                set {d.pvp::%name of player%} to 0

        {lvl.pvp::%name of player%} is not set:

                set {lvl.pvp::%name of player%} to 0

        {elo.pvp::%name of player%} is not set:

                set {elo.pvp::%name of player%} to 1000

 

 

command /top [<text>]:

        trigger:

                if arg 1 is not set:

                        send "&7[&bx&7]&7&M--------------&7[ &bTOP &7]&7&M--------------&7[&bx&7]"

                        send "&b* &7/top elo"

                        send "&b* &7/top level"

                        send "&b* &7/top kills"

                        send "&b* &7/top death"

                        send "&7[&bx&7]&7&M--------------&7[ &bTOP &7]&7&M--------------&7[&bx&7]"

                if arg 1 is "elo":

                        if player doesn't have permission "top.elo":

                                send "&cBrak Uprawnien"

                                stop

                        send "&7[&bx&7]&7&M--------------&7[ &bTOP-ELO &7]&7&M--------------&7[&bx&7]"

                        delete {top.elo::*}

                        set {_num} to size of {elo.pvp::*}

                        loop {elo.pvp::*}:

                                set {top.elo::%loop-index%} to loop-value

                        loop {_num} times:

                                loop {top.elo::*}:

                                        {_v.%loop-number%} is not set:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                        if loop-value is bigger than {_v.%loop-number%}:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                remove {_v.%loop-number%} from {top.elo::*}

                        loop {_num} times:

                                loop-number is less than or equal to 5:

                                        if loop-number is 1:

                                                set {topelo} to "%{_n.%loop-number%}% "

                                                set {topelopunkty} to {_v.%loop-number%}

                                        send "&b%loop-number%. &7%{_n.%loop-number%}% &b%{_v.%loop-number%}%"  

                        {_num} is less than 10:

                                set {_r} to {_num}

                                loop 10 - {_num} times:

                                        add 1 to {_r}

                                        send "&b%{_r}%. &7brak"

                        send "&7[&bx&7]&7&M--------------------------------------&7[&bx&7]"

 

                if arg 1 is "level" or "lvl":

                        if player doesn't have permission "top.level":

                                send "&cBrak Uprawnien"

                                stop

                        send "&7[&bx&7]&7&M--------------&7[ &bTOP-LVL &7]&7&M--------------&7[&bx&7]"

                        delete {top.level::*}

                        set {_num} to size of {lvl.pvp::*}

                        loop {lvl.pvp::*}:

                                set {top.level::%loop-index%} to loop-value

                        loop {_num} times:

                                loop {top.level::*}:

                                        {_v.%loop-number%} is not set:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                        if loop-value is bigger than {_v.%loop-number%}:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                remove {_v.%loop-number%} from {top.level::*}

                        loop {_num} times:

                                loop-number is less than or equal to 5:

                                        send "&b%loop-number%. &7%{_n.%loop-number%}% &b%{_v.%loop-number%}%"  

                        {_num} is less than 10:

                                set {_r} to {_num}

                                loop 10 - {_num} times:

                                        add 1 to {_r}

                                        send "&b%{_r}%. &7brak"

                        send "&7[&bx&7]&7&M--------------------------------------&7[&bx&7]"

 

                if arg 1 is "kills" or "killer":

                        if player doesn't have permission "top.kill":

                                send "&cBrak Uprawnien"

                                stop

                        send "&7[&bx&7]&7&M--------------&7[ &bTOP-KILLS &7]&7&M--------------&7[&bx&7]"

                        delete {top.kill::*}

                        set {_num} to size of {k.pvp::*}

                        loop {k.pvp::*}:

                                set {top.kill::%loop-index%} to loop-value

                        loop {_num} times:

                                loop {top.kill::*}:

                                        {_v.%loop-number%} is not set:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                        if loop-value is bigger than {_v.%loop-number%}:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                remove {_v.%loop-number%} from {top.kill::*}

                        loop {_num} times:

                                loop-number is less than or equal to 5:

                                        send "&b%loop-number%. &7%{_n.%loop-number%}% &b%{_v.%loop-number%}%"  

                        {_num} is less than 10:

                                set {_r} to {_num}

                                loop 10 - {_num} times:

                                        add 1 to {_r}

                                        send "&b%{_r}%. &7brak"

                        send "&7[&bx&7]&7&M----------------------------------------&7[&bx&7]"

 

                if arg 1 is "death" or "deaths":

                        if player doesn't have permission "top.death":

                                send "&cBrak Uprawnien"

                                stop

                        send "&7[&bx&7]&7&M--------------&7[ &bTOP-DEATH &7]&7&M--------------&7[&bx&7]"

                        delete {top.death::*}

                        set {_num} to size of {d.pvp::*}

                        loop {d.pvp::*}:

                                set {top.death::%loop-index%} to loop-value

                        loop {_num} times:

                                loop {top.death::*}:

                                        {_v.%loop-number%} is not set:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                        if loop-value is bigger than {_v.%loop-number%}:

                                                set {_v.%loop-number%} to loop-value

                                                set {_n.%loop-number%} to loop-index

                                remove {_v.%loop-number%} from {top.death::*}

                        loop {_num} times:

                                loop-number is less than or equal to 5:

                                        send "&b%loop-number%. &7%{_n.%loop-number%}% &b%{_v.%loop-number%}%"  

                        {_num} is less than 10:

                                set {_r} to {_num}

                                loop 10 - {_num} times:

                                        add 1 to {_r}

                                        send "&b%{_r}%. &7brak"

                        send "&7[&bx&7]&7&M----------------------------------------&7[&bx&7]"

                        stop

 

on skript start:

        send "&8iPvPStats wymaga wersji Skript 2.0.2/2.1 ..." to the console

        wait 1 seconds

        send "" to the console

        send "&8--------------------------------------------------------------" to the console

        send "&8|                  Enable &9iPvPStats                         &8|" to the console

        send "&8--------------------------------------------------------------" to the console

        send "" to the console

        send "&8Autor: &eFejminTV" to the console

        send "" to the console

 

 

Witam mam problem gdyż nie nalicza mi zabójstwa a zgony tak! 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...