set %tool GTL
set %cofreid FVGLROD
amono:
set %skillini #skill
finditem RMK C_ , #backpackid
if #findstack < 10
{
goto hierro
}
finditem %tool C_ , #backpackid
if #findcnt < 2
{
goto herramientas
}
finditem %tool C_ , #backpackid
set #lobjectid #findid
event macro 17
wait 1s
gosub EsperaVentana CONTNAME objpicker_gump
click 264 62 d
wait 1s
gosub EsperaVentana CONTNAME objpicker_gump
click 189 63 d
wait 1s
gosub EsperaVentana CONTNAME objpicker_gump
click 67 59 d
wait 1s
set %skillinc #SKILL - %skillini
setuotitle Skill de tinker | Inicial: %skillini | Actual: #SKILL | Incremento: %skillinc | Peso: #WEIGHT
if #WEIGHT > 250
{
finditem NWH C_ , #backpackid
if #findkind <> -1
{
Exevent Drag #findid #findstack
wait 30
Exevent Dropc %cofreid
wait 30
}
}
goto amono
hierro:
finditem RMK C_ , %cofreid
if #findkind <> -1
{
Exevent Drag #findid 50
wait 30
Exevent Drop #backpackid
wait 30
}
goto amono
herramientas:
finditem %tool C_ , #backpackid
set #lobjectid #findid
event macro 17
gosub EsperaVentana CONTNAME objpicker_gump
click 236 66 d
gosub EsperaVentana CONTNAME objpicker_gump
click 267 67
wait 1s
click 267 67
wait 1s
click 267 67
wait 1s
click 267 67
wait 1s
click 233 64 d
wait 5s
goto amono
sub EsperaVentana
set %tMax #SCNT
ESPERA1:
if # . %1 <> %2
{
wait 1
if %tMax + 5 < #SCNT
return #FALSE
goto ESPERA1
}
return #TRUE