Guest User

Untitled

a guest
Jun 23rd, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.54 KB | None | 0 0
  1. Set %SewingKit HAG
  2. Set %Scissors KAG
  3. Set %Cloths CUI
  4. Set %Clothing TQL_XDI_FZH_LDI_DCI_FWL
  5. Set %SewingKitsBag OUVESUD
  6. Set %ScissorsBag CVVESUD
  7. Set %ClothingBag ZLSTEQD
  8. Set %ClothsChest IAKHGVD
  9. Set #SYSMSGCOL 1264
  10. LookForRequirements:
  11. FindItem %Cloths C_ , #BackPackID
  12. If #FindKind <> -1
  13. {
  14. ExEvent Drag #FindID #FindStack
  15. Wait 5
  16. ExEvent Dropc %ClothsChest
  17. Wait 5
  18. GoTo LookForRequirements
  19. }
  20. FindItem %SewingKitsBag G_2
  21. If #FindKind = -1
  22. {
  23. Event SysMessage No bag for your sewing kits found!
  24. Halt
  25. }
  26. FindItem %ScissorsBag G_2
  27. If #FindKind = -1
  28. {
  29. Event SysMessage No bag for your scissors found!
  30. Halt
  31. }
  32. FindItem %ClothingBag G_2
  33. If #FindKind = -1
  34. {
  35. Event SysMessage No bag for your magic clothing found!
  36. Halt
  37. }
  38. FindItem %SewingKit C_ , %SewingKitsBag
  39. If #FindKind = -1
  40. {
  41. Event SysMessage No sewing kit in the sewing kits bag found!
  42. Halt
  43. }
  44. FindItem %Scissors C_ , %ScissorsBag
  45. If #FindKind = -1
  46. {
  47. Event SysMessage No scissors in the scissors bag found!
  48. Halt
  49. }
  50. FindItem %Cloths G_2
  51. If #FindKind = -1
  52. {
  53. Event SysMessage No cloths found!
  54. Halt
  55. }
  56. Event SysMessage Everything required has been found! Crafting!
  57. UseSewingKit:
  58. FindItem %SewingKit C_ , #BackPackID
  59. If #FindKind = -1
  60. {
  61. Event SysMessage Didn't find a sewing kit in your backpack, grabbing a new one!
  62. FindItem %SewingKit C_ , %SewingKitsBag
  63. If #FindKind = -1
  64. {
  65. Event SysMessage No sewing kit in the sewing kits bag found!
  66. Halt
  67. }
  68. ExEvent Drag #FindID #FindStack
  69. Wait 5
  70. ExEvent Dropc #BackPackID
  71. Wait 20
  72. GoTo UseSewingKit:
  73. }
  74. Set #LObjectID #FindID
  75. Event Macro 17
  76. Target 10s
  77. FindItem %Cloths G_2
  78. If #FindKind = -1
  79. {
  80. Event SysMessage No cloths found!
  81. Halt
  82. }
  83. Set #LTargetID #FindID
  84. Event Macro 22
  85. Repeat
  86. Until #ContName = generic_gump && #ContSize = 504_454
  87. Set #ContPosX 10
  88. Set #ContPosY 10
  89. Click 446 438
  90. Wait 2
  91. Key Back
  92. Key Back
  93. Key Back
  94. Key Back
  95. Msg 100
  96. Wait 5
  97. Randomnize:
  98. Event SysMessage Randomnizing what to craft...
  99. Set %Random #Random % 5
  100. If %Random = 0
  101. {
  102. Event SysMessage Fancy Shirt!
  103. Click 131 143
  104. Wait 5
  105. Click 127 219
  106. Wait 5
  107. GoTo Idle
  108. }
  109. If %Random = 1
  110. {
  111. Event SysMessage Cloak!
  112. Click 131 143
  113. Wait 5
  114. Click 132 318
  115. Wait 5
  116. GoTo Idle
  117. }
  118. If %Random = 2
  119. {
  120. Event SysMessage Kilt!
  121. Click 278 140
  122. Wait 2
  123. Click 168 314
  124. Wait 5
  125. GoTo Idle
  126. }
  127. If %Random = 3
  128. {
  129. Event SysMessage Robe!
  130. Click 446 142
  131. Wait 5
  132. Click 175 319
  133. Wait 5
  134. GoTo Idle
  135. }
  136. If %Random = 4
  137. {
  138. Event SysMessage Body Shash!
  139. Click 209 374
  140. Wait 5
  141. Click 173 219
  142. Wait 5
  143. GoTo Idle
  144. }
  145. Idle:
  146. FindItem Clothing C_ , #BackPackID
  147. If #FindKind <> -1
  148. {
  149. If #FindCol <> 0
  150. {
  151. ExEvent Drag #FindID #FindStack
  152. Wait 5
  153. ExEvent Dropc %ClothingBag
  154. Wait 5
  155. IgnoreItem #FindID
  156. GoTo Idle
  157. }
  158. IgnoreItem #FindID
  159. }
  160. FindItem %SewingKit C_ , #BackPackID
  161. If #FindKind = -1
  162. {
  163. Event SysMessage Didn't find a sewing kit in your backpack, grabbing a new one!
  164. FindItem %SewingKit C_ , %SewingKitsBag
  165. If #FindKind = -1
  166. {
  167. Event SysMessage No sewing kit in the sewing kits bag found!
  168. Halt
  169. }
  170. ExEvent Drag #FindID #FindStack
  171. Wait 5
  172. ExEvent Dropc #BackPackID
  173. Wait 20
  174. GoTo Idle:
  175. }
  176. Set #LObjectID #FindID
  177. Event Macro 17
  178. If #TargCurs = 1
  179. GoTo CutRegularClothing
  180. Wait 3s
  181. GoTo Idle
  182. CutRegularClothing:
  183. FindItem %Clothing C_ , #BackPackID
  184. If #FindKind = -1
  185. GoTo LookForRequirements
  186. If #FindCol <> 0
  187. {
  188. IgnoreItem #FindID
  189. GoTo CutRegularClothing
  190. }
  191. Set #LTargetID #FindID
  192. FindItem %Scissors C_ , %ScissorsBag
  193. If #FindKind = -1
  194. {
  195. Event SysMessage No scissors in the scissors bag found!
  196. Halt
  197. }
  198. Set #LObjectID #FindID
  199. Event Macro 17
  200. Target 1s
  201. Event Macro 22
  202. GoTo CutRegularClothing
Add Comment
Please, Sign In to add comment