Skip to content
Outlands Hub

Razor script

Quick weapon swap example handles spell up

by Jaseowns · 46 lines
Download

by Jaseowns UO Outlands This lets you hit the hotkey to swap between halberd and katan without losing cursor

CombatMagic
Quick weapon swap example handles spell up.razor
1# This is an automated backup - check out https://outlands.uorazorscripts.com/script/4059f724-9733-4286-b0fa-64b5556f9cde for latest2# Automation by Jaseowns3## Script: Quick weapon swap example handles spell up 4## Created by: Jaseowns#66945#############################################6 7# Quick weapon swap example handles spell up by Jaseowns8# UO Outlands9# This lets you hit the hotkey to swap between halberd and katan10# without losing cursor11 12// halberd13@setvar! preferred_twohand_weapon_type_id 518214// katana15@setvar! preferred_onehand_weapon_type_id 511916 17if findtype preferred_twohand_weapon_type_id lefthand18    if findtype preferred_onehand_weapon_type_id backpack as swappy19        if targetexists 20            // clears our hands (unlock is not a valid spell)21            cast Unlock22            lift swappy23            drop self firstValid24        else25            dclick swappy    26        endif27    else28        overhead "This is slow, find a damn one hander" 3429        undress LeftHand30    endif31elseif not findtype preferred_twohand_weapon_type_id lefthand32    if findtype preferred_twohand_weapon_type_id backpack as swappy33        if targetexists 34            // clears our hands (unlock is not a valid spell)35            cast Unlock36            lift swappy37            drop self firstValid38        else39            dclick swappy    40        endif41    endif42endif43 44 45 46