Back to "b" tags

Two hander to one hander all in one potion script by Jaseowns

1# All pots one hotkey by Jaseowns
2# UO Outlands - https://outlands.uorazorscripts.com/
3# Requirements: 
4#     Choose which potions to drink.
5#     Set preferred_twohand_weapon_type_id using >info in game
6#     Set preferred_onehand_weapon_type_id using >info in game
7# Additional Info
8#     You can change some of the values if you want.. 
9#     heal will only trigger if > 30 hp difference for example.
10@setvar! drink_red 1
11@setvar! drink_white 1
12@setvar! drink_blue 1
13@setvar! drink_black 1
14@setvar! drink_orange 1
15@setvar! drink_yellow 1
16
17
18// executioners axe
19@setvar! preferred_twohand_weapon_type_id 3909
20// viking sword
21@setvar! preferred_onehand_weapon_type_id 5049
22
23// Swap to one hand
24if findtype preferred_twohand_weapon_type_id lefthand
25    if findtype preferred_onehand_weapon_type_id backpack as swappy
26        dclick swappy
27    else
28        overhead "This is slow, update preferred_onehand_weapon_type_id" 34
29        undress LeftHand
30    endif
31endif
32
33
34if drink_red = 1 and stam < maxstam
35     if findtype "Red Potion" backpack as pot
36        dclick pot
37        wait 200
38    endif
39endif
40
41if drink_white = 1 and str <= 100
42    if findtype "White Potion" backpack as pot
43        dclick pot
44        wait 200
45    endif
46endif
47
48if drink_blue = 1 and dex <= 100
49    if findtype "Blue Potion" backpack as pot
50        dclick pot
51        wait 200
52    endif
53endif
54
55if drink_black = 1 and not findbuff "magic resist"
56    if findtype "Black Potion" backpack as pot
57        dclick pot
58        wait 200
59    else
60        overhead "Out of Magic Resist" 34
61    endif
62endif
63
64if drink_orange = 1 and poisoned 
65    if findtype "Orange Potion" backpack as pot
66        dclick pot
67        wait 200
68    else
69        overhead "Out of cures" 34
70    endif
71endif
72
73if drink_yellow = 1 and diffhits > 30
74    if findtype "Yellow Potion" backpack as pot
75        dclick pot
76        wait 200
77    else 
78        overhead 'Out of heals!' 34
79    endif
80endif
81
82if not findtype preferred_twohand_weapon_type_id lefthand
83    if findtype preferred_twohand_weapon_type_id backpack as swappy
84        dclick swappy
85    endif
86endif