Post by Darth Maul on Oct 27, 2015 6:42:52 GMT
Event Auto Attacking
This script will allow you to auto attack the enemy team while in an event.
It will attack any player with that doesn't have the same colours as you.
After setting your voc, it'll automatically start attacking according to that voc.
An unedited version will assume you're a druid, and try to sd someone not wearing your colours.
Variables to change:
If you don't want to edit one yourself, you can download one below.
Download here
-------------------------------------------------
-------------------------------------------------
----> Events Auto Attack.elfc (3.76 KB) < ----
-------------------------------------------------
-------------------------------------------------
Event Script List:
This script will allow you to auto attack the enemy team while in an event.
It will attack any player with that doesn't have the same colours as you.
After setting your voc, it'll automatically start attacking according to that voc.
An unedited version will assume you're a druid, and try to sd someone not wearing your colours.
Variables to change:
set $selfvocation 'Druid'
(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 100 | dontlist | setcolor 200 200 200 | setpos 25 100 | displaytext 'My color: $mycolor' | set $mycolor $self.color3
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 110 | displaytext 'Vocation: $selfvocation' | set $selfvocation 'Druid'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 120 | displaytext 'Blue: $blue -- Light Blue: $lblue' | set $blue 88 | set $lblue 85
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 130 | displaytext 'Red: $red -- Light Red: $lred' | set $red 94 | set $lred 79
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 140 | displaytext '--------------------'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 150 | displaytext '--------------------'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 160 | displaytext 'Most shot enemy: $i'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 170 | displaytext 'coretarget: $core'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 180 | displaytext '--------------------'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 190 | displaytext 'Target:'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 200 | displaytext 'Name: $target.name'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 210 | displaytext 'Level: $target.level'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 220 | displaytext 'Health: $target.hp ([$target.maxhp])'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 230 | displaytext 'Mana: $target.mp ([$target.maxmp])'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 240 | displaytext 'Vocation: $target.vocation'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 250 | displaytext 'Speed: $target.speed'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 260 | displaytext 'Guild: $target.guild'
auto 100 | listas 'Event Team checker: ON' | foreach 'allplayers' $l {if[$l.color2 == $self.color2] {setrelation '$l.name' 'friend'} | foreach 'allplayers' $ll {ifnot [$ll.color2 == $self.color2] {setrelation '$ll.name' 'enemy'}
auto 100 | listas 'Mage Attack' | if [$selfvocation == 'Druid' || $selfvocation == 'Sorcerer'] {set $i $mostshot.'enemy' | set $core $coretarget.name | if [canshoot.'$i' && $i.shotcount >= 2] {attack $i | sd $i} | if [canshoot.'i' == 0 || $i.shotcount < 5] {if [canshoot.$core] {attack $core | sd $core | wait 1200}}}
auto 100 | listas 'Paladin Attack' | if [$selfvocation == 'Paladin'] {set $i $mostshot.'enemy' | set $core $coretarget.name | if [canshoot.'$i' && $i.shotcount >= 2] {attack $i | sd $i} | if [canshoot.'i' == 0 || $i.shotcount < 5] {if [canshoot.$core] {attack $core | say 'exori con' | wait 1200}}}
auto 100 | listas 'Knight Attack' | if [$selfvocation == 'Knight'] {set $i $mostshot.'enemy' | set $core $coretarget.name | if [canshoot.'$i' && $i.shotcount >= 2] {attack $i | sd $i} | if [canshoot.'i' == 0 || $i.shotcount < 5] {if [canshoot.$core] {attack $core | say 'exori hur' | wait 1200}}}
If you don't want to edit one yourself, you can download one below.
Download here
-------------------------------------------------
-------------------------------------------------
----> Events Auto Attack.elfc (3.76 KB) < ----
-------------------------------------------------
-------------------------------------------------
Event Script List: