Advertisement
Guest User

skript

a guest
Jul 28th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.52 KB | None | 0 0
  1. # ------------------------------
  2. # ----------- Chasseur ----------
  3. # ------------------------------
  4.  
  5. On death:
  6. if attacker is a player:
  7.  
  8. if victim is Creeper:
  9. set {_expchasseur} to {@Creeper}
  10. chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
  11. set {_doubledrop} to 1
  12.  
  13. if victim is Ghast:
  14. set {_expchasseur} to {@Ghast}
  15. chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
  16. set {_doubledrop} to 1
  17.  
  18. if victim is Zombie:
  19. set {_expchasseur} to {@Zombie}
  20. chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
  21. set {_doubledrop} to 1
  22.  
  23. if victim is Skeleton:
  24. set {_expchasseur} to {@Skeleton}
  25. chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
  26. set {_doubledrop} to 1
  27.  
  28.  
  29. if {_expchasseur} is set:
  30. set {_expchasseur} to {_expchasseur}*({metier.chasseur.level.%uuid of attacker%}*{@GainLevel}+1)*{@ExpM.Skill}*{@ChasM.Skill}*{@ExpM.VIP}
  31. add {_expchasseur} to {metier.chasseur.exp.%uuid of attacker%}
  32. add {_expchasseur} to {metier.chasseur.exptemp.%uuid of attacker%}
  33. set {_expgeneral} to {_expchasseur}*{@ChasG.Skill}*{@ExpG.Skill}*{@ExpG.VIP}
  34. add {_expgeneral} to {level.exp.%uuid of attacker%}
  35. add {_expgeneral} to {level.exptemp.%uuid of attacker%}
  36. if {_doubledrop} = 1:
  37. if {metier.doubledrops.message.%uuid of attacker%} is 1:
  38. send action bar from "&a+&r%{_expchasseur}% {@Exp} chasseur et &a+&r%{_expgeneral}% {@Exp} Général (&eDouble Drops&r)" to attacker
  39. else if {metier.message.%uuid of attacker%} is 1:
  40. send action bar from "&a+&r%{_expchasseur}% {@Exp} chasseur et &a+&r%{_expgeneral}% {@Exp} Général" to attacker
  41.  
  42. if {scoreboard.%uuid of attacker%} = 1 or 5:
  43. execute attacker command "/scoreboard chasseur"
  44.  
  45.  
  46. if {metier.chasseur.exp.%uuid of attacker%} > {metier.chasseur.exp.total.%uuid of attacker%}:
  47. remove {metier.chasseur.exp.total.%uuid of attacker%} from {metier.chasseur.exp.%uuid of attacker%}
  48. add 1 to {metier.chasseur.level.%uuid of attacker%}
  49. set {metier.chasseur.exp.total.%uuid of attacker%} to 100+{metier.chasseur.level.%uuid of attacker%}*({metier.chasseur.level.%uuid of attacker%}/10)*75+(({metier.chasseur.level.%uuid of attacker%}+200)*{metier.chasseur.level.%uuid of attacker%}*0.8)
  50.  
  51. if {levelup.metier.message.%uuid of attacker%} is 1:
  52. send attacker title "&6LEVEL UP !" with subtitle "&fTu passes level &b%{metier.chasseur.level.%uuid of attacker%}%&r en chasseur" for 8 seconds
  53. wait 1 second
  54. message "&a%attacker% &fvient de passer level &b%{metier.chasseur.level.%uuid of attacker%}%&r en chasseur!" to all players
  55.  
  56. on Click :
  57. if player is holding a Diamond Sword:
  58. if {metier.chasseur.level.%uuid of player%} is greater than 15:
  59. else:
  60. cancel event
  61. message "tu n'a pas assez d'xp pour utilisé la pioche en diamand"
  62.  
  63. if player is holding a Golden Sword:
  64. if {metier.chasseur.level.%uuid of player%} is greater than 10:
  65. else:
  66. cancel event
  67. message "tu n'a pas assez d'xp pour utilisé la pioche en or"
  68. if player is holding a Iron Sword:
  69. if {metier.chasseur.level.%uuid of player%} is greater than 5:
  70. else:
  71. cancel event
  72. message "tu n'a pas assez d'xp pour utilisé la pioche en fer"
  73.  
  74. if player is holding a Stone Sword:
  75. if {metier.chasseur.level.%uuid of player%} is greater than 2:
  76. else:
  77. cancel event
  78. message "tu n'a pas assez d'xp pour utilisé la pioche en pierre"
  79.  
  80. if player is holding a Wooden Sword:
  81. if {metier.chasseur.level.%uuid of player%} is greater than 0:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement