Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- variables:
- {%player%::level} = 1
- {%player%::reputacao} = 0
- {mineradoss::%player%} = 0
- {mineradosssss::%player%} = 0
- {kills::%player%} = 0
- {%player%::reput} = 0
- on damage:
- if {rank::%attacker%} is 1:
- set {_x} to 0
- else if {rank::%attacker%} is 2:
- set {_x} to 2
- else if {rank::%attacker%} is 3:
- set {_x} to 3
- else if {rank::%attacker%} is 4:
- set {_x} to 4
- else if {rank::%attacker%} is 5:
- set {_x} to 5
- else if {rank::%attacker%} is 6:
- set {_x} to 6
- else if {rank::%attacker%} is 7:
- set {_x} to 7
- else if {rank::%attacker%} is 8:
- set {_x} to 8
- else:
- set {_x} to 0
- set {_z} to damage
- set {_x} to ({_z} + 0.1 * {_x})
- if "%attacker%" is "<none>":
- set {_y} to 0.1 * {%victim%::level}
- remove {_y} from {_x}
- set damage to {_x}
- else:
- set {_x} to damage
- set {_y} to 0.1 * {%victim%::level}
- remove {_y} from {_x}
- if "%{_x}%" contains "-":
- if damage is between 0 and 0.8:
- set damage to 0
- send "&c%victim%&c tem o nivel alto, por isso, não sofreu danos." to attacker
- send "&c%attacker%&c está te dando danos muito fracos, não surgem efeito." to victim
- else if damage is between 0.9 and 2:
- set damage to 1
- else if damage is between 2.1 and 4:
- set damage to 1.4
- else:
- set damage to {_x}
- on death:
- victim is a player
- attacker is a player
- add 1 to {kills::%attacker%}
- log "%attacker% matou %victim% usando %attacker's tool%." to "mortes.txt"
- on join:
- if {%player%::level} is 0:
- set {%player%::level} to 1
- if {%player%::level} is between 1 and 5:
- make console execute command "pex user %player% suffix &7[&a%{%player%::level}%&7]"
- else if {%player%::level} is between 6 and 11:
- make console execute command "pex user %player% suffix &7[&6%{%player%::level}%&7]"
- else if {%player%::level} is between 12 and 24:
- make console execute command "pex user %player% suffix &7[&c%{%player%::level}%&7]"
- else if {%player%::level} is 25:
- make console execute command "pex user %player% suffix &7[&4%{%player%::level}%&7]"
- command /subirnivel:
- trigger:
- set {_x1} to 5 * {%player%::level}
- if {%player%::level} is more than or equal to 25:
- send "&cVocê chegou no limite máximo de niveis."
- else:
- if {%player%::reputacao} is more than or equal to {_x1}:
- if {kills::%player%} is more than or equal to {_x1}:
- add 1 to {%player%::level}
- send "&aVocê subiu de nivel!"
- broadcast "&6%player%&6 subiu de nivel! Agora é nivel &a%{%player%::level}%&6."
- remove {_x1} from {%player%::reputacao}
- remove {_x1} from {kills::%player%}
- if {%player%::level} is between 1 and 5:
- make console execute command "pex user %player% suffix &7[&a%{%player%::level}%&7]"
- else if {%player%::level} is between 6 and 11:
- make console execute command "pex user %player% suffix &7[&6%{%player%::level}%&7]"
- else if {%player%::level} is between 12 and 24:
- make console execute command "pex user %player% suffix &7[&c%{%player%::level}%&7]"
- else if {%player%::level} is 25:
- make console execute command "pex user %player% suffix &7[&4%{%player%::level}%&7]"
- else:
- send "&cVocê precisa de %{_x1}%&c kills. /nivel"
- else:
- send "&cVocê precisa de %{_x1}%&c reputações. /nivel"
- command /nivel:
- trigger:
- send "&6Seu nivel é: &a%{%player%::level}%"
- set {_x1} to 5 * {%player%::level}
- send "&6Sua reputação: &a%{%player%::reputacao}%&a/%{_x1}%&6."
- send "&6Total Kills: &a%{kills::%player%}%&a/%{_x1}%&6."
- send "&6Se tiver tudo, digite &a/subirnivel&6."
- every minute:
- loop all players:
- add 1 to {%loop-player%::reput}
- if {%loop-player%::reput} is more than or equal to 60:
- set {%loop-player%::reput} to 0
- send "&6Você ficou 1 hora on-line e ganhou &a+1 &6reputação." to loop-player
- add 1 to {%loop-player%::reputacao}
- command /setnivel [<player>] [<text>] [<integer>]:
- trigger:
- if player is op:
- if arg 1 is set:
- if arg 2 is set:
- if arg 3 is set:
- if arg 2 is "nivel":
- set {%arg-1%::level} to arg-3
- send "&aOs leveis de %arg-1%&a foram setadas para %{%arg-1%::level}%"
- else if arg 2 is "reputacao":
- set {%arg-1%::reputacao} to arg-3
- send "&aAs reputações de %arg-1%&a foram setadas para %{%arg-1%::reputacao}%"
- else if arg 2 is "kills":
- set {kills::%arg-1%} to arg-3
- send "&aAs kills de %arg-1%&a foram setadas para %{kills::%arg-1%}%"
- else:
- send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
- else:
- send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
- else:
- send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
- else:
- send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
- else:
- send "&cSem permissão."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement