Swap between weapons and not lose spell target by Jaseowns
# Swap between weapons and not lose spell target by Jaseowns
# UO Outlands
# Example is for heavy xbow to bow
# heavy cross bow 5117
@setvar! myLeftHandWeaponToRemove 5117
# bow 5042
@setvar! myNewLeftHandWeaponToUse 5042
if lhandempty and findtype myNewLeftHandWeaponToUse backpack as item
if targetexists
lift item
drop self LeftHand
else
dclick item
endif
elseif findtype myLeftHandWeaponToRemove lefthand and findtype myNewLeftHandWeaponToUse backpack as item
overhead "swapping to bow"
if targetexists
hotkey "Arm/Disarm Left Hand"
while not lhandempty
wait 50
endwhile
lift item
drop self LeftHand
else
dclick item
endif
endif