Guest User

Untitled

a guest
Sep 25th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. ;==================================
  2. ; Script Name: Alchemy for Freeshards
  3. ; Author: ReDragoN
  4. ; Version: 1.1
  5. ; Client Tested with: 2.0.3
  6. ; EUO version tested with: 1.42.0098
  7. ; Shard OSI / FS: Mythik Sphere
  8. ; Revision Date: 24.01.05
  9. ; Public Release: 02.11.04
  10. ; Purpose: Will train alchemy. You can set the pot you want to craft.
  11. ; Disclaimer: You can modify it, but leave this header
  12. ;==================================
  13.  
  14. ; ID of the KEG
  15. Set %KegID XXXXXX
  16.  
  17. ; BagPack ID
  18. Set %BackPackID XXXXXX
  19.  
  20. ; ID of the bag with regs
  21. Set %RegBagID XXXXXX
  22.  
  23. ; X/Y where you macro
  24. Set %MoveX X
  25. Set %MoveY Y
  26.  
  27. ; IDTYPE of the reg
  28. Set %IDType HUF ; blackmoor
  29.  
  30. ; Color of the pot (you can find it with #findcol)
  31. Set %ColorPot 1153
  32.  
  33. ; Where you will click on the craft gump
  34. Set %ClickMX 146
  35. Set %ClickMY 67
  36.  
  37. Set %TheSkill Alchemy
  38. Gosub Skill %TheSkill startskill
  39. Set %AlchCounter #Scnt2 + 300
  40. Set %Pot 0
  41.  
  42. MakePot:
  43. IgnoreItem Reset
  44. Set %TimeOut #Scnt + 4
  45. FindItem WUF C_ , %BackPackID
  46. If #FindCol = %ColorPot
  47. Goto FillKeg
  48. FindItem %IDType C_ , %BackPackID
  49. If #FindKind = -1 || #FindStack < 2
  50. Goto DragReg
  51. Set #LObjectID #FindID
  52. Event Macro 17
  53. WaitAlchGump:
  54. If #scnt >= %TimeOut
  55. Goto MakePot
  56. If #ContName <> objpicker_gump
  57. Goto WaitAlchGump
  58. ContPos 0 0
  59. Click %ClickMX %ClickMY d f
  60. Gosub Eat
  61. Gosub AlchemySkill
  62. Set %TimeOut #Scnt + 12
  63. Goto FillKeg
  64.  
  65. FillKeg:
  66. If #Scnt >= %TimeOut
  67. Goto MakePot
  68. FindItem WUF C_ , %BackPackID
  69. If #FindCol = 0 2
  70. IgnoreItem #FindID
  71. Goto FillKeg
  72. If #FindCol = %ColorPot
  73. Goto Keg
  74. Goto FillKeg
  75.  
  76. Keg:
  77. FindItem WUF C_ , %BackPackID
  78. If #FindCol <> %ColorPot 2
  79. IgnoreItem #FindID
  80. Goto Keg
  81. Set #LTargetID #FindID
  82. Set #LTargetKind 1
  83. FindItem %KegID G_1
  84. Set #LObjectID #FindID
  85. Event Macro 17
  86. Target
  87. Event Macro 22
  88. Gosub Skill %TheSkill skillnow
  89. Gosub Skill %TheSkill gain
  90. SetUoTitle Ultima Online - #Charname - #shard ((( Macroing : %TheSkill ||| Start Skill : %StartSkill ||| Skill Now : %SkillNow ||| Gain : %Gain )))
  91. Set %Pot %Pot + 1
  92. Goto MakePot
  93.  
  94. DragReg:
  95. Set #LObjectID %RegBagID
  96. Event Macro 17
  97. WaitBagGump:
  98. If #ContName <> container_gump
  99. Goto WaitBagGump
  100. Wait 1s
  101. ContPos 10 10
  102. Gosub Drag %IDType 500 320 200 C_ , %RegBagID
  103. Click 30 30 r
  104. Move %movex %movey 0
  105. Goto MakePot
  106.  
  107. Sub Eat
  108. FindItem RUD G_2
  109. Set #lObjectID #FindID
  110. Event Macro 17
  111. Return
  112.  
  113. Sub AlchemySkill
  114. If #Scnt2 > %AlchCounter 5
  115. Msg $
  116. Msg + Alchemy Skill +$
  117. Msg Skill : %SkillNow & Gain : %Gain $
  118. Msg Pot Crafted : %Pot $
  119. Set %AlchCounter #Scnt2 + 300
  120. Return
  121.  
  122.  
  123.  
  124.  
  125. ;========================================
  126. ; Script Name: Janus' Drag & Drop Sub
  127. ; Author: Janus
  128. ; Version: 1.3
  129. ; Client Tested with: 4.0.1a client and 4.0.1e
  130. ; EUO version tested with: 1.42 B0094
  131. ; Shard OSI / FS: Local Pol Server and OSI Oceana
  132. ; Revision Date: 07-27-04
  133. ; Public Release: 07-27-04
  134. ; Purpose: Drags and Drops Items to a specified location in light velocity
  135. ;========================================
  136. sub drag
  137. drag:
  138. wait %6
  139. if #contname = drag_gump
  140. goto waitfordraggump
  141. if #contname = stack_gump
  142. goto waitforstackgump
  143. finditem %1 %5
  144. if #findkind = -1
  145. return
  146. Event Drag #FindID
  147. waitforstackgump:
  148. if #contname = drag_gump || #findstack < 2
  149. goto waitfordraggump
  150. if #contname <> stack_gump && #findstack > 1
  151. goto waitforstackgump
  152. if %2 = all
  153. msg $
  154. else
  155. msg %2 $
  156. waitfordraggump:
  157. if #contname <> drag_gump
  158. goto waitfordraggump
  159. click %3 %4 p
  160. if %2 = all
  161. goto drag
  162. else
  163. return
  164.  
  165.  
  166. ;========================================
  167. ; Script Name: Janus' Skillgain Sub
  168. ; Author: Janus
  169. ; Version: 1.0
  170. ; Client Tested with: 4.0.1a client
  171. ; EUO version tested with: 1.42 B0094
  172. ; Shard OSI / FS: Local Pol Server
  173. ; Revision Date: 07-26-04
  174. ; Public Release: 07-26-04
  175. ; Purpose: Skillgain Check and formation
  176. ;========================================
  177.  
  178. sub skill
  179. chooseskill %1 real
  180. if %2 = startskill
  181. set %src_ss #skill
  182. set %src_skill #skill
  183. set %skill #skill
  184. set %gain %src_skill - %src_ss
  185. if %2 = gain
  186. set %skill %gain
  187. str len %skill
  188. if #strres < 2 2
  189. str ins %skill #dot #strres
  190. set %skill 0 , #strres
  191. else 2
  192. str ins %skill #dot #strres
  193. set %skill #strres
  194. if %2 = gain
  195. set %gain %skill
  196. if %2 = startskill
  197. set %startskill %skill
  198. if %2 = skillnow
  199. set %skillnow %skill
  200. return
Add Comment
Please, Sign In to add comment