|
Post by Darth Maul on Oct 22, 2015 2:10:50 GMT
Vocation Checking using Elfbot This script will allow you to use $voc with your other scripts so you can have multi-vocation support for your scripts. This script is a stepping-stone for future advanced scripts that involve a need to check the players vocation.
This script can't decipher between a Druid, and a Sorcerer; as such both of these vocations are classified as a Mage.
Feel free to test the script out and let me know if you find any bugs.
(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 $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'} if [$hpplevel >= $paladinmin && $hpplevel < $paladinmax] {set $voc 'Paladin'} if [$hpplevel >= $knightmin && $hpplevel < $knightmax] {set $voc 'Knight'}
say 'self.voc = $voc'
|
|