if auto pot is on the bot, it wont click on mobs.
it makes me have to manually click on the mobs.
its like there is too much code going on for the bot to auto select the mob and pot at same time.
any tips to make the bot- auto pot, spam skills, and auto select the same time. with me being afk.
that is strange. I personally haven't had this problem. What comes to mind for me is make sure all the shortcut keys are set to default. Meaning your "target next Monster" button is still set to "U".
One thing that I have noticed that makes the bot lag is it spamming all the skills on the bar. I only check the skills that are necessary for the bot to kill, any more than that seems to slow the bot down. I have been botting a hunter and I only use 3 attack skills and 2 buffs. Cuts the button spamming down by half, atleast it seems to.
I don't know if any of that will help you at all but hope it does xD
Couple things to remember for everyone.
1. Always spam does NOT mean target
2. On Win 7 it seems to run slower
3. You might have set the target wrong on initial setup. ( empty startup file, save, and restart script )
4. I have noticed that i have to many gosubs for heals in the script. If i remove the ( gosub, heal ) in between each line its speeds up 5 times faster and seems to have no affect on heal delay. Will post it when i modify it.
5. If your computer is **** to screen freeze this will put more of a load on your computer so keep that in mind. I have slowed down the cycles and have improved that as best i can.
Couple things to remember for everyone.
1. Always spam does NOT mean target
2. On Win 7 it seems to run slower
3. You might have set the target wrong on initial setup. ( empty startup file, save, and restart script )
4. I have noticed that i have to many gosubs for heals in the script. If i remove the ( gosub, heal ) in between each line its speeds up 5 times faster and seems to have no affect on heal delay. Will post it when i modify it.
5. If your computer is **** to screen freeze this will put more of a load on your computer so keep that in mind. I have slowed down the cycles and have improved that as best i can.
You could try a for/next to run through all the checkboxes and have all that code only once would be alot faster... I think ahk has that?
translators only translate word for word. Things get lost in translation with grammar and such. Not saying thats what this is for sure but a possibility.
You could try a for/next to run through all the checkboxes and have all that code only once would be alot faster... I think ahk has that?
Yea i started that and realized not all checks are numerical. Would be easy enough to rename the variables but when they pull from the gui its taken literally and any numbers in a variable at that point are taken literally as well in autohotkey because you cant use the brackets when comparing.
you can
If (var = "4")
you cant
If (%var% = "4")
Hard for me to explain being a nub.
quote:
Note that numbers will not be mistaken for variables even if double quotes are omitted, so the following works fine:
Code:
If (var = 4)
For this reason, it is usually unwise to use numbers as variable names.<-- Sure i can get around it just have not worked on it yet. so having a rolling number in a for statement to compare to an Expression.....
Well what I meant was like I will show in an example. This is how I did it in VB, not sure if there is a way in AHK, but in VB it was well worth the speed increase. I used some of your code as filler for the example.
Code:
[B]Dim ctrl As Control[/B]
[B]For Each[/B] ctrl In FormName.Controls [COLOR=Green]'Controls are everything on a form. Like labels, text box, checkbox etc.. .[/COLOR][B]
If[/B] [I]TypeOf [/I]ctrl Is [I]CheckBox[/I] and [I]ctrl.value[/I] >= 1 [B]then[/B][COLOR=Green] 'loops through checkboxes if it finds one enabled, the rest of this code ran[/COLOR]
[B]Select Case[/B] ctrl.name [COLOR=Green]'check the name of enabled box[/COLOR][B]
case[/B] Checkbox1[COLOR=Green] 'if the name is this, do that[/COLOR]
controlsend ,, 1, Dekaron,,[B]
case[/B] Checkbox2 [COLOR=Green]'etc[/COLOR]
controlsend ,, 2, Dekaron,,[B]
end select [/B]
sleep, %sleep% [COLOR=Green]'Since this code only run if its checkbox AND enabled only need to use it once[/COLOR]
gosub, pause[B]
End If
Next
[/B]
Now this would work awesome in VB, not sure if you could make it work on AHK cuz I don't know AHK, but I'm just bored so there ya go something to think about.
Well what I meant was like I will show in an example. This is how I did it in VB, not sure if there is a way in AHK, but in VB it was well worth the speed increase. I used some of your code as filler for the example.
Code:
[B]Dim ctrl As Control[/B]
[B]For Each[/B] ctrl In FormName.Controls [COLOR=Green]'Controls are everything on a form. Like labels, text box, checkbox etc.. .[/COLOR][B]
If[/B] [I]TypeOf [/I]ctrl Is [I]CheckBox[/I] and [I]ctrl.value[/I] >= 1 [B]then[/B][COLOR=Green] 'loops through checkboxes if it finds one enabled, the rest of this code ran[/COLOR]
[B]Select Case[/B] ctrl.name [COLOR=Green]'check the name of enabled box[/COLOR][B]
case[/B] Checkbox1[COLOR=Green] 'if the name is this, do that[/COLOR]
controlsend ,, 1, Dekaron,,[B]
case[/B] Checkbox2 [COLOR=Green]'etc[/COLOR]
controlsend ,, 2, Dekaron,,[B]
end select [/B]
sleep, %sleep% [COLOR=Green]'Since this code only run if its checkbox AND enabled only need to use it once[/COLOR]
gosub, pause[B]
End If
Next
[/B]
Now this would work awesome in VB, not sure if you could make it work on AHK cuz I don't know AHK, but I'm just bored so there ya go something to think about.
Not sure if their GUI sets up like an array or not. Will have to ask. Thank you for the input.
is auto target and auto attack working?
cause its not working on mine... is there any way that i can use this bot and leave my character on spot and attacking mobs around my character?