Back to "swap" tags

Quick weapon swap example handles spell up by Jaseowns

1# Quick weapon swap example handles spell up by Jaseowns
2# UO Outlands
3# This lets you hit the hotkey to swap between halberd and katan
4# without losing cursor
5
6// halberd
7@setvar! preferred_twohand_weapon_type_id 5182
8// katana
9@setvar! preferred_onehand_weapon_type_id 5119
10
11if findtype preferred_twohand_weapon_type_id lefthand
12    if findtype preferred_onehand_weapon_type_id backpack as swappy
13        if targetexists 
14            // clears our hands (unlock is not a valid spell)
15            cast Unlock
16            lift swappy
17            drop self firstValid
18        else
19            dclick swappy    
20        endif
21    else
22        overhead "This is slow, find a damn one hander" 34
23        undress LeftHand
24    endif
25elseif not findtype preferred_twohand_weapon_type_id lefthand
26    if findtype preferred_twohand_weapon_type_id backpack as swappy
27        if targetexists 
28            // clears our hands (unlock is not a valid spell)
29            cast Unlock
30            lift swappy
31            drop self firstValid
32        else
33            dclick swappy    
34        endif
35    endif
36endif
37
38
39
40