Facebook
From Ungracious Butterfly, 7 Years ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 283
  1. if targetexists "harmful"
  2.   @canceltarget
  3.   @cancelautotarget
  4. endif
  5. if not listexists 'BodyTypes'
  6.   createlist 'BodyTypes'
  7.   //dragon
  8.   pushlist 'BodyTypes' 0x3b
  9.   //human
  10.   pushlist 'BodyTypes' 0x190
  11.   pushlist 'BodyTypes' 0x191
  12.   //wraith
  13.   pushlist 'BodyTypes' 0x2ec
  14.   pushlist 'BodyTypes' 0x2eb
  15.   //elf
  16.   pushlist 'BodyTypes' 0x25d
  17.   pushlist 'BodyTypes' 0x25e
  18.   //garg
  19.   pushlist 'BodyTypes' 0x29a
  20.   //lich
  21.   // pushlist 'BodyTypes' 0x2ed
  22.   //vamp
  23.   // pushlist 'BodyTypes' 0x2e9
  24.   // pushlist 'BodyTypes' 0x2e8
  25. endif
  26. //find lowest hp friend
  27. clearignorelist
  28. ignoreobject 'self'
  29. @setalias 'buddy' 'self'
  30. for 0 to 'BodyTypes'
  31.   while @findtype BodyTypes[] 'any' ground 0 10
  32.     if @infriendlist 'found' and hits 'found' < hits 'buddy'
  33.       @setalias 'buddy' 'found'
  34.     endif
  35.     ignoreobject 'found'
  36.   endwhile
  37. endfor
  38. if targetexists 'server' or targetexists 'beneficial'
  39.   target! 'buddy'
  40. endif
  41. if @inrange 'buddy' 10
  42.   if poisoned 'buddy' and not yellowhits 'buddy'
  43.     cast 'cure' 'buddy'
  44.   elseif hits 'buddy' < 99 and not yellowhits 'buddy'
  45.     cast 'heal' 'buddy'
  46.   elseif yellowhits 'buddy' and diffhits 'self' < 5
  47.     cast "Cleansing Winds" 'buddy'
  48.   endif
  49. endif