Post by Darth Maul on Aug 15, 2017 10:01:09 GMT
Auto Targeting Script by Darth Maul.
This script, in conjunction with the 'others attack' targeting file, will attack any monster onscreen.
Depending on your vocation), the bot will either perform an aoe attack if no player onscreen and 3 or more monsters are onscreen; otherwise it does a single target spell/rune.
The original vocation checking script can be found here: elfbotscripts.freeforums.net/thread/182/vocation-checking-using-elfbot
Download Link:
<click on the name to download the file>
others attack.elft (1.27 KB)
20:19 Darth Maul [84]: Launching Darth Mauls Targeting Script. Your maxhp is 1080. Your vocation is Paladin. Your single target attack is exori con.
(Incase you don't know how to test the script out, go to the Cavebot panel, then click the Edit button on the top-right of the Cavebot page. After that a new tab will open, enter the entire script, hit save on that tab then close it. You'll be brought back to the Cavebot tab, when you want to run the script just tick Follow Waypoints, in the center of the tab.)
This script, in conjunction with the 'others attack' targeting file, will attack any monster onscreen.
Depending on your vocation), the bot will either perform an aoe attack if no player onscreen and 3 or more monsters are onscreen; otherwise it does a single target spell/rune.
The original vocation checking script can be found here: elfbotscripts.freeforums.net/thread/182/vocation-checking-using-elfbot
Download Link:
<click on the name to download the file>
others attack.elft (1.27 KB)
20:19 Darth Maul [84]: Launching Darth Mauls Targeting Script. Your maxhp is 1080. Your vocation is Paladin. Your single target attack is exori con.
(Incase you don't know how to test the script out, go to the Cavebot panel, then click the Edit button on the top-right of the Cavebot page. After that a new tab will open, enter the entire script, hit save on that tab then close it. You'll be brought back to the Cavebot tab, when you want to run the script just tick Follow Waypoints, in the center of the tab.)
auto 1 | listas 'Darth Mauls Vocation Checker: Voc = $voc'
set $voc 'unknown'
set $sin_spell ''
set $magemin 0 | set $magemax 7
set $paladinmin 7 | set $paladinmax 13
set $knightmin 13 | set $knightmax 20
set $var1 '[$maxhp - 200]' | set $var2 '[$level-8]'
set $hpplevel '[$var1 / $var2]'
if [$hpplevel >= $magemin && $hpplevel < $magemax] {set $voc 'Mage' | set $sin_spell 'sd rune'}
if [$hpplevel >= $paladinmin && $hpplevel < $paladinmax] {set $voc 'Paladin' | set $sin_spell 'exori con'}
if [$hpplevel >= $knightmin && $hpplevel < $knightmax] {set $voc 'Knight' | set $sin_spell 'exori hur'}
pm '$self.name' 'Launching Darth Mauls Targeting Script. Your maxhp is [$maxhp]. Your vocation is [$voc]. Your single target attack is [$sin_spell].'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 110 | displaytext 'Vocation: $voc'
auto 100 | dontlist | if [$voc == 'Mage'] {if [$monstersaround.3 >= 3 && ifnotplayeronscreen] {useoncreature 3161 target | wait 700}}
auto 100 | dontlist | if [$voc == 'Mage'] {if [$monstersaround.3 <= 2 || ifplayeronscreen] {istargeting sd target}
auto 100 | dontlist | if [$voc == 'Paladin'] {if [$monstersaround.3 >= 3 && ifnotplayeronscreen] {useoncreature 3161 target | wait 700}}
auto 100 | dontlist | if [$voc == 'Paladin'] {if [$target.hppc >0 && $monstersaround.3 <= 2 || ifplayeronscreen] {istargeting say 'exori con' | wait 1000}}
auto 100 | dontlist | if [$voc == 'Knight'] {if [$monstersaround.3 >= 3 && ifnotplayeronscreen] {say 'exori' | wait 700}}
auto 100 | dontlist | if [$voc == 'Knight'] {if [$target.hppc >0 && $monstersaround.3 <= 2 || ifplayeronscreen] {istargeting say 'exori hur' | wait 1000}}