function WorldJump() { if ${instance} { echo "world jump function called" move -stop Endscript wowbot do { waitframe } while !${Me(exists)} wowpress -hold moveforward wait 1 wowpress -release moveforward wait 10 if ${wowbot(exists)} { endscript wowbot wait 20 } else { run wowbot/wowbot wait 5 Script[wowbot]:Resume } run wowbot/wowbot Script[wowbot]:Resume