Tailor Made Tools/Programs for You - AHK

10/20/2009 19:04 Evan Lim#871
demonkk3@
yea sure, editing an existed script should be quite simple
10/21/2009 06:25 123qweasdqwe#872
Hi evan, Could u make a auto-hunt for my archer, Usually i will be using it in metzone, picking up items is not important, because i just need the kills. Auto-pot if possible (F1 for pots), when hp are less den 50%. And auto-dc when my archer is unable to pot(When run out of pots). Probably it would be good if im able to recordpath as metzone is a big place, i would like to record where it should jump.
I don't know if tis is call background clicks, but it would be good if it works on background so that it carry on botting when im not using the comp.
10/21/2009 06:41 Evan Lim#873
123qweasdqwe@
dont know how to make background bots
and if its not background, again COELSE fits all the above requirements
10/21/2009 07:16 123qweasdqwe#874
Quote:
Originally Posted by Evan Lim View Post
123qweasdqwe@
dont know how to make background bots
and if its not background, again COELSE fits all the above requirements
oh alright, thanks alot anyway ^^
10/21/2009 08:42 123qweasdqwe#875
Hi again.
Could u make me a auto right clicker, for scatter shots, without getting autoclick jailed. I don't need the auto clicker to aim on the monster, on where my cursor is will do.

And if u don't mind, a auto-zap too. As in, auto zap monster with the red hp bar, in mystic castle, reddevils spawn. Using mana pots maybe 5mins once as im wearing a mana bs and have much mana.
10/21/2009 08:53 Evan Lim#876
123qweasdqwe@
ok, this is the auto right click part. hold right click for 2+ sec to activate the auto. press right click again to disable

Code:
~$RButton::
settimer, rclick, off
s := A_TickCount
KeyWait, RButton
e := A_TickCount - s
if e > 2000
settimer, rclick, 500
return

rclick:
click, right
return
and assuming u are using 1024x768 client
the zap:
Code:
Red_hex = 0x0303B8
msgbox, Ctrl+Q to pause`nMP pot in F2 slot
settimer, atk, 700
settimer, pot, 300000
return

pot:
send {F2}
return

atk:
PixelSearch, outx, outy, 400, 200, 600, 400,%Red_hex%,,Fast
if ErrorLevel = 0
{
EnvAdd, outx, 20
EnvAdd, outy, 20
click, %outx%, %outy%, right
return
}

PixelSearch, outx, outy, 100, 50, 900, 600,%Red_hex%,,Fast
if ErrorLevel = 0
{
EnvAdd, outx, 20
EnvAdd, outy, 20
click, %outx%, %outy%, right
return
}

return

^q::pause
10/21/2009 08:56 123qweasdqwe#877
Quote:
Originally Posted by Evan Lim View Post
123qweasdqwe@
ok, this is the auto right click part. hold right click for 2+ sec to activate the auto. press right click again to disable

Code:
~$RButton::
settimer, rclick, off
s := A_TickCount
KeyWait, RButton
e := A_TickCount - s
if e > 2000
settimer, rclick, 500
return

rlick:
click, right
return
and assuming u are using 1024x768 client
the zap:
Code:
Red_hex = 0x0303B8
msgbox, Ctrl+Q to pause`nMP pot in F2 slot
settimer, atk, 700
settimer, pot, 300000
return

pot:
send {F2}
return

atk:
PixelSearch, outx, outy, 400, 200, 600, 400,%Red_hex%,,Fast
if ErrorLevel = 1
{
EnvAdd, outx, 20
EnvAdd, outy, 20
click, %outx%, %outy%, right
return
}

PixelSearch, outx, outy, 100, 50, 900, 600,%Red_hex%,,Fast
if ErrorLevel = 1
{
EnvAdd, outx, 20
EnvAdd, outy, 20
click, %outx%, %outy%, right
return
}

return

^q::pause

I will test it now, and yes 1024x768 is correct. Thanks.
Btw, pretty curious on something, Zoom hack is not created with AHK right?
10/21/2009 09:01 Evan Lim#878
123qweasdqwe@
it can be made in ahk
i used to have one around here, but no one update me with the zoom address
so usually when ppl request, i would tell him to give me the address first
as a matter of fact, the script is only few lines
10/21/2009 09:05 123qweasdqwe#879
Quote:
Originally Posted by Evan Lim View Post
123qweasdqwe@
it can be made in ahk
i used to have one around here, but no one update me with the zoom address
so usually when ppl request, i would tell him to give me the address first
as a matter of fact, the script is only few lines
Hmm, how do i check the zoom address den ?
And does different patch of CO have different address?
10/21/2009 09:19 Evan Lim#880
123qweasdqwe
i dont know, there used to be some ppl always release the zoom address along with a bunch of other address like XY coordinate, money, hp, mp...etc

it can be different address in different patches
but if the zoom address is not static, it will be different every time u open a new client
10/21/2009 21:28 modelingfrog#881
QUOTE=Evan Lim;3273427]123qweasdqwe@
ok, this is the auto right click part. hold right click for 2+ sec to activate the auto. press right click again to disable

Code:
~$RButton::
settimer, rclick, off
s := A_TickCount
KeyWait, RButton
e := A_TickCount - s
if e > 2000
settimer, rclick, 500
return

rlick:
click, right
return
and assuming u are using 1024x768 client
the zap:
Code:
Red_hex = 0x0303B8
msgbox, Ctrl+Q to pause`nMP pot in F2 slot
settimer, atk, 700
settimer, pot, 300000
return

pot:
send {F2}
return

atk:
PixelSearch, outx, outy, 400, 200, 600, 400,%Red_hex%,,Fast
if ErrorLevel = 0
{
EnvAdd, outx, 20
EnvAdd, outy, 20
click, %outx%, %outy%, right
return
}

PixelSearch, outx, outy, 100, 50, 900, 600,%Red_hex%,,Fast
if ErrorLevel = 0
{
EnvAdd, outx, 20
EnvAdd, outy, 20
click, %outx%, %outy%, right
return
}

return

^q::pause
[/QUOTE]



perfect, it beats the one i struggled to figure out myself lol thank you!

Just wondering,
box one gets error on line 20 : settimer,rclick,off and closes.

as for the second script, how can i time when to pot? i only have minimal mana for example and i'd like to to use the F2 key x amount of seconds/minutes. the 100000 never seams to activate. (whats the conversion into realtime?)
10/21/2009 23:35 Evan Lim#882
modelingfrog@
it shoud be rclick, not rlick on line20
1min = 60000ms
so 100000ms is 1.6mins
and in the example script, it said "settimer, pot, 300000" thats, 5mins
10/22/2009 00:11 modelingfrog#883
may i compile these and post them in the bots & macro pages?
10/22/2009 00:29 Evan Lim#884
modelingfrog@
do whatever u want with the script
just dont mention my name if u are going to release it
and answer questions or debug urself when users ask u questions
10/22/2009 01:06 modelingfrog#885
considering how little i know, that wouldn't be a good move on my part.
Once i learn more or understand better I will consider it again.
-------------
on another note, i was wondering, off topic,
i started out using AHK to make a specific app.

I wanted to be able to for example in IE7 (1280x800) highlight text on a webpage (anything at all) and past it into a toolbar that in turn, would use its search function to provide results on that.
once the page loaded it would capture text again and past it into the bar once more. repeating the process until i exit. Is this something that can be done? (or should i be using something like autoit for example?)