Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # ------------------------------
- # ----------- Chasseur ----------
- # ------------------------------
- On death:
- if attacker is a player:
- if victim is Creeper:
- set {_expchasseur} to {@Creeper}
- chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
- set {_doubledrop} to 1
- if victim is Ghast:
- set {_expchasseur} to {@Ghast}
- chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
- set {_doubledrop} to 1
- if victim is Zombie:
- set {_expchasseur} to {@Zombie}
- chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
- set {_doubledrop} to 1
- if victim is Skeleton:
- set {_expchasseur} to {@Skeleton}
- chance of ({@Double}*{metier.chasseur.level.%uuid of attacker%})%:
- set {_doubledrop} to 1
- if {_expchasseur} is set:
- set {_expchasseur} to {_expchasseur}*({metier.chasseur.level.%uuid of attacker%}*{@GainLevel}+1)*{@ExpM.Skill}*{@ChasM.Skill}*{@ExpM.VIP}
- add {_expchasseur} to {metier.chasseur.exp.%uuid of attacker%}
- add {_expchasseur} to {metier.chasseur.exptemp.%uuid of attacker%}
- set {_expgeneral} to {_expchasseur}*{@ChasG.Skill}*{@ExpG.Skill}*{@ExpG.VIP}
- add {_expgeneral} to {level.exp.%uuid of attacker%}
- add {_expgeneral} to {level.exptemp.%uuid of attacker%}
- if {_doubledrop} = 1:
- if {metier.doubledrops.message.%uuid of attacker%} is 1:
- send action bar from "&a+&r%{_expchasseur}% {@Exp} chasseur et &a+&r%{_expgeneral}% {@Exp} Général (&eDouble Drops&r)" to attacker
- else if {metier.message.%uuid of attacker%} is 1:
- send action bar from "&a+&r%{_expchasseur}% {@Exp} chasseur et &a+&r%{_expgeneral}% {@Exp} Général" to attacker
- if {scoreboard.%uuid of attacker%} = 1 or 5:
- execute attacker command "/scoreboard chasseur"
- if {metier.chasseur.exp.%uuid of attacker%} > {metier.chasseur.exp.total.%uuid of attacker%}:
- remove {metier.chasseur.exp.total.%uuid of attacker%} from {metier.chasseur.exp.%uuid of attacker%}
- add 1 to {metier.chasseur.level.%uuid of attacker%}
- 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)
- if {levelup.metier.message.%uuid of attacker%} is 1:
- send attacker title "&6LEVEL UP !" with subtitle "&fTu passes level &b%{metier.chasseur.level.%uuid of attacker%}%&r en chasseur" for 8 seconds
- wait 1 second
- message "&a%attacker% &fvient de passer level &b%{metier.chasseur.level.%uuid of attacker%}%&r en chasseur!" to all players
- on Click :
- if player is holding a Diamond Sword:
- if {metier.chasseur.level.%uuid of player%} is greater than 15:
- else:
- cancel event
- message "tu n'a pas assez d'xp pour utilisé la pioche en diamand"
- if player is holding a Golden Sword:
- if {metier.chasseur.level.%uuid of player%} is greater than 10:
- else:
- cancel event
- message "tu n'a pas assez d'xp pour utilisé la pioche en or"
- if player is holding a Iron Sword:
- if {metier.chasseur.level.%uuid of player%} is greater than 5:
- else:
- cancel event
- message "tu n'a pas assez d'xp pour utilisé la pioche en fer"
- if player is holding a Stone Sword:
- if {metier.chasseur.level.%uuid of player%} is greater than 2:
- else:
- cancel event
- message "tu n'a pas assez d'xp pour utilisé la pioche en pierre"
- if player is holding a Wooden Sword:
- if {metier.chasseur.level.%uuid of player%} is greater than 0:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement