Page 1 of 1

Bot moving while casting thunderstorm..

Posted: Mon Jun 23, 2014 9:03 am
by sauhard
Ok i just made a script for farming xp/tp in chrysalia battlefield.
What i do is go to battlefiled and place the bot there.
I use this script for using hotkey 1 and 2 and i placed thundertorm macro on those 2 slots. The problem i face is that the bot keeps on moving and does not remain static at one place as i want it to be :(



<?xml version="1.0" encoding="utf-8"?>
<waypoints>



<onLoad>
while (true) do

sendMacro("UseAction(1)");

yrest(500);

sendMacro("UseAction(1)");

yrest(500);

sendMacro("UseAction(1)");

yrest(500);

sendMacro("UseAction(2)");

yrest(500);

sendMacro("UseAction(2)");

yrest(500);
end
</onLoad>

</waypoints>




The macro is use is :
/script CastSpellByName("Thunderstorm")
/wait .15
/script CastSpellByName("Thunderstorm")
/script SpellTargetUnit()




ANy suggestions what goes wrong?

Re: Bot moving while casting thunderstorm..

Posted: Mon Jun 23, 2014 11:07 pm
by rock5
How can you cast Thunderstorm with a macro? After you cast Thunderstorm don't you need to point and click? For this to work I assume you would have to leave the mouse hovering over the point you want to click. Maybe the mouse moved and it's clicking a point too far away?

You could probably use the bots targeting functions. If you are just targeting 1 location,

Code: Select all

player:aimAt({X=1234,Z=2345,Y=34})
If you want to be able to use the computer you could let the bot finish the skill for you too.

Code: Select all

player:clickToCast()
aimAt puts the target in the middel of the screen then clickToCast clicks the middle of the screen without requiring the game to be the foreward window.

Re: Bot moving while casting thunderstorm..

Posted: Tue Jun 24, 2014 12:02 am
by lisa
rock5 wrote:How can you cast Thunderstorm with a macro?
Yeah it just casts at mouse location and if you move mouse away from screen the game things mouse it at that last spot before leaving game, not sure if it would work minimized or not but it is definately not the best way to do it since the bot now does Thunderstorm, mind you there is a chance the bot will crash using TS as I had noticed when farming KS, I never did test why it was crashing =(
rock5 wrote:player:aimAt({X=1234,Z=2345,Y=34})
Just thought I should mention the numbers are purely an example, if you use the code then you need to specify the spot to aimAt.

Re: Bot moving while casting thunderstorm..

Posted: Tue Jun 24, 2014 1:14 am
by sauhard
ehm yeah i point the mouse in the mid of the screen where the mobs keep on coming and it kills by lightning.

But meh i am a lil noob with the waypoints and stuffs so what i did was got loads of mana and put Purgatory on hotkey 1 and 2. This way it casts purgatory all day long standing at the same spot :P And this method i think is a lot easier to plevel shit loads of alts to 50 :mrgreen: :mrgreen:

As far as player:aimAt({X=1234,Z=2345,Y=34}) is concerned where do i put this is waypoint file/ macro ?