I know that this work if I hard code the book ID
set %book XXXXXXXXX ; runobook to recall home
while #true
{
onHotKey f alt
gosub recallhome
}
sub recallhome
; set #LPC 1000
set %runebookID %book ; book to recall home
finditem %runebookID C_ , %backpackid
set #ltargetID %runebookID
set #ltargetkind 1
wait 40
event macro 15 31 ; 31 Recall Spell 210 Sj
wait 1s
target
event macro 22 0 ; Last target
wait 20
; set #LPC 10
Return
I'm trying to detect the book so I don't required to change book ID so all my toon can use the same build.
Since it not working, I guest I'm not using the property correctely.
finditem ZBN C_ , #backpackid
if #findcnt > 0
wait 10
if home in #property
set %homebook #findid
while #true
{
onHotKey f alt
gosub recallhome
}
sub recallhome
set %book %homebook
; set #LPC 1000
set %runebookID %book ; book to recall home
finditem %runebookID C_ , %backpackid
set #ltargetID %runebookID
set #ltargetkind 1
wait 40
event macro 15 31 ; 31 Recall Spell 210 Sj
wait 1s
target
event macro 22 0 ; Last target
wait 20
; set #LPC 10
Return