Page 1 of 1

Looping Macro

Posted: March 7th, 2007, 1:07 pm
by wizardsgil
Now I know that the majority of the people on this website use scripting macros for their bots but unfortunately for me I am not that savvy on using scripts and stuff.

So my question is has anyone found a way to loop an ingame macro utilizing the ingame commands? Here is the macro that I am trying to loop:

/assistdefensive
/cast "SorcererSpell"

I was using this while /following a guildie and having him targetted. It would automatically target what he was targeted on and then cast my spell but I would have to press the hotkey over and over in order to get the macro to loop.

Posted: March 7th, 2007, 3:18 pm
by djvj
You cannot do it with ingame macros.

Posted: March 8th, 2007, 12:41 pm
by kumqwat420
pretty easy, put something heavy on the "sorcerer spell" key or whatever.

also you can write a basic script in any language that presses a key every 5 seconds or whatever

Posted: March 8th, 2007, 12:55 pm
by tokidoki
kumqwat is right (just wanted to say that name) cool name! something like autohotkey.

here is a really basic example
keyloop: ;just any ole name
Send, {1} ;sends the 1 key to whatever window you have open
sleep, 3000 ;waits 3 seconds
goto, keyloop ;starts back up at keyloop

if you start typing a message it will also type the 3 in your text unless you turn it off.

and there are ways you can pause it with a keypress too. Autohotkey is a great beginner program.. 3 days ago I knew nothing about scripting and now i've written an almost complete crafting bot from it. I just can't figure out how to make it run back and forth to buy new work orders and supplies, but hey.. in another week i'll have everything working in VGextreme anyway. As soon as I learn some syntax, which isn't hard

Posted: March 8th, 2007, 1:03 pm
by wyvernx
Looping is easy...

Do while (bSomething = true)
Your loop code here
Loop


This is all from very basic VB scripts. You really should do a VBScript tutorial found everywhere on the web.