Advertisement
Guest User

Untitled

a guest
May 26th, 2016
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.93 KB | None | 0 0
  1. ; Macro de herreria, hacer dagas y fundirlas.
  2. ; NOTA: Hacer la primera daga a mano.
  3.  
  4. event sysmessage Abre el contenedor donde esten los lingotes y martillos y pulsa ESC.
  5.  
  6. Start:
  7. onhotkey ESC
  8. {
  9. contpos 50 20
  10. wait 20
  11. set %cofre #LOBJECTID
  12. wait 20
  13. goto Materiales
  14. }
  15. goto Start
  16.  
  17. Materiales:
  18. ;Comprueba si tienes martillos.
  19. msg .desarmarse $
  20. wait 10
  21. event macro 8 7
  22. wait 5
  23. finditem GBG C_ , #backpackid
  24. if #FINDCNT < 1
  25. {
  26. finditem TLH C_ , #backpackid
  27. if #FINDCNT < 1
  28. {
  29. finditem GBG_TLH C_ , %cofre
  30. exevent drag #FINDID
  31. wait 5
  32. exevent dropc #backpackid
  33. wait 10
  34. }
  35. }
  36.  
  37. ;Comprueba lingotes de hierro.
  38. set %cantidad 30
  39. finditem RMK C_ , #backpackid
  40. if #FINDSTACK < 3
  41. {
  42. set %canthierro #findstack
  43. finditem RMK C_ , %cofre
  44. if #FINDSTACK < 3
  45. {
  46. halt
  47. }
  48. set %sacarhierro ( %cantidad - %canthierro )
  49. exevent drag #FINDID %sacarhierro
  50. wait 5
  51. exevent dropc #backpackid
  52. wait 10
  53. goto Materiales
  54. }
  55. goto Fabrica
  56.  
  57. Fabrica:
  58. msg .desarmarse $
  59. wait 10
  60. finditem GBG C_ , #backpackid
  61. if #FINDCNT < 1
  62. {
  63. finditem TLH C_ , #backpackid
  64. if #FINDCNT < 1
  65. {
  66. goto Materiales
  67. }
  68. }
  69. finditem GBG_TLH C_ , #backpackid
  70. set #LOBJECTID #FINDID
  71. event macro 17 0
  72. wait 5
  73. finditem RMK C_ , #backpackid
  74. if #FINDSTACK < 3
  75. {
  76. finditem TSF C_ , #backpackid
  77. if #FINDCNT > 0
  78. {
  79. goto Funde
  80. }
  81. goto Materiales
  82. }
  83. set #LOBJECTID #FINDID
  84. event macro 17 0
  85. wait 10
  86. click 271 113 dmc
  87. wait 2s
  88. goto Fabrica
  89.  
  90. Funde:
  91. finditem RMK c_ , #backpackid
  92. set #lobjectid #findid
  93. event macro 17 0
  94. wait 10
  95. click 70 420 dmc
  96. wait 5
  97. finditem TSF c_ , #BACKPACKID
  98. if #FINDCNT > 0
  99. {
  100. finditem TSF c_ , #BACKPACKID
  101. set #LTARGETID #FINDID
  102. wait 10
  103. event macro 22 0
  104. wait 10
  105. goto Funde
  106. }
  107. if #FINDCNT = 0
  108. {
  109. key ESC
  110. goto Materiales
  111. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement