Post by Darth Maul on Oct 27, 2015 6:05:12 GMT
Event Auto Healing
This script will heal yourself, and other team members, while in an event.
It will heal any player with the same colours as you.
After setting your voc, it'll automatically heal according to that voc.
An unedited version will assume you're a druid, and heal anyone on your team that is below 70%hp.
Variables to change:
If you don't want to edit one yourself, you can download one below.
Download here
-------------------------------------------------
-------------------------------------------------
----> Events Auto Healing.elfc (3.47 KB) < ----
-------------------------------------------------
-------------------------------------------------
Event Script List:
This script will heal yourself, and other team members, while in an event.
It will heal any player with the same colours as you.
After setting your voc, it'll automatically heal according to that voc.
An unedited version will assume you're a druid, and heal anyone on your team that is below 70%hp.
Variables to change:
set $pallypc 70
set $kinapc 70
set $magepc 70
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 250 0 0 | setpos 25 45 | displaytext 'Event Script: By Darth Maul'
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 60 | displaytext 'Heal Paladin @ [$pallypc]%' | set $pallypc 70
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 70 | displaytext 'Heal Knight @ [$kinapc]%' | set $kinapc 70
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 80 | displaytext 'Heal Mages @ [$magepc]%' | set $magepc 70
auto 100 | dontlist | setcolor 200 200 200 | setpos 25 90 | displaytext '--------------------'
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 | 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 'Event Blue Team checker: ON' | foreach 'allplayers' $b {if [($mycolor == $blue || $mycolor == $lblue) && ($b.color2 == $blue || $b.color2 == $lblue)] {setrelation '$b.name' 'friend' | foreach 'allplayers' $bb {if [($mycolor == $blue || $mycolor == $lblue) && ($bb.color2 == $red || $bb.color2 == $lred)] {setrelation '$bb.name' 'enemy'}}
auto 100 | listas 'Event Red Team checker: ON' | foreach 'allplayers' $r {if [($mycolor == $red || $mycolor == $lred) && ($r.color2 == $red || $r.color2 == $lred)] {setrelation '$r.name' 'friend'| foreach 'allplayers' $rr {if [($mycolor == $red || $mycolor == $lred) && ($rr.color2 == $blue || $rr.color2 == $lblue)] {setrelation '$rr.name' 'enemy'}}
auto 100 | dontlist | if [$selfvocation == 'Druid' && safe] {foreach 'shootableplayers' $sio {if [$sio.haslookinfo && $sio.isfriend && (($sio.ispaladin && $sio.hppc <= $pallypc) || ($sio.ismage && $sio.hppc <= $magepc) || ($sio.isknight && $sio.hppc <= $kinapc))] {say 'Exura Sio "[$sio.name]' | wait 1000 | end}}
auto 100 | dontlist | if [($selfvocation == 'Sorcerer' || $selfvocation == 'Paladin') && safe] {foreach 'shootableplayers' $sio {if [$sio.haslookinfo && $sio.isfriend && (($sio.ispaladin && $sio.hppc <= $pallypc) || ($sio.ismage && $sio.hppc <= $magepc) || ($sio.isknight && $sio.hppc <= $kinapc))] {useoncreature 3160 $sio.id | wait 1000 | end}}
If you don't want to edit one yourself, you can download one below.
Download here
-------------------------------------------------
-------------------------------------------------
----> Events Auto Healing.elfc (3.47 KB) < ----
-------------------------------------------------
-------------------------------------------------
Event Script List: