Advertisement
LukaMC59

Untitled

Nov 5th, 2017
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.75 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 name of attacker's tool to "&4EXP: &c{exp.%attacker%}% &4Level: &c%{level.%attacker%}%"
  27.  
  28. on death of skeleton:
  29. attacker is a player:
  30. attacker is holding stone sword:
  31. chance of 50%:
  32. add 1 to {exp.%attacker%}
  33. send "&eEXP &8» &7+1" to attacker
  34. chance of 25%:
  35. add 2 to {exp.%attacker%}
  36. send "&eEXP &8» &7+2" to attacker
  37. chance of 12.5%:
  38. add 3 to {exp.%attacker%}
  39. send "&eEXP &8» &7+3" to attacker
  40. chance of 6.25%:
  41. add 4 to {exp.%attacker%}
  42. send "&eEXP &8» &7+4" to attacker
  43. chance of 3.125
  44. add 5 to {exp.%attacker%}
  45. send "&eEXP &8» &7+5" to attacker
  46. chance of 0.0005%:
  47. add 100 to {exp.%attacker%}
  48. send "&eEXP &8» &5JACKPOT &7+100" to attacker
  49. set name of attacker's tool to "&4EXP: &c{exp.%attacker%}% &4Level: &c%{level.%attacker%}%"
  50.  
  51. every tick in all worlds:
  52. loop all players:
  53. if {exp.%loop-player%} is more than 150:
  54. add 1 to {level.%loop-player%}
  55. remove 150 from {exp.%loop-player%}
  56. send "&9AdeptRPG &8» &7You have reached Level &c%{level.%loop-player%}%"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement