Ytoskaroskar

Rpg

Nov 2nd, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.67 KB | None | 0 0
  1. {lvl::%player%} = 1
  2. {exp::%player%} = 0
  3. {wymag::%player%} = 100
  4. options:
  5. next: 1,2
  6. tag: &8[&6Parkour&8]
  7. chat: &8[&3LvL {LVL}&8] &8{PLAYER} &2:&c&o {MESSAGE}
  8. on chat:
  9. cancel event
  10. set {_chat} to "{@chat}"
  11. replace all "{PLAYER}" with "%colored display name of player%" in {_chat}
  12. replace all "{MESSAGE}" with "%colored message%" in {_chat}
  13. replace all "{LVL}" with "%{lvl::%player%}%" in {_chat}
  14. broadcast "%{_chat}%"
  15. on death:
  16. if attacker is a player:
  17. if victim is a zombie or wither skeleton or sheep or Slime or spider:
  18. add 10 to {exp::%attacker%}
  19. if {exp::%attacker%} > {wymag::%attacker%}:
  20. if {lvl::%attacker%} < 250:
  21. set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
  22. set {exp::%attacker%} to {_exp}
  23. set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
  24. add 1 to {lvl::%attacker%}
  25. send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
  26. if {lvl::%attacker%} = 10:
  27. send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
  28. if {lvl::%attacker%} = 20:
  29. send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
  30. if {lvl::%attacker%} = 30:
  31. send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
  32. if {lvl::%attacker%} = 40:
  33. send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
  34. else:
  35. send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
  36.  
  37.  
  38. command /poziom [<text>]:
  39. trigger:
  40. set {_next} to ({wymag::%player%} - {exp::%player%})
  41. send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
  42. send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"
  43.  
  44. command /samobojstwo:
  45. trigger:
  46. kill player
  47. send "Gracz %player% popełnił samobójstwo używając do tego komendy /samobojstwo ."
  48.  
  49. command /kolorki:
  50. description: Wyświetla przyisanie kolorów.
  51. trigger:
  52. send "Kolorki: &aa &bb &cc &dd &ee &ff &00 &11 &22 &33 &44 &55 &66 &77 &88 &99" to player
  53.  
  54. command /resetwymag:
  55. trigger:
  56. set {wymag::%player%} to 100
  57.  
  58. command /resetpoziom:
  59. description: Resetuje poziom gracza
  60. trigger:
  61. set {wymag::%player%} to 100
  62. set {exp::%player%} to 0
  63. set {lvl::%player%} to 1
  64. send "&8> &7Pomyślnie zresetowałeś swój poziom" to player
Advertisement
Add Comment
Please, Sign In to add comment