Advertisement
Guest User

ff

a guest
Jan 22nd, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.08 KB | None | 0 0
  1. //set to do not auto interrupt
  2. if not listexists 'BodyTypes'
  3. createlist 'BodyTypes'
  4. //human
  5. pushlist 'BodyTypes' 0x190
  6. pushlist 'BodyTypes' 0x191
  7. //wraith
  8. pushlist 'BodyTypes' 0x2ec
  9. pushlist 'BodyTypes' 0x2eb
  10. //elf
  11. pushlist 'BodyTypes' 0x25d
  12. pushlist 'BodyTypes' 0x25e
  13. //lich
  14. // pushlist 'BodyTypes' 0x2ed
  15. //vamp
  16. // pushlist 'BodyTypes' 0x2e9
  17. // pushlist 'BodyTypes' 0x2e8
  18. endif
  19. if not listexists 'ghosts'
  20. createlist 'ghosts'
  21. pushlist 'ghosts' 0x192
  22. pushlist 'ghosts' 0x193
  23. pushlist 'ghosts' 0x260
  24. pushlist 'ghosts' 0x25f
  25. endif
  26. if not timerexists 'nospammsg'
  27. createtimer 'nospammsg'
  28. endif
  29. //set this to specify how often Criminal/Blue/Murderer/Paralyzed msgs go off
  30. if timer 'nospammsg' > 1500
  31. @settimer 'nospammsg' 0
  32. @unsetalias 'sent'
  33. endif
  34. if not timerexists 'nospammortal'
  35. createtimer 'nospammortal'
  36. endif
  37. //set this to specify how often Mortal messages go off
  38. if timer 'nospammortal' > 500
  39. @settimer 'nospammortal' 0
  40. @unsetalias 'sentmortal'
  41. endif
  42. //res dead friends if res precast
  43. clearignorelist
  44. if targetexists 'beneficial'
  45. for 0 to 'ghosts'
  46. while @findtype ghosts[] 'any' ground 1 1
  47. if @infriendlist 'found' or @inparty 'found'
  48. if not @property '[SL]' 'found' and not @property '[Min]' 'found'
  49. if not @property '[TB]' 'found' and not @property '[CoM]' 'found'
  50. target! 'found'
  51. else
  52. if not @findalias 'sent'
  53. headmsg 'Faction' 43 'found'
  54. @setalias 'sent' 'self'
  55. endif
  56. endif
  57. else
  58. if not @findalias 'sent'
  59. headmsg 'Faction' 43 'found'
  60. @setalias 'sent' 'self'
  61. endif
  62. endif
  63. endif
  64. ignoreobject 'found'
  65. endwhile
  66. endfor
  67. endif
  68. //paralyzed friends
  69. clearignorelist
  70. ignoreobject 'self'
  71. for 0 to 'BodyTypes'
  72. while @findtype BodyTypes[] 'any' ground 0 10
  73. if not hits 'found' == 0
  74. if paralyzed 'found'
  75. if @inparty 'found' or @infriendlist 'found'
  76. cast 'clumsy' 'found'
  77. else
  78. if not @findalias 'sent'
  79. headmsg 'Paralyzed' 95 'found'
  80. @setalias 'sent' 'self'
  81. endif
  82. endif
  83. endif
  84. endif
  85. ignoreobject 'found'
  86. endwhile
  87. endfor
  88. //find lowest hp friend
  89. clearignorelist
  90. ignoreobject 'self'
  91. @setalias 'buddy' 'self'
  92. for 0 to 'BodyTypes'
  93. while @findtype BodyTypes[] 'any' ground 0 10
  94. if not hits 'found' == 0
  95. if not @findalias 'buddy'
  96. if @inparty 'found' or @infriendlist 'found'
  97. if murderer 'found' and @inregion 'guards' 'found' 10
  98. if not @findalias 'sent'
  99. headmsg 'Murderer in guards!' 33 'found'
  100. @setalias 'sent' 'self'
  101. endif
  102. elseif criminal 'found' and @inregion 'guards' 'found' 10
  103. if not @findalias 'sent'
  104. headmsg 'Criminal in guards!' 1000 'found'
  105. @setalias 'sent' 'self'
  106. endif
  107. elseif @property '[SL]' 'found' or @property '[Min]' 'found'
  108. if not @findalias 'sent'
  109. headmsg 'Faction' 43 'found'
  110. @setalias 'sent' 'self'
  111. endif
  112. elseif @property '[TB]' 'found' or @property '[CoM]' 'found'
  113. if not @findalias 'sent'
  114. headmsg 'Faction' 43 'found'
  115. @setalias 'sent' 'self'
  116. endif
  117. else
  118. @setalias 'buddy' 'found'
  119. endif
  120. endif
  121. endif
  122. if not yellowhits 'found'
  123. if @infriendlist 'found' or @inparty 'found'
  124. if hits 'found' < hits 'buddy'
  125. if murderer 'found' and @inregion 'guards' 'found' 10
  126. if not @findalias 'sent'
  127. headmsg 'Murderer in guards!' 33 'found'
  128. @setalias 'sent' 'self'
  129. endif
  130. elseif criminal 'found' and @inregion 'guards' 'found' 10
  131. if not @findalias 'sent'
  132. headmsg 'Criminal in guards!' 1000 'found'
  133. @setalias 'sent' 'self'
  134. endif
  135. elseif @property '[SL]' 'found' or @property '[Min]' 'found'
  136. if not @findalias 'sent'
  137. headmsg 'Faction' 43 'found'
  138. @setalias 'sent' 'self'
  139. endif
  140. elseif @property '[TB]' 'found' or @property '[CoM]' 'found'
  141. if not @findalias 'sent'
  142. headmsg 'Faction' 43 'found'
  143. @setalias 'sent' 'self'
  144. endif
  145. else
  146. @setalias 'buddy' 'found'
  147. endif
  148. endif
  149. endif
  150. else
  151. if not @findalias 'sentmortal'
  152. headmsg 'Mortaled!' 54 'found'
  153. @setalias 'sentmortal' 'self'
  154. endif
  155. endif
  156. endif
  157. ignoreobject 'found'
  158. endwhile
  159. endfor
  160. if targetexists 'server' or targetexists 'beneficial'
  161. target! 'buddy'
  162. endif
  163. if poisoned 'buddy' and @inrange 'buddy' 10
  164. cast 'cure' 'buddy'
  165. elseif hits 'buddy' < 95 and @inrange 'buddy' 10
  166. cast 'heal' 'buddy'
  167. endif
  168. @playmacro 'ParaMortal'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement