Ytoskaroskar

Rpg1

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