@ TrailMyx, I'm gonna see if I can pm you the whole script tonight as an attachment. It's 32kb's, quite large atm, and include the lines where this anomaly occurs. Seems to be off and on from time to time when I copy/paste from Euo to Suo for the syntax check and auto indent.
In the mean time, this bit is a bigger bit of what I'm dealing with and how I have it for the time being.
if #menures = 3 || #menures = 4 ; find runebook(s)
{
finditem ZBN C_ , #backpackid
if #findkind = -1
{
display ok Get the runebook(s) ya goof!!$
+Halting.
Halt
}
if #findkind = 0
{
display ok Please target the runebook(s) in your backpack that you will be using.$
+Press the "Space Bar" when you're done selecting the book(s).
set %rbook
set %rbookindex 0
set %rbookid
set %rbookcnt 0
set %hotkey Space
rbook_loop:
wait 5
set #targcurs 1
target
while #true
{
repeat
onhotkey %hotkey
goto End
until #targcurs = 0
break
}
finditem #ltargetid
if #findtype <> ZBN
{
display ok That is not a runebook. Try again.
goto rbook_loop
}
set %rbookindex %rbookindex + 1
set %rbookcnt %rbookcnt + 1
set %rbookid #ltargetid
set %rbook_ . %rbookcnt %rbookid
goto rbook_loop
}
}
End:
set #targcurs 0
if #menures = 4 ; use runebook charges
{
For %rbookindex 1 %rbookcnt
{
set #lobjectid %rbook_ . %rbookindex
wait 10
event macro 17 0
wait 10
set #ContPosX 363
wait 5
set #ContPosY 21
wait 5
call kalocr.txt getRunebookCharges 363 21
wait 15
click 640 130 r
if !rbi_charges < ( !rbi_maxcharges / 4 )
display ok Should get some scrolls for this book.
}
finditem WTL C_ , #backpackid
if #findkind = -1
{
display ok No scrolls in your backpack. Get some recall scrolls from your bank box or house secure.$
+Halting script. This is a temp message until I set up the home/bank secure boxes with resources. NOT Halting
;Halt
}