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?