This is my first post so let me start by welcoming myself. <---- Welcome good sir!
This was my first attempt at writing a script.
This script is for a paladin but obviously can be altered for other classes.
This was written with:
-Send key
-800x600 resolution
-only blessings from buff lady in regen (so if you have extra buffs on and vanguard doesn't cast thats why)
- Basic attack on skill slot 1, Shield smash on skill slot 2, Recover on skill slot 3, Divine Strike on skill slot 4, Vanguard on skill slot 5, Transference on skill slot 6, Mana pots on skill slot 7, Challenge on skill slot 8, Perseverance on hotbar slot 2 (c+2 hotkey)
- After script is running aika window must be foreground (I.E -Selected as fore-window) or the camera wont rotate.
-Default keybindings
I am posting this script in seek of assistance. I know this could be cleaner and done many different ways but as i'm not too keen on scripting this is what worked for me.
My problem here are anomalies.
This script will run indefinitely in the area you choose with one minor problem.
The problem I will deem ghost targets. This is where a target is acquired but said target does not exist.
These ghost targets will send me into and endless loop and a new target will not be acquired leaving the character spamming skills on a target that is acquired but does not exist.
Flaming is prohibited but constructive criticism is welcome.
Thank you in advance to any who read whether or not you can assist me as any view could lead me to a solution.
Cheers m8s, Chive on.
Update: script will now retarget after 30 seconds of shield smash not being applied to target.
also Script will now take you to regen to get buffs from liola I was only able to do this with portal scrolls.
Make sure to change "target nearest ally" Keybinding to "V"
Bag placement is critical or port to regen wont work, see picture. I dont care if you know this account, obviously I wouldn't bot on an account I was afraid of losing.
I will leave original script and post below it as I am sure some of you don't care for the regen buffs.
:main
send tab //Acquire target
send aaaaaaaaaaaa // Rotate camera
if 300, 47 2700634 //
gosub atak
end_if
:Buff
if_not 778, 210 16579730 or [780, 266 16579795] //
send 5 // Cast vanguard (Skill slot 5)
wait 3s //
end_if
gosub main
:Hp
if 150, 42 3222577 //if chars HP bar isn't flashing red
send 6
double_right 530, 515 // Casts perserverance (Put perserverance on hotkey slot 2, This is directly above skill slot 2 if you have your bars expanded)
send 3 // Cast recover (Skill slot 3)
wait 3s
end_if
:mp
if 94, 51 4340521
send 7 // Mana pot on skill slot 7
end_if
:atak //Attack target
if 300, 47 2700634
send 1
else
gosub main
end_if
if 94, 51 4340521
gosub mp
end_if
if_not 778, 210 16579730 or [780, 266 16579795]
gosub buff
else
gosub atak2
:atak2
if 539, 552 14474612
send 2 ////Cast Shield smash on slot 2
wait 500
end_if
gosub atak3
:atak3
if 300, 47 2700634
send 4 //Cast divine strike on slot 4
wait 3s
end_if
gosub atak4
:atak4
send 8 // Cast challenge
end_if
if 150, 42 3222577
gosub hp
else
gosub atak
end_if
__________________________________________________ ________________________
~~~~~~~~Updated Script~~~~~~~~~~~~~~~
:main
set timer 0
send tab //Acquire target
send aaaaaaaaaaaa // Rotate camera
if 300, 47 2700634 //
gosub atak
end_if
:Buff
if_not 780, 266 16579795 //
send 5 // Cast vanguard (Skill slot 5)
wait 3s //
end_if
if_not 788, 220 8052882 and [788, 244 1791866]
gosub regenbuffs
end_if
gosub main
:Hp
if 150, 42 3222577 //if chars HP bar isn't flashing red
send 6
double_right 530, 515 // Casts perserverance (Put perserverance on hotkey slot 2, This is directly above skill slot 2 if you have your bars expanded)
send 3 // Cast recover (Skill slot 3)
wait 3s
end_if
:mp
if 94, 51 4340521
send 7 // Mana pot on skill slot 7
end_if
:atak //Attack target
if 300, 47 2700634
send 1
else
gosub main
end_if
if 94, 51 4340521
gosub mp
end_if
if_not 778, 210 16579730 or [780, 266 16579795]
gosub buff
else
gosub atak2
end_if
:atak2
if 539, 552 14474612
send 2 ////Cast Shield smash on slot 2
wait 500
end_if
gosub atak3
:atak3
if 300, 47 2700634
send 4 //Cast divine strike on slot 4
wait 3s
end_if
gosub atak4
:atak4
send 8 // Cast challenge
if [timer > 30000]
gosub main
end_if
if 150, 42 3222577
gosub hp
else
gosub atak
end_if
:regenbuffs
wait 2s
send i
move 530, 290
wait 2s
right 530, 290
wait 2s
move 344,287
wait 2s
left 344,287
wait 2s
move 400,408
wait 2s
left 400,408
wait 10s
gosub gett
:gett
if_not 401, 28 65280
send aaaaaaaa
send v
end_if
if 401, 28 65280
send 1
wait 5s
move 400, 482
wait 1s
left 400, 482
end_if
if 787, 219 10743728
gosub portback
else
gosub gett
end_if
:portback
send i
wait 2s
move 528, 296
wait 2s
right 528, 296
wait 2s
move 489, 216
wait 2s
left 489, 216
wait 2s
move 367, 326 // This is where you port to, set to celestine caverns maurader
wait 2s
left 367, 326 // This is where you port to, set to celestine caverns maurader
wait 2s
move 363, 308
wait 2s
left 363, 308
wait 2s
move 399, 403
wait 2s
left 399, 403
wait 10s
gosub main