Advertisement
Guest User

asdf

a guest
Jul 28th, 2017
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.92 KB | None | 0 0
  1. sub hats()
  2. var OldWeight=0
  3. var times=0
  4. var timer=0
  5. OldWeight=UO.Weight
  6. wait(200)
  7. while times < 6 and uo.life > 1
  8. times=0
  9. wait(200)
  10. if (Uo.Count(0x175d) <= 30) then
  11. OldWeight=UO.Weight
  12. while UO.Weight == OldWeight and times < 6
  13. OldWeight=UO.Weight
  14. uo.exec("buy bolts vendor")
  15. wait(6000)
  16. lagsensor()
  17. times=times+1
  18. wend
  19. if not uo.weight == oldweight then
  20. UO.Exec("waitmenu 'Cloth' 'Headwear' 'Headwear' 'Bandana'")
  21. UO.Exec("waittargettype 0x175d ; usetype 0x0f9d")
  22. UO.Print("Tricorne count: "+STR(UO.Count("0x171b"))+"")
  23. UO.Print("Skullcap count: "+STR(UO.Count("0x171b"))+"")
  24. wait(4000)
  25. lagsensor()
  26. endif
  27. endif
  28.  
  29. if uo.count("0x175d") > 30 then
  30. repeat
  31. UO.Exec("waitmenu 'Cloth' 'Headwear' 'Headwear' 'Bandana'")
  32. UO.Exec("waittargettype 0x175d ; usetype 0x0f9d")
  33. UO.Print("Tricorne count: "+STR(UO.Count("0x171b"))+"")
  34. UO.Print("Bandana count: "+STR(UO.Count("0x153F"))+"")
  35. #wait(200)
  36. wait(4000)
  37. lagsensor()
  38. #timer=0
  39. #repeat
  40. #wait(100)
  41. #timer=timer+1
  42. #until uo.injournal("You put the") or uo.injournal("Tailoring failed") or timer > 600
  43. UNTIL (Uo.Count("0x171b") > 30) or (Uo.Count(0x175d) <= 30) or (Uo.Count(0x153F) > 60)
  44. endif
  45.  
  46.  
  47.  
  48. if (uo.count("0x0171b")>30) or (Uo.Count(0x153F)>60) then
  49. repeat
  50. times=0
  51. OldWeight=UO.Weight
  52. while UO.Weight == OldWeight and times < 6
  53. OldWeight=UO.Weight
  54. UO.Exec("sell tricorne vendor")
  55. wait(2000)
  56. lagsensor()
  57. times=times+1
  58. wend
  59. UNTIL (Uo.Count(0x171b) < 3) and (Uo.Count(0x153F)<3) or times >= 6
  60. endif
  61. wend
  62. end sub
  63.  
  64. sub guards()
  65. repeat
  66. wait(100)
  67. if UO.life < uo.str then
  68. uo.say("Guards")
  69. wait(500)
  70. if UO.life < 0 then
  71. uo.exec("terminate guards")
  72. endif
  73. endif
  74. wait(100)
  75. until false
  76. wait(100)
  77. end sub
  78.  
  79. sub lagsensor()
  80. UO.deletejournal()
  81. UO.Click(UO.GetSerial("backpack"))
  82. repeat
  83. wait(250)
  84. until UO.InJournal("backpack")
  85. return 1
  86. end sub
  87.  
  88.  
  89.  
  90.  
  91. sub recall()
  92. var i,n
  93.  
  94. Dim A[5]
  95. A[1] = 0x40001EFB ;Runa 1
  96. A[2] = 0x4000A730 ;Runa 2
  97. A[3] = 0x4001ACBE ;Runa 3
  98. A[4] = 0x4000A3F1 ;Runa 4
  99. A[5] = 0x4002E267 ;Runa 5
  100. i = 7000
  101.  
  102. FOR n=1 TO 5
  103. if (uo.count("0x0F7A")<10) or (uo.count("0x0F86")<10) or (uo.count("0x0F7B")<10) or (uo.count
  104.  
  105. ("0x0eed")>15000) then
  106. refill()
  107. endif
  108. repeat
  109. uo.deletejournal()
  110. UO.Cast("Recall",A[n])
  111. lagsensor()
  112. Wait(i)
  113. until uo.injournal("The spell fizzles.")==0
  114. if uo.injournal("rune is starting to fade") then
  115. repeat
  116. uo.deletejournal()
  117. UO.Cast("Mark",A[n])
  118. lagsensor()
  119. Wait(i)
  120. until uo.injournal("The spell fizzles.")==0
  121. endif
  122. hats()
  123. NEXT
  124.  
  125. uo.exec("exec omstart")
  126.  
  127. end sub
  128.  
  129.  
  130. sub omstart()
  131. uo.exec("terminate recall")
  132. uo.exec("terminate recall")
  133. uo.exec("terminate recall")
  134. uo.exec("terminate hats")
  135. uo.exec("terminate hats")
  136. uo.exec("terminate hats")
  137. uo.exec("terminate guards")
  138. uo.exec("terminate guards")
  139. uo.exec("terminate guards")
  140. wait(2000)
  141. uo.exec("exec recall")
  142. uo.exec("exec guards")
  143. endsub
  144.  
  145. sub refill()
  146.  
  147. repeat
  148. uo.deletejournal()
  149. UO.Cast("Recall","0x40000F32")#husan
  150. wait(6000)
  151. Until UO.injournal("The spell fizzles.") ==0
  152.  
  153.  
  154. if uo.injournal("rune is starting to fade") then
  155. repeat
  156. uo.deletejournal()
  157. UO.Cast("Mark","0x40000F32")#husan
  158. lagsensor()
  159. Wait(8000)
  160. until uo.injournal("The spell fizzles.")==0
  161. endif
  162.  
  163.  
  164. uo.setreceivingcontainer("0x400322ed")
  165. uo.useobject("0x400322ed")
  166. wait(2000)
  167.  
  168. if uo.count("0x0eed") > 15000 then
  169. uo.setreceivingcontainer("0x400322ed")
  170. UO.Exec("findtype 0x0eed in backpack;grab 13000 finditem")
  171. endif
  172.  
  173.  
  174. if uo.count("0x0F7A") < 20 then
  175. uo.setreceivingcontainer("backpack")
  176. uo.exec("findtype 0x0F7A in 0x400322ed;grab 20 finditem")
  177. wait(1000)
  178. endif
  179.  
  180.  
  181. if uo.count("0x0F86") < 20 then
  182. uo.setreceivingcontainer("backpack")
  183. uo.exec("findtype 0x0F86 in 0x400322ed;grab 20 finditem")
  184. wait(1000)
  185. endif
  186.  
  187.  
  188. if uo.count("0x0F7B") < 20 then
  189. uo.setreceivingcontainer("backpack")
  190. uo.exec("findtype 0x0F7B in 0x400322ed;grab 20 finditem")
  191. wait(1000)
  192. endif
  193.  
  194. endsub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement