Back to "explopot" tags

Explosion Potion Helper (throw explopot safely) by doubleduke

Description: Too many times, especially in the most populated dungeons or using scripts to manage healing, I end up becoming gray or worse, a murderer. With a whole series of unpleasant consequences.

So I decided to work on a script that can help manage the throwing of explosive potions.

As a dexxer I prefer to use few and simple scripts, rather than the more famous AutoDexxer.

Try it and let me have some feedback (message DoubleDuke on discord).

I recommend first of all in a sanctuary dungeon to avoid embarrassing situations.

1# INFO
2# Set this to an hotkey and try it in Sanctuary Dungeon before anything else
3# If needed: remove the # from the last line and add your own script to auto-start
4
5# TO DO
6# - Various improvements
7# - Set a cooldown timer
8
9# SETTINGS
10
11# Select your target (0) or target nearest grey mob (1)
12@setvar! useTargetSystem 0
13
14# Information System is helpful for debug or trace what went wrong on target
15@setvar! useInformationSystem 0
16
17# COOLDOWN TIMER 
18# some options on the work
19
20# ACTUAL SCRIPT
21
22if skill "Alchemy" >= 80
23    if findtype 3853 self >= 1
24
25        # Clear target queue (why?: prevent throwing explopot to yourself or friendly)
26        hotkey 'Clear Target Queue'
27        wait 150
28
29        # Throwing and targeting system
30
31        if useTargetSystem = 0
32            overhead "Select your ExploPot Target" 66
33            hotkey "Set Last Target"
34            wait 200
35            while targetexists 
36                // wait before throwing
37                wait 50
38            endwhile
39            hotkey 'Drink Explosion'
40            wft
41            hotkey 'Last Target'
42            if useInformationSystem = 1
43                getlabel lasttarget descTarget
44                @setvar! lastTargetSeriel lasttarget
45                sysmsg "Last Target: {{descTarget}} {{lastTargetSeriel}}" 88
46            elseif useInformationSystem = 0
47                // do nothing
48            endif
49        elseif useTargetSystem = 1
50            hotkey "Target Closest Grey Monster"
51        if insysmsg "No one matching that was found on your screen"
52                // do nothing
53            overhead "No Target Found, get closer to a mob" 55
54            else
55                overhead "Throwing ExploPot" 66
56                hotkey 'Drink Explosion'
57                wft
58                hotkey 'Last Target'
59                if useInformationSystem = 1
60                    getlabel lasttarget descTarget
61                    @setvar! lastTargetSeriel lasttarget
62                    sysmsg "Last Target: {{descTarget}} {{lastTargetSeriel}}" 88
63                elseif useInformationSystem = 0
64                    // do nothing
65                endif
66            endif
67        endif
68    else 
69        overhead "No ExploPot: restock!" 55
70    endif
71else 
72    overhead "Alchemy is below 80, explopot does not stick to mobs." 55
73endif
74
75# THE SCRIPT TO AUTO-START
76# for example auto-heal-bandage script
77# script "BandageSelfCombat"