Advertisement
Danielzinh

Untitled

Aug 5th, 2020
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.76 KB | None | 0 0
  1. variables:
  2. {%player%::level} = 1
  3. {%player%::reputacao} = 0
  4. {mineradoss::%player%} = 0
  5. {mineradosssss::%player%} = 0
  6. {kills::%player%} = 0
  7. {%player%::reput} = 0
  8.  
  9. on damage:
  10. if {rank::%attacker%} is 1:
  11. set {_x} to 0
  12. else if {rank::%attacker%} is 2:
  13. set {_x} to 2
  14. else if {rank::%attacker%} is 3:
  15. set {_x} to 3
  16. else if {rank::%attacker%} is 4:
  17. set {_x} to 4
  18. else if {rank::%attacker%} is 5:
  19. set {_x} to 5
  20. else if {rank::%attacker%} is 6:
  21. set {_x} to 6
  22. else if {rank::%attacker%} is 7:
  23. set {_x} to 7
  24. else if {rank::%attacker%} is 8:
  25. set {_x} to 8
  26. else:
  27. set {_x} to 0
  28. set {_z} to damage
  29. set {_x} to ({_z} + 0.1 * {_x})
  30. if "%attacker%" is "<none>":
  31. set {_y} to 0.1 * {%victim%::level}
  32. remove {_y} from {_x}
  33. set damage to {_x}
  34. else:
  35. set {_x} to damage
  36. set {_y} to 0.1 * {%victim%::level}
  37. remove {_y} from {_x}
  38. if "%{_x}%" contains "-":
  39. if damage is between 0 and 0.8:
  40. set damage to 0
  41. send "&c%victim%&c tem o nivel alto, por isso, não sofreu danos." to attacker
  42. send "&c%attacker%&c está te dando danos muito fracos, não surgem efeito." to victim
  43. else if damage is between 0.9 and 2:
  44. set damage to 1
  45. else if damage is between 2.1 and 4:
  46. set damage to 1.4
  47. else:
  48. set damage to {_x}
  49. on death:
  50. victim is a player
  51. attacker is a player
  52. add 1 to {kills::%attacker%}
  53. log "%attacker% matou %victim% usando %attacker's tool%." to "mortes.txt"
  54. on join:
  55. if {%player%::level} is 0:
  56. set {%player%::level} to 1
  57. if {%player%::level} is between 1 and 5:
  58. make console execute command "pex user %player% suffix &7[&a%{%player%::level}%&7]"
  59. else if {%player%::level} is between 6 and 11:
  60. make console execute command "pex user %player% suffix &7[&6%{%player%::level}%&7]"
  61. else if {%player%::level} is between 12 and 24:
  62. make console execute command "pex user %player% suffix &7[&c%{%player%::level}%&7]"
  63. else if {%player%::level} is 25:
  64. make console execute command "pex user %player% suffix &7[&4%{%player%::level}%&7]"
  65. command /subirnivel:
  66. trigger:
  67. set {_x1} to 5 * {%player%::level}
  68. if {%player%::level} is more than or equal to 25:
  69. send "&cVocê chegou no limite máximo de niveis."
  70. else:
  71. if {%player%::reputacao} is more than or equal to {_x1}:
  72. if {kills::%player%} is more than or equal to {_x1}:
  73. add 1 to {%player%::level}
  74. send "&aVocê subiu de nivel!"
  75. broadcast "&6%player%&6 subiu de nivel! Agora é nivel &a%{%player%::level}%&6."
  76. remove {_x1} from {%player%::reputacao}
  77. remove {_x1} from {kills::%player%}
  78. if {%player%::level} is between 1 and 5:
  79. make console execute command "pex user %player% suffix &7[&a%{%player%::level}%&7]"
  80. else if {%player%::level} is between 6 and 11:
  81. make console execute command "pex user %player% suffix &7[&6%{%player%::level}%&7]"
  82. else if {%player%::level} is between 12 and 24:
  83. make console execute command "pex user %player% suffix &7[&c%{%player%::level}%&7]"
  84. else if {%player%::level} is 25:
  85. make console execute command "pex user %player% suffix &7[&4%{%player%::level}%&7]"
  86. else:
  87. send "&cVocê precisa de %{_x1}%&c kills. /nivel"
  88. else:
  89. send "&cVocê precisa de %{_x1}%&c reputações. /nivel"
  90. command /nivel:
  91. trigger:
  92. send "&6Seu nivel é: &a%{%player%::level}%"
  93. set {_x1} to 5 * {%player%::level}
  94. send "&6Sua reputação: &a%{%player%::reputacao}%&a/%{_x1}%&6."
  95. send "&6Total Kills: &a%{kills::%player%}%&a/%{_x1}%&6."
  96. send "&6Se tiver tudo, digite &a/subirnivel&6."
  97. every minute:
  98. loop all players:
  99. add 1 to {%loop-player%::reput}
  100. if {%loop-player%::reput} is more than or equal to 60:
  101. set {%loop-player%::reput} to 0
  102. send "&6Você ficou 1 hora on-line e ganhou &a+1 &6reputação." to loop-player
  103. add 1 to {%loop-player%::reputacao}
  104. command /setnivel [<player>] [<text>] [<integer>]:
  105. trigger:
  106. if player is op:
  107. if arg 1 is set:
  108. if arg 2 is set:
  109. if arg 3 is set:
  110. if arg 2 is "nivel":
  111. set {%arg-1%::level} to arg-3
  112. send "&aOs leveis de %arg-1%&a foram setadas para %{%arg-1%::level}%"
  113. else if arg 2 is "reputacao":
  114. set {%arg-1%::reputacao} to arg-3
  115. send "&aAs reputações de %arg-1%&a foram setadas para %{%arg-1%::reputacao}%"
  116. else if arg 2 is "kills":
  117. set {kills::%arg-1%} to arg-3
  118. send "&aAs kills de %arg-1%&a foram setadas para %{kills::%arg-1%}%"
  119. else:
  120. send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
  121. else:
  122. send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
  123. else:
  124. send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
  125. else:
  126. send "&cUse /setnivel (player) (nivel/reputacao/kills) (valor)"
  127. else:
  128. send "&cSem permissão."
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement