I'm having an issue when calling this sub for the 2nd time in my script, firstly it runs to my first rail great, runs to bank, deposits and then upon calling the rail sub for the second time it does nothing, anyone have an idea why?
without adding my whole script this is what it looks like
This is my little call for subs in my checkweight sub, why would the 2nd call not work? any help appreciated!
gosub runrail RailOne
wait 2s
gosub recall_to_bank
wait 1s
gosub deposit_items
wait 1s
gosub recall_to_dungeon
wait 1s
gosub runrail RailTwo
;--------------------------------------------------------------
;--------------------------------------------------------------
sub runrail
msg Dungeon Despise$
wait 2s
namespace push
namespace local MR , #systime
set !Cnt %1 , Cnt
set !Cnt % . !Cnt
set !SX %1 , X
set !SY %1 , Y
for !i 1 !Cnt
{
set !nX !SX , !i
set !nY !SY , !i
set !nX % . !nX
set !nY % . !nY
move !nX !nY 0 5s ;you might have to adjust timeout depending on move length
}
namespace clear
namespace pop
return