Advertisement
zzillizz

heal friends

Feb 24th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. //set to do not auto interrupt
  2. if not listexists 'BodyTypes'
  3. createlist 'BodyTypes'
  4. //human
  5. pushlist 'BodyTypes' 0x2e8
  6. pushlist 'BodyTypes' 0x190
  7. pushlist 'BodyTypes' 0x191
  8. //wraith
  9. pushlist 'BodyTypes' 0x2ec
  10. pushlist 'BodyTypes' 0x2eb
  11. //elf
  12. pushlist 'BodyTypes' 0x25d
  13. pushlist 'BodyTypes' 0x25e
  14. //lich
  15. pushlist 'BodyTypes' 0x2ed
  16. //vamp
  17. pushlist 'BodyTypes' 0x2e9
  18. pushlist 'BodyTypes' 0x2e8
  19. endif
  20. if not listexists 'ghosts'
  21. createlist 'ghosts'
  22. pushlist 'ghosts' 0x192
  23. pushlist 'ghosts' 0x193
  24. pushlist 'ghosts' 0x260
  25. pushlist 'ghosts' 0x25f
  26. endif
  27. //res dead friends if res precast
  28. clearignorelist
  29. if targetexists 'beneficial'
  30. for 0 to 'ghosts'
  31. while @findtype ghosts[] 'any' ground 1 1
  32. if @infriendlist 'found'
  33. target! 'found'
  34. endif
  35. ignoreobject 'found'
  36. endwhile
  37. endfor
  38. endif
  39. //paralyzed friends
  40. clearignorelist
  41. ignoreobject 'self'
  42. for 0 to 'BodyTypes'
  43. while @findtype BodyTypes[] 'any' ground 0 10
  44. if @infriendlist 'found' and paralyzed 'found'
  45. cast 'clumsy' 'found'
  46. endif
  47. ignoreobject 'found'
  48. endwhile
  49. endfor
  50. //find lowest hp friend
  51. clearignorelist
  52. ignoreobject 'self'
  53. @setalias 'buddy' 'self'
  54. for 0 to 'BodyTypes'
  55. while @findtype BodyTypes[] 'any' ground 0 10
  56. if not @findalias 'buddy' and @infriendlist 'found'
  57. if murderer 'found' and @inregion 'guards' 'found' 10
  58. headmsg 'Murderer in guards!' 33 'found'
  59. elseif criminal 'found' and @inregion 'guards' 'found' 10
  60. headmsg 'Criminal in guards!' 1000 'found'
  61. else
  62. @setalias 'buddy' 'found'
  63. endif
  64. endif
  65. if @infriendlist 'found' and hits 'found' < hits 'buddy'
  66. if not yellowhits 'found'
  67. if murderer 'found' and @inregion 'guards' 'found' 10
  68. headmsg 'Murderer in guards!' 33 'found'
  69. elseif criminal 'found' and @inregion 'guards' 'found' 10
  70. headmsg 'Criminal in guards!' 1000 'found'
  71. else
  72. @setalias 'buddy' 'found'
  73. endif
  74. else
  75. headmsg 'Mortaled!' 54 'found'
  76. endif
  77. endif
  78. ignoreobject 'found'
  79. endwhile
  80. endfor
  81. if targetexists 'server' or targetexists 'beneficial'
  82. target! 'buddy'
  83. endif
  84. if poisoned 'buddy' and @inrange 'buddy' 10
  85. cast 'cure' 'buddy'
  86. elseif hits 'buddy' < 95 and @inrange 'buddy' 10
  87. cast 'heal' 'buddy'
  88. endif
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement