; INICIALIZACION DEL SISTEMA
set %stand_alone 0 

;Tipos de objeto
set %t_hacha FSF_ROH
; tipo del runebook
set %t_runebook MPF
; color del runebook
set %c_runebook 0x455
set %t_mochila  ZJF
set %t_bolsa      ZJF
set %t_log         ZLK
set %t_tronco    ZLK

set %Finish_Read     _____________________
set %msg_saveworld WORLD_SAVE_HAS_BEEN_INITIATED

;Temporal, pasamos de dirx 1 a dirx 2. A ver si mejoramos el rendimiento
set %dirx 2
set %diry -6


;Primer pico 2317 1215
;   x1<x2 y1>y2
;segundo 2335 1199

princespera:
                   call keepalive
 key %OpenBackpack
 wait 2s
 if OZOC <> #ContKind
   goto princespera
set #contposx 610
set #contposy 360
set %mochilapr #Contid

;Buscando el libro de runas
call apuntar %t_runebook %c_runebook
if %TiraLogs <> SI
 {
   if %1 = -1
       {
        msg $/ Error fatal! No encontre el RuneBook!$
        halt         
       }              
  set %MiRuneBook #LObjectId
 }

msg $; Acuerdate de llevar el hacha en la mochila!$
wait 9
msg $; De don't move cursor, del circle of transp!$
wait 9
msg $; de Status, y si puedes lleva un log en la mochila$
wait 9
msg $/ SISTEMA PREPARADO, PULSA CTRL+V PARA SEGUIR$
waithacha:
  wait 1
   onhotkey V Ctrl
      goto takehacha
  goto waithacha
takehacha:
call apuntar %t_hacha -1
if %1 = -1
  {
    msg $UPS no encuentro el hacha!$
    pause
   }
set %mihacha #LObjectId
