Hola, estoy haciendo esta macro pero me he quedado bloqueado, no logro hacer que funcione como me gustaría. A ver si podéis echarme una manita.
Me gustaría que la macro hiciera un tornillo, mientras se hace que coma y revise si faltan herramientas, si faltan que las haga y entonces funda el tornillo y vuelva a hacer otro tornillo.
Código HTML:initevents Chooseskill black set %comida QQD_YSD_RUD_SQD_PQD_FWI_RUD set %martillo TLH set %hartesano GTL set %hierro RMK set %tornillo YFG set %fundirx 67 set %fundiry 423 set %tornillox 271 set %tornilloy 109 set %hartesano1x 66 set %hartesano1y 170 set %hartesano2x 429 set %hartesano2y 351 set %hartesano3x 272 set %hartesano3y 193 set %martillo1x 66 set %martillo1y 170 set %martillo2x 429 set %martillo2y 351 set %martillo3x 272 set %martillo3y 171 inicio: setuotitle | Habilidad #Skill gosub tornillo gosub martillo gosub hartesano gosub comer gosub fundir goto inicio sub tornillo finditem %hierro C_ , #backpackid wait 10 set #LOBJECTID #findid event macro 17 wait 10 click %tornillox %tornilloy return sub fundir finditem %hierro C_ , #backpackid wait 5 set #LOBJECTID #findid event macro 17 wait 5 click %fundirx %fundiry target 2s Finditem %tornillo C_ , #backpackid set #ltargetid #findid event macro 22 0 wait 5 Finditem %tornillo C_ , #backpackid wait 5 if #findcnt > 0 { gosub repetir } key esc return sub comer findItem %comida set #LOBJECTID #FINDID event macro 17 return sub repetir Finditem %tornillo C_ , #backpackid set #ltargetid #findid wait 5 event macro 22 0 wait 10 return sub hartesano finditem %hartesano C_ , #backpackid if #findcnt > 2 { finditem %hartesano C_ , #backpackid event macro 17 wait 10 click %harteano1x %hartesano1y wait 5 click %hartesano2x %hartesano2y wait 5 click %hartesano3x %hartesano3y wait 5s } sub martillo finditem %martillo C_ , #backpackid if #findcnt > 1 { finditem %hartesano C_ , #backpackid event macro 17 wait 10 click %martillo1x %martillo1y wait 5 click %martillo2x %martillo2y wait 5 click %martillo3x %martillo3y wait 5s }


Citar




