Advertisement
Guest User

Untitled

a guest
Feb 22nd, 2020
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.97 KB | None | 0 0
  1. Sub HealArea
  2. /if ( !${ShouldHealArea} || ${Me.Casting.ID} || ${Me.Stunned} ) /return
  3. /declare search string local radius 175 pc
  4. /declare limit int local ${SpawnCount[${search}]}
  5. /declare i int local ${Math.Rand[${limit}]}
  6. |/declare i int local 1
  7.  
  8. /for i ${i} to ${limit} {
  9. /squelch /target id ${NearestSpawn[${i}, ${search}].ID}
  10. /delay 1s ${Target.Buff[1].ID}||${Target.Buff[2].ID}
  11. /if ( ${Target.ID} && ${Target.Type.Equal[PC]} ) {
  12. /if ( ${Target.Distance} < 200 && ${Me.CurrentMana} > ${Spell[${HealSpell}].Mana} ) {
  13. /if ( ${Target.PctHPs} <= ${HealPercent} ) {
  14. /call Announce "Healing ${Target.CleanName} with ${HealSpell}"
  15. /casting "${HealSpell}" gem8 -targetid|${Target.ID}
  16. /delay ${Spell[${HealSpell}].CastTime.Seconds}s (${Cast.Status.Equal[I]}||${Target.PctHPs}>80)
  17. /if ( ${Target.PctHPs} > ${HealPercent} ) /stopcast
  18. /varset SitTimer ${SitTimer.OriginalValue}
  19. /return
  20. }
  21. }
  22. }
  23. }
  24. /next i
  25. /return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement