Created: 06/21/2024, 02:33:21 AM Updated: 07/01/2024, 08:34:36 PM View Change History
1
2
3
4if not timerexists "healpot"
5 createtimer "healpot"
6 settimer "healpot" 8000
7endif
8
9@setvar! chomrik_HitPointDrinkHealPotion 45
10@setvar! chomrik_HitPointDrinkCurePotion 60
11
12while not dead
13 if findtype "clean bandage%s%" backpack
14 if hp < maxhp
15 if hp <= chomrik_HitPointDrinkHealPotion
16 if findtype "Yellow Potion" backpack
17 if timer "healpot" >= 8000
18 overhead 'Drinking heal!'
19 potion "heal"
20 wait 200
21 settimer "healpot" 0
22 endif
23 else
24 overhead 'Out of heals!' 34
25 endif
26 endif
27 if poisoned and hp <= chomrik_HitPointDrinkCurePotion
28 if findtype "Orange Potion" backpack
29 overhead 'Drinking cures!'
30 potion "cure"
31 wait 200
32 else
33 overhead 'Out of cures!' 34
34 endif
35 endif
36
37 if not targetexists and not bandaging and findtype "clean bandage%s%" backpack
38 hotkey "Bandage Self"
39 wait 200
40 endif
41 endif
42 else
43 overhead "No aids!" 34
44 endif
45 wait 500
46endwhile