Usa esta si no me ekivoco e sla mima sol o ke tus modificaciones iniciales estan mal:
Código:
set %mochilaX 1008
set %mochilaY 211
set %mapas no
set %contMaderaID HCNOUPD
set %x 427
set %y 296
INICIO:
nextCPos 0 350
set #LOBJECTID %contMaderaID
event Macro 17 0 0
wait 5
gosub EsperaContenedor #CONTID %contMaderaID
finditem ZLK C_ , #BACKPACKID
wait 1s
if #FINDSTACK < 30
{
finditem ZLK C_ , %contMaderaID
wait 5
event Drag #FINDID
wait 5
gosub EsperaVentana CONTNAME stack_gump
msg 70 $
click %mochilaX %mochilaY p
wait 1s
}
FABRICANDO:
finditem ZLK C_ , #BACKPACKID
wait 1s
if #FINDSTACK > 8
{
chooseSkill Carpentry
finditem AGG_EGG C
wait 5
set #LOBJECTID #FINDID
event Macro 17 0 0
gosub EsperaVentana CONTNAME objpicker_gump
click 266 67 x 20
click 74 73 d
gosub EsperaVentana CONTNAME objpicker_gump
wait 1
if %mapas = si
click 102 62 d
else
click 55 61 d
wait 8s
goto FABRICANDO
}
wait 6s
nextCPos 0 150
finditem MMF C_ , #BACKPACKID
wait 5
event Drag #FINDID
wait 5
gosub EsperaVentana CONTNAME stack_gump
msg $
click %x %y p
goto INICIO
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;,
sub EsperaVentana
set %tMax #SCNT
ESPERA1:
if # . %1 <> %2
{
wait 1
if %tMax + 5 < #SCNT
return #FALSE
goto ESPERA1
}
return #TRUE
sub EsperaCofre
set %tMax #SCNT
ESPERA2:
if # . %3 <> 180_240 || # . %1 <> %2
{
wait 1
if %tMax + 5 < #SCNT
return #FALSE
goto ESPERA2
}
return #TRUE
sub EsperaContenedor
set %tMax #SCNT
ESPERA3:
if %1 <> %2
{
wait 1
if %tMax + 5 < #SCNT
return #FALSE
goto ESPERA3
}
return #TRUE