Advertisement
Guest User

check_jewelry_loot

a guest
Jan 17th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.40 KB | None | 0 0
  1. if not @findobject 'Loot Bag' and findalias 'Loot Bag'
  2. unsetalias 'Loot Bag'
  3. endif
  4. if not findalias 'Loot Bag'
  5. headmsg 'Select Loot Bag'
  6. promptalias 'Loot Bag'
  7. endif
  8. if not listexists 'Jewelry'
  9. @createlist 'Jewelry'
  10. endif
  11. if not listexists 'corpses'
  12. @createlist 'corpses'
  13. endif
  14. if not timerexists 'consecrate'
  15. createtimer 'consecrate'
  16. settimer 'consecrate' 10000
  17. endif
  18. if timer 'consecrate' > 10000
  19. @cast! 'consecrate weapon'
  20. settimer 'consecrate' 0
  21. endif
  22. if not @buffexists 'divine fury'
  23. cast 'divine fury'
  24. waitfortarget 1688
  25. target! 'self'
  26. endif
  27. if not listexists 'DropChests'
  28. @createlist 'DropChests'
  29. @pushlist! 'DropChests' 0xe7e
  30. @pushlist! 'DropChests' 0xe3f
  31. @pushlist! 'DropChests' 0xe7f
  32. @pushlist! 'DropChests' 0xe3e
  33. @pushlist! 'DropChests' 0x20ca
  34. endif
  35. if list 'Jewelry' == 0
  36. @pushlist! 'Jewelry' 0x108a
  37. @pushlist! 'Jewelry' 0x1f09
  38. @pushlist! 'Jewelry' 0x1086
  39. @pushlist! 'Jewelry' 0x1f06
  40. endif
  41. if not listexists 'Skill1'
  42. @createlist 'Skill1'
  43. endif
  44. if @list 'Skill1' != 28
  45. @pushlist! 'Skill1' 'Animal Taming'
  46. @pushlist! 'Skill1' 'Animal Lore'
  47. @pushlist! 'Skill1' 'Veterinary'
  48. @pushlist! 'Skill1' 'Provocation'
  49. @pushlist! 'Skill1' 'Anatomy'
  50. @pushlist! 'Skill1' 'Archery'
  51. @pushlist! 'Skill1' 'Stealing'
  52. @pushlist! 'Skill1' 'Tactics'
  53. @pushlist! 'Skill1' 'Swordsmanship'
  54. @pushlist! 'Skill1' 'Fencing'
  55. @pushlist! 'Skill1' 'Ninjitsu'
  56. @pushlist! 'Skill1' 'Healing'
  57. @pushlist! 'Skill1' 'Focus'
  58. @pushlist! 'Skill1' 'Mace Fighting'
  59. @pushlist! 'Skill1' 'Magery'
  60. @pushlist! 'Skill1' 'Evaluating Intelligence'
  61. @pushlist! 'Skill1' 'Resisting Spells'
  62. @pushlist! 'Skill1' 'Spirit Speak'
  63. @pushlist! 'Skill1' 'Necromancy'
  64. @pushlist! 'Skill1' 'Parrying'
  65. @pushlist! 'Skill1' 'Bushido'
  66. @pushlist! 'Skill1' 'Peacemaking'
  67. @pushlist! 'Skill1' 'Discordance'
  68. @pushlist! 'Skill1' 'Provocation'
  69. @pushlist! 'Skill1' 'Musicianship'
  70. @pushlist! 'Skill1' 'Wrestling'
  71. @pushlist! 'Skill1' 'Chivalry'
  72. endif
  73. if not listexists 'Skill2'
  74. @createlist 'Skill2'
  75. endif
  76. if @list 'Skill2' != 28
  77. @pushlist! 'Skill2' 'Animal Taming'
  78. @pushlist! 'Skill2' 'Animal Lore'
  79. @pushlist! 'Skill2' 'Veterinary'
  80. @pushlist! 'Skill2' 'Provocation'
  81. @pushlist! 'Skill2' 'Anatomy'
  82. @pushlist! 'Skill2' 'Archery'
  83. @pushlist! 'Skill2' 'Stealing'
  84. @pushlist! 'Skill2' 'Tactics'
  85. @pushlist! 'Skill2' 'Swordsmanship'
  86. @pushlist! 'Skill2' 'Fencing'
  87. @pushlist! 'Skill2' 'Ninjitsu'
  88. @pushlist! 'Skill2' 'Healing'
  89. @pushlist! 'Skill2' 'Focus'
  90. @pushlist! 'Skill2' 'Mace Fighting'
  91. @pushlist! 'Skill2' 'Magery'
  92. @pushlist! 'Skill2' 'Evaluating Intelligence'
  93. @pushlist! 'Skill2' 'Resisting Spells'
  94. @pushlist! 'Skill2' 'Spirit Speak'
  95. @pushlist! 'Skill2' 'Necromancy'
  96. @pushlist! 'Skill2' 'Parrying'
  97. @pushlist! 'Skill2' 'Bushido'
  98. @pushlist! 'Skill2' 'Peacemaking'
  99. @pushlist! 'Skill2' 'Discordance'
  100. @pushlist! 'Skill2' 'Provocation'
  101. @pushlist! 'Skill2' 'Musicianship'
  102. @pushlist! 'Skill2' 'Wrestling'
  103. @pushlist! 'Skill2' 'Chivalry'
  104. endif
  105. if not @buffexists 'bless'
  106. cast 'bless'
  107. waitfortarget 1688
  108. target! 'self'
  109. endif
  110. //if not inregion 'town'
  111. @Getenemy 'murderer' 'Enemy' 'criminal' 'gray' 'closest'
  112. @setability 'secondary' 'on'
  113. @attack! 'enemy'
  114. //endif
  115. if not @findtype 0x2006 'any' 'ground' 1 2
  116. pause 250
  117. elseif @setalias 'CorpseToLoot' 'found'
  118. @useobject! 'CorpseToLoot'
  119. endif
  120. for 0 to 'Jewelry'
  121. if @findtype 'Jewelry[]' 'any' 'CorpseToLoot'
  122. @canceltarget
  123. @setalias! 'JewelToCheck' 'found'
  124. waitforproperties 'JewelToCheck' 1200
  125. for 0 to Skill1
  126. if @property 'Skill1[]' 'found' >= 10
  127. @poplist 'Skill2' 'Skill1[]'
  128. for 0 to Skill2
  129. if @property 'Skill2[]' 'found' >= 10
  130. pause 80
  131. msg "[e woohoo"
  132. headmsg "Grabbing Epic Jewlery!" 1987
  133. pause 80
  134. sysmsg 'Moving Jewel to Loot Bag' '1999'
  135. @moveitem 'JewelToCheck' 'Loot Bag' 50 50 50 1
  136. pause 1000
  137. ignoreobject 'JewelToCheck'
  138. break
  139. //msg "[claim"
  140. //waitfortarget 250
  141. //target! 'CorpseToLoot'
  142. //waitfortarget 250
  143. //@canceltarget
  144. endif
  145. endfor
  146. endif
  147. endfor
  148. endif
  149. endfor
  150. //if @inrange 'CorpseToLoot'2
  151. // @msg "[claim"
  152. // waitfortarget 250
  153. // target! 'CorpseToLoot'
  154. // waitfortarget 250
  155. // @canceltarget
  156. //endif
  157. if @injournal 'Shield of Spikes!' 'system'
  158. if not @buffexists 'divine fury'
  159. cast 'divine fury'
  160. waitfortarget 1688
  161. target! 'self'
  162. endif
  163. replygump 0x4239a64f 1004
  164. waitforgump 0x4239a64f 15000
  165. sysmsg 'SOS Rearmed' '1990'
  166. endif
  167. if @injournal 'You failed the augment skill check' 'system'
  168. if stam < 50
  169. cast 'divine fury'
  170. pause 500
  171. endif
  172. replygump 0x4239a64f 1004
  173. waitforgump 0x4239a64f 15000
  174. sysmsg 'SOS Rearmed' '1990'
  175. endif
  176. @clearjournal
  177. // Inventory check
  178. if @weight >= 500
  179. @msg "[ffp"
  180. endif
  181. if @contents 'backpack' >= 165 or @contents 'Loot Bag' >= 100
  182. @msg "[ffp"
  183. headmsg "Nearly Full Backpack!!!" 1987 'self'
  184. endif
  185. // end Inventory Check
  186. if not inregion 'town'
  187. @Getenemy 'murderer' 'Enemy' 'criminal' 'gray' 'closest'
  188. @setability 'secondary' 'on'
  189. @attack! 'enemy'
  190. endif
  191. // Double Clicks all gold in your pack
  192. if @findtype '0xeed' 'any' 'backpack'
  193. @useobject! 'found'
  194. endif
  195. // End Double click all gold
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement