Guest User

RPGlvlUP

a guest
Jan 14th, 2016
2,836
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.30 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:
  19. add 10 to {exp::%attacker%}
  20. if {exp::%attacker%} > {wymag::%attacker%}:
  21. if {lvl::%attacker%} < 250:
  22. set {_exp} to ({exp::%attacker%} - {wymag::%attacker%})
  23. set {exp::%attacker%} to {_exp}
  24. set {wymag::%attacker%} to (({wymag::%attacker%} / 5 ) * 6)
  25. add 1 to {lvl::%attacker%}
  26. send "&8> &7Awansowales na &6%{lvl::%attacker%}% poziom&7!" to attacker
  27. if {lvl::%attacker%} = 10:
  28. send "&7Gracz &5%attacker% &7osiągnął właśnie 10 lvl." to all players
  29. if {lvl::%attacker%} = 20:
  30. send "&7Gracz &5%attacker% &7osiągnął właśnie 20 lvl." to all players
  31. if {lvl::%attacker%} = 30:
  32. send "&7Gracz &5%attacker% &7osiągnął właśnie 30 lvl." to all players
  33. if {lvl::%attacker%} = 40:
  34. send "&7Gracz &5%attacker% &7osiągnął właśnie 40 lvl." to all players
  35. else:
  36. send "&8> &7Osiagnales najwyzszy, &6%{lvl::%attacker%}% wymag&7!" to attacker
  37.  
  38.  
  39. command /poziom [<text>]:
  40. trigger:
  41. set {_next} to ({wymag::%player%} - {exp::%player%})
  42. send "&8> &7Aktualnie posiadasz &6%{exp::%player%}% xp &7, &6%{lvl::%player%}% poziom&7. Do nastepnego poziomu brakuje Ci &6%{_next}% xp&7."
  43. send "&8> &7Wymagane: &6%{wymag::%player%}% &6xp"
  44.  
  45. command /samobojstwo:
  46. trigger:
  47. kill player
  48. send "Gracz %player% popełnił samobójstwo używając do tego komendy /samobojstwo ."
  49.  
  50. command /kolorki:
  51. description: Wyświetla przyisanie kolorów.
  52. trigger:
  53. send "Kolorki: &aa &bb &cc &dd &ee &ff &00 &11 &22 &33 &44 &55 &66 &77 &88 &99" to player
  54.  
  55. command /resetwymag:
  56. trigger:
  57. set {wymag::%player%} to 100
  58.  
  59. command /resetpoziom:
  60. description: Resetuje poziom gracza
  61. trigger:
  62. set {wymag::%player%} to 100
  63. set {exp::%player%} to 0
  64. set {lvl::%player%} to 1
  65. send "&8> &7Pomyślnie zresetowałeś swój poziom" to player
Advertisement
Add Comment
Please, Sign In to add comment