throw explosion script by nekwave

Description: Modificated script, get from

1#author - Doppler Effect, IDC.
2#source - https://outlands.uorazorscripts.com/script/1547d5f2-a39f-46bc-aa2c-09a03d0fd8b5
3#1. Don't cast telekines. For pvp this is not necessary.
4#2. Don't lock use explosion again.
5#### Not work after path 3. Lock use explosion when target out of 10 tiles.
6#4. If use script twice for 0.5sec - autotarget was canceled. You can throw explosion on ground or other target.
7if not timerexists 'reapeat_click'
8    settimer 'reapeat_click' 0 
9    overhead 'first run'
10endif
11if timerexists 'reapeat_click' and timer 'reapeat_click' < 500 
12    overhead 'Fast script RUN! Select explosion target manuality';
13    if findtype "Purple Potion" backpack as pot 
14        dclick pot
15    endif
16    settimer 'reapeat_click' 0
17elseif not cooldown "Purple Potion" 
18    settimer 'reapeat_click' 0
19    @setvar! checkLastTarget lasttarget
20    @setvar! checkSelf self
21
22    if checkLastTarget = checkSelf
23        overhead "Not gonna blow yourself up" 34
24        stop
25    endif
26
27    overhead "\/\/\ HERE /\/\/" 88 lasttarget 
28
29    if findtype "Purple Potion" backpack as pot 
30        getlabel pot desc
31        if "next usable in 15" in desc
32            @setvar! purplePotionCD 15000
33            overhead "On cooldown 15 " 42    
34        elseif "next usable in 14" in desc
35            @setvar! purplePotionCD 14000
36            overhead "On cooldown 14" 41
37        elseif "next usable in 13" in desc
38            @setvar! purplePotionCD 13000
39            overhead "On cooldown 13" 40
40        elseif "next usable in 12" in desc
41            @setvar! purplePotionCD 12000
42            overhead "On cooldown 12" 39
43        elseif "next usable in 11" in desc
44            @setvar! purplePotionCD 11000
45            overhead "On cooldown 11" 38
46        elseif "next usable in 10" in desc
47            @setvar! purplePotionCD 10000
48            overhead "On cooldown 10" 37
49        elseif "next usable in 9" in desc
50            @setvar! purplePotionCD 9000
51            overhead "On cooldown 9" 36
52        elseif "next usable in 8" in desc
53            @setvar! purplePotionCD 8000
54            overhead "On cooldown 8" 35
55        elseif "next usable in 7" in desc
56            @setvar! purplePotionCD 7000
57            overhead "On cooldown 7" 34
58        elseif "next usable in 6" in desc
59            @setvar! purplePotionCD 6000
60            overhead "On cooldown 6" 33
61        elseif "next usable in 5" in desc
62            @setvar! purplePotionCD 5000
63            overhead "On cooldown 5" 32
64        elseif "next usable in 4" in desc
65            @setvar! purplePotionCD 4000
66            overhead "On cooldown 4" 31
67        elseif "next usable in 3" in desc
68            @setvar! purplePotionCD 3000
69            overhead "On cooldown 3" 30
70        elseif "next usable in 2" in desc
71            @setvar! purplePotionCD 2000
72            overhead "On cooldown 2" 29
73        elseif "next usable in 1" in desc
74            @setvar! purplePotionCD 1000
75            overhead "On cooldown 1" 28
76        elseif "next usable in" in desc
77            // do nothing
78            overhead "On cooldown" 3
79        endif
80        #if find lasttarget ground -1 -1 12 
81            @setvar! myOriginalPotCount 0
82            dclick pot
83            wait 200
84            target lasttarget
85            wait 1000  
86            cooldown "Purple Potion" purplePotionCD 
87        #else
88       #     overhead "You don't see target (10 tiles)";
89        #endif 
90        overhead "MY TARGET IS HERE" 34 lasttarget
91    endif
92else
93    overhead "Purple pot on cooldown" 34
94endif