Autoit Archlord

01/01/2008 13:16 noobcube#1
Need some help with autoit
i have a script what
Buffs once
targets
attacks til death
loots

but i cant figure out how to rebuff
or how to loop the attack script
at the minute i have copy pasted a few times over

help plz :)
also i want to put it in a GUI so other people will be able to test and use it
01/01/2008 14:02 Term!nX#2
Hi,

I think you have your specified functions. Like fight(), buff() how ever. To loop that you got to put it in a while-loop.

while true
fight()
buff()
...
wend
01/01/2008 14:06 noobcube#3
so put the target attack and loot script inside fight( "script here")?
01/01/2008 19:51 Term!nX#4
Take a look at this au3-Document. Read the comments and ask if you do not understand a thing.

If you want to, you can PM me your code, then I can optimize it with some explanations. If you do so, you have to comment it a bit. Like:
;here starts fighting
;here ends fighting and looting+traveling begins
01/02/2008 16:34 noobcube#5
wow thanks man :)

so where you have put
;the things you do while fighting, put your code in this function
Send("foo")
Send("bar")
Send("HappyNewYear")
i just copy over that with my target attack loot script?


i also need to know what code i need to write to make it send e .g

Send("3") every 432 seconds

i know send("3")
Sleep(432000)

wont work write

you that also need a whileloop?
oh one more thing ^^

a start/pause /unpause hotkey
would it just be
HotKeySet ( "Home" , "start" )
HotKeySet ( "End" , "pause" )
HotKeySet ( "+End" , "unpause" )?
and would all the go at the start of the script or end or where?

thanks in advance