Advertisement
LukaMC59

Untitled

Nov 4th, 2017
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.86 KB | None | 0 0
  1. on connect:
  2. add 0 to {level.%player%}
  3. add 0 to {exp.%player%}
  4.  
  5. on death of zombie:
  6. attacker is a player:
  7. attacker is holding stone sword:
  8. chance of 50%:
  9. add 1 to {exp.%attacker%}
  10. send "&eEXP &8» &7+1" to attacker
  11. chance of 25%:
  12. add 2 to {exp.%attacker%}
  13. send "&eEXP &8» &7+2" to attacker
  14. chance of 12.5%:
  15. add 3 to {exp.%attacker%}
  16. send "&eEXP &8» &7+3" to attacker
  17. chance of 6.25%:
  18. add 4 to {exp.%attacker%}
  19. send "&eEXP &8» &7+4" to attacker
  20. chance of 3.125
  21. add 5 to {exp.%attacker%}
  22. send "&eEXP &8» &7+5" to attacker
  23. chance of 0.0005%:
  24. add 100 to {exp.%attacker%}
  25. send "&eEXP &8» &5JACKPOT &7+100" to attacker
  26. set 1st line of attacker's tool to "&eEXP &8» &e%{exp.%attacker%}%&7/&e150"
  27. set 2nd line of attacker's tool to "&eLevel &8» &e%{level.%attacker%}"
  28.  
  29. on death of skeleton:
  30. attacker is a player:
  31. attacker is holding stone sword:
  32. chance of 50%:
  33. add 1 to {exp.%attacker%}
  34. send "&eEXP &8» &7+1" to attacker
  35. chance of 25%:
  36. add 2 to {exp.%attacker%}
  37. send "&eEXP &8» &7+2" to attacker
  38. chance of 12.5%:
  39. add 3 to {exp.%attacker%}
  40. send "&eEXP &8» &7+3" to attacker
  41. chance of 6.25%:
  42. add 4 to {exp.%attacker%}
  43. send "&eEXP &8» &7+4" to attacker
  44. chance of 3.125
  45. add 5 to {exp.%attacker%}
  46. send "&eEXP &8» &7+5" to attacker
  47. chance of 0.0005%:
  48. add 100 to {exp.%attacker%}
  49. send "&eEXP &8» &5JACKPOT &7+100" to attacker
  50. set 1st line of attacker's tool to "&eEXP &8» &e%{exp.%attacker%}%&7/&e150"
  51. set 2nd line of attacker's tool to "&eLevel &8» &e%{level.%attacker%}"
  52.  
  53. every tick:
  54. loop every player:
  55. if {exp.%loop-player%} is more than 150:
  56. add 1 to {level.%loop-player%}
  57. remove 150 from {exp.%loop-player%}
  58. send "&cMagicaRPG &8» &7You have reached Level &c%{level.%loop-player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement