Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on damage of a player:
- attacker is not victim
- {LongShot} is true
- attacker is a player
- projectile is an arrow
- if distance between attacker and victim > {LSDistance}:
- increase the damage by {LSDamage}
- heal the attacker by {LSHeal} heart
- wait 1 tick
- broadcast "&9[LongShot] &a%attacker% &9a fait un longshot sur &c%victim%"
- command /Longshot [<text>] [<number>]:
- permission: Longshot.modify
- permission message: &c[LongShot] Tu n'as pas la permission !
- trigger:
- if arg 1 is "on":
- set {LongShot} to true
- send "&9[LongShot] &aLongshot activé !"
- stop
- if arg 1 is "off":
- clear {LongShot}
- send "&9[LongShot] &aLongshot désactivé !"
- stop
- if arg 2 is not set:
- send "&9[LongShot] &cSyntaxe : /LongShot <Damage/Distance/Heal/on/off> <nombre>"
- stop
- if arg 1 is not "distance" or "damage" or "heal" or "on" or "off":
- send "&9[LongShot] &cSyntaxe : /LongShot <Damage/Distance/Heal/on/off> <nombre>"
- stop
- if arg 1 is "distance":
- set {LSDistance} to arg 2
- send "&9[LongShot] &aLa distance du &9LongShot&a a été défini a &6%arg 2%"
- if arg 1 is "Damage":
- set {LSDamage} to arg 2
- send "&9[LongShot] &aLa victim prendra &6%arg 2% &c♥ &ade dégats (de +) lors d'un tir à plus de &6%{LSDistance}% blocks"
- if arg 1 is "Heal":
- set {LSHeal} to arg 2
- send "&9[LongShot] &aL'attacker sera heal de &6%arg 2% &c♥ &alors d'un tir à plus de &6%{LSDistance}% blocks"
- on load:
- if {LSDamage} is not set:
- set {LSDamage} to 1.5
- if {LSDistance} is not set:
- set {LSDistance} to 75
- if {LSHeal} is not set:
- set {LSHeal} to 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement