Back to "veterinary" skill

VetTankOption by Xyio

Description: Vet script that will use a bandage with the first click and then target your tank var on the second click if within the time limit you set. This allows you to use one button for multiple tasks. Also has the option to call an anytime script if you use one.

1#############################################
2# VetTankOption by Xyio                     #
3#############################################
4
5removelist 'sc_Name'
6createlist 'sc_Name'
7
8#############################################
9# Set which bandage(s) to use               #
10# 3617 is bandages                          #
11#      is vetsupplies                       #
12#############################################
13setvar! bandageItem 3617
14
15
16#############################################
17# How long after first press                #
18# That another press will target tank       #
19#############################################
20setvar! tankOptionTime 1000
21
22#############################################
23# Name of an anytime script if you use one. #
24# Comment if not used                       #
25#############################################
26pushlist 'sc_Name' 'Auto_Script'
27
28
29
30# Set tankPet variable
31if not varexist tankPet
32    overhead '::: target your tank :::'
33    setvar tankPet
34endif
35
36if not timerexists '_vetOption'
37    createtimer '_vetOption'
38    settimer '_vetOption' 999999
39endif
40
41if timer '_vetOption' < tankOptionTime
42    if targetexists
43    overhead '→ Tank ←' 93
44        target tankPet
45        foreach name in 'sc_Name'
46            poplist 'sc_Name' name
47            script name 
48        endfor
49    endif
50elseif findtype bandageItem backpack
51    overhead '◈ Bandage ◈' 52
52    dclicktype bandageItem
53    waitfortarget
54    settimer '_vetOption' 0
55    foreach name in 'sc_Name'
56        poplist 'sc_Name' name
57        script name 
58    endfor
59endif