Back to "pot" tags

Yottawatts's ULTIMATE 2Hander Healing Script by Yottawatts

Description: Healing script with added tracking message and instructions to make your potion drinking 2hander thief proof!

1#Yottawatts's ULTIMATE 2Hander Healing Script 8/10/22
2#NOTE: Create a Dress List for your weapon!
3#Note 2!: Set your undress container as a trapped pouch or boom chest!!
4#You will undress to a trapped pouch and dress from it, no more stolen weapons!
5#Note: You cannot set dress container yet or set item hue, use serial
6#Remove Notes as needed!
7#Remember to reset Dress Serial and Undress bag if you die!(also exit inn for bag)
8#NOTE 3: Change dress ID as needed and findtype at line 46
9#Hotkeys for potions seem faster!
10#Change Notes: Added Cast Function and Reequip to each potion.
11#Casting a spell unequips a weapon and bypasses weight limits if overweight
12#(no need for 1 hander) (need a spellbook with the spell for this to work)
13#Spell Note: Use create food spell in overworld wilderness, recall locks you. 
14
15#11 second timer pot
16if not timerexists "healpot"
17createtimer "healpot"
18settimer "healpot" 11000
19endif    
20
21#11 second cure pot    
22if not timerexists "curepot"
23createtimer "curepot"
24settimer "curepot" 11000
25endif
26
27#loops the rest while alive
28while not dead
29    
30#Pause script while saving
31if insysmsg "The world is saving, please wait"
32while not insysmsg "World save complete"
33overhead "World save. Waiting..." 120
34wait 500
35clearsysmsg 
36endwhile
37endif
38
39#Remove this if you don't have tracking, or save it
40if insysmsg 'Now Tracking'
41    overhead  'MURDERERS RUN!!' 2916
42    clearsysmsg 
43endif
44clearsysmsg 
45
46#This is the re-equip function for a quarter staff
47if not findtype 'quarter staff' lefthand
48    dress 'Staff'
49endif
50
51#Drops empty potion bottles, keep or remove
52if findtype 'empty bottle%s%' backpack as found
53    lift found 999
54    droprelloc 0 0
55endif
56
57#Cure pot function
58if poisoned and timer 'curepot' > 11000
59    if findtype 'Orange Potion' backpack
60    undress 'Staff'
61    cast 'recall'
62    hotkey 'Drink Cure'
63    dress 'Staff'
64    settimer 'curepot' 0
65    endif
66endif
67  
68#Heal Pot Function
69if diffhits > 25        
70    if findtype "Yellow Potion" backpack
71        if timer "healpot" > 11000
72        wait 100
73        undress 'Staff'
74        cast 'recall'
75        hotkey 'Drink Heal'
76        wait 250
77        dress 'Staff'
78        settimer "healpot" 0
79        endif
80    endif
81endif 
82
83#PVP pouch pop to run away
84if paralyzed
85[pouch
86endif   
87
88#Strength and Magic Resist Function
89#Maxweight is used because if not, it will sometimes try while buff is still on cooldown
90#Only if war mode is on, so only in dungeons!
91if warmode on and maxweight = 390 and not findbuff 'Strength'
92    if findtype 'White Potion' backpack
93    undress 'Staff'
94    cast 'recall'
95    hotkey 'Drink Strength'
96    hotkey 'Drink Night Sight'
97wait 350
98    dress 'Staff'
99    endif
100endif
101wait 50     
102
103#Stamina pot if under 40
104if diffstam  > 40
105    if findtype 'Red Potion' backpack
106    undress 'Staff'
107    cast 'recall'
108    potion 'refresh'
109    dress 'Staff'
110    endif
111endif
112endwhile