AFK LvL Bot

04/13/2008 18:52 Morpheus2007#241
Hi @ jtremblay first nice work. but iam running win xp prof and having probs with your bot it dosent look arround my res is on 1024x 768 it goes alt tab but it wont change view. Dose anyone else hav this prob ?
04/13/2008 20:09 m00000#242
Landa, thanks for the info about turning off F9 to make the atk skills work, gonna test that out asap.

As for the chipping, it works perfectly for me... it doesn't chip every time that I attack, but it does most of the time (don't know if that's the way it was designed or not).

Mombes, thanks again for the info :)

Morpheus2007, I have the same setup, and it works fine for me (make sure you set the game to run in WINDOWED mode). Hope that helps!
04/13/2008 20:45 djkee#243
I am also using win xp 1152x864 windows resolution.
Game resolution: 1024x768 ( WINDOWED ) game window is placed on the top left corner and the scripts works fine but it wont scroll :(
He tabs attacks and everything else but it wont move the camera at all :(

Could somebody please tell me what am i doing wrong ?
Version 3 of the script works great for me and it scrolls just fine :D
04/13/2008 21:29 Affenwaffen#244
bohr geil danke man er funktioniert
04/13/2008 22:51 m00000#245
Another quick suggestion for this great script:

Would it be possible to have the bot tab first to see if there are any monsters on screen that can be attacked before resorting to moving the camera?

Also, wanted to confirm that Atk Skills do work perfectly when F9 is disabled (thanx again Landa).

Keep up the great work jtremblay! Cheers!
04/14/2008 00:10 Alenos#246
jtremblay great script again lolz

got 2 ideas that i hoped no1 else could post so i seem smart XD just kiddin

1, for the cast chip option - when it casts the chip and the monsters 2 far it doesn't use the chip and just attacks instead without chip i was wonderin if you could add a line i duno how to write script but something like (this is going to sound confusing) when you cast the chip and it fails and u just attack it like 1 sec after the attack could you make it search for the pixel underneaath the monster icon at the top (the 1 that appears once you've chippd) and if its not there to cast chip again? i think that would be great for all

2, regards to the self heal - i notice uve been using green, orange, red - how about just using black? like black will show u how much % ur har has of HP like
|------------------------------| (eg if black goes past 75% heal, if goes past 50% heal)
0----25----50----75----100
(so you can chek a box saying heal over 50% or 25% or watever)
(if i diddnt explain good enough i meant the black that comes from when ur hp decreases reaching that point)
but like with 1 - 100 but that sounds hard but i think that would be the easiest way for self heal not the orange aand red pixels
( 1 - 100 would be hard but im sure like 1 -25 - 50 - 75 - 100 would be ok?)

but otherwise its heaps good :)
04/14/2008 00:47 Morpheus2007#247
I am running it in window mode but wont work it attacks and buffs and heal .... but no camera movement.
04/14/2008 02:34 jtremblay#248
Quote:
Originally Posted by Morpheus2007 View Post
I am running it in window mode but wont work it attacks and buffs and heal .... but no camera movement.
are you leaving the bot where it opens? If you move the bot to the wrong part of the screen it will not turn the camera.

@m00000: I am working on the camera thing. Unfortunately the bot can not tell the difference between anything it targets... yet.

About the attack skills... The bot works in this manor, Pull 2 second wait, F/L chip 1/2 second wait, Attack 8 second wait, then it goes to a secondary attack in the loop with a 1 second wait, then each attack skill followed by a 2 second wait. It is entirely possible that you will kill the enemy before you use a skill, but this was the ideal place to put attack skills in the bot. The 8 second wait after the primary attack is needed since the bot goes into an anti-bot detection mode if you do not cause damage to the enemy in this time frame. You can cut this wait down to almost nothing if you are pulling with a spell or range attack though, since you are already doing damage. This would allow you to use more of the skills on F10-12.
04/14/2008 03:12 hallimasch#249
ok nee status box fuer euch ....

$Form1 = GUICreate("GUI", 210, 800, 1190, 0)
GUISetIcon("C:\136.ico")
$Label1 = GUICtrlCreateLabel("Farm Bot:", 10, 20, 200, 15)
; HP des Players--------------------------------------------------------
$Label2 = GUICtrlCreateLabel("------------------------------------------", 10, 40, 200, 10)
$Label3 = GUICtrlCreateLabel("Player HP:", 10, 60, 70, 15)
$Label4 = GUICtrlCreateLabel("no Value", 70, 60, 70, 15)
$Label5 = GUICtrlCreateLabel("Player MP:", 10, 80, 70, 15)
$Label6 = GUICtrlCreateLabel("no Value", 70, 80, 70, 15)
$Label7 = GUICtrlCreateLabel("Pet1 HP:", 10, 100, 70, 15)
$Label8 = GUICtrlCreateLabel("no Value", 70, 100, 70, 15)
; HP des Mobs-----------------------------------------------------------
$Label9 = GUICtrlCreateLabel("------------------------------------------", 10, 120, 200, 10)
$Label10 = GUICtrlCreateLabel("Mob HP:", 10, 140, 70, 15)
$Label11 = GUICtrlCreateLabel("no Value", 70, 140, 70, 15)
; System-----------------------------------------------------------


[...]



;Finden der HP-Leiste des Charakterscreens-----------------------------------
$coord1 = PixelSearch( 6, 30, 215, 115, 0x00FF00, 120) ;Erstes Gruen
If PixelSearch( 6, 30, 215, 115, 0x00FF00, 120) = 1 Then
;ToolTip ("Kann HP Start nicht finden!", 1200,350)
Else
;ToolTip ("HP Start at:" & $coord1[0] & "," & $coord1[1], 1200,350)
EndIf

$coord2 = PixelSearch( $coord1[0], $coord1[1], 220, $coord1[1],0x000000 , 120) ;Erstes Schwarz
If PixelSearch( $coord1[0], $coord1[1], 220, $coord1[1],0x000000 , 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
Else
;ToolTip ("HP Ende at:" & $coord2[0] & "," & $coord2[1], 1200,350)
EndIf
;Finden der HP-Leiste des Charakterscreens-----------------------------------

;Finden der MP-Leiste des Charakterscreens-----------------------------------
$coord3 = PixelSearch( 6, 30, 215, 115, 0x0000FF, 120) ;Erstes Blau
If PixelSearch( 6, 30, 215, 115, 0x0000FF, 120) = 1 Then
;ToolTip ("Kann HP Start nicht finden!", 1200,350)
Else
;ToolTip ("HP Start at:" & $coord3[0] & "," & $coord3[1], 1200,350)
EndIf

$coord4 = PixelSearch( $coord3[0], $coord3[1], 220, $coord3[1],0x000000 , 120) ;Erstes Schwarz
If PixelSearch( $coord3[0], $coord3[1], 220, $coord3[1],0x000000 , 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
Else
;ToolTip ("HP Ende at:" & $coord4[0] & "," & $coord4[1], 1200,350)
EndIf
;Finden der MP-Leiste des Charakterscreens-----------------------------------

;Finden der HP-Leiste des 1.Pets----------------------------------------------
$coord5 = PixelSearch(6, 140, 215, 162, 0x00FF00, 120) ;Erstes Gruen
If PixelSearch(6, 140, 215, 162, 0x00FF00, 120) = 1 Then
;ToolTip ("Kann HP Start nicht finden!", 1200,350)
Else
;ToolTip ("HP Start at:" & $coord5[0] & "," & $coord5[1], 1200,350)
EndIf

$coord6 = PixelSearch($coord5[0], $coord5[1], 220, $coord5[1],0x000000 , 120) ;Erstes Schwarz
If PixelSearch( $coord5[0], $coord5[1], 220, $coord5[1],0x000000 , 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
Else
;ToolTip ("HP Ende at:" & $coord6[0] & "," & $coord6[1], 1200,350)
EndIf
;Finden der HP-Leiste des 1.Pets---------------------------------------------

;Finden der HP-Leiste des Mobcreens------------------------------------------
$coord7 = PixelSearch(($Rsize[2]-545), 30, ($Rsize[2]-335), 70, 0xFF0000, 120) ;Erstes Rot
If PixelSearch(($Rsize[2]-545), 30, ($Rsize[2]-335), 70, 0xFF0000, 120) = 1 Then
;ToolTip ("Kann HP Start nicht finden!", 1200,350)
Else
;ToolTip ("HP Start at:" & $coord7[0] & "," & $coord7[1], 1200,350)
EndIf

$coord8 = PixelSearch( $coord7[0], $coord7[1], ($coord7[0]+220), $coord7[1],0x000000 , 120) ;Erstes Schwarz
If PixelSearch( $coord7[0], $coord7[1], ($coord7[0]+220), $coord7[1],0x000000 , 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
Else
;ToolTip ("HP Ende at:" & $coord8[0] & "," & $coord8[1], 1200,350)
EndIf
;Finden der HP-Leiste des Mobcreens------------------------------------------

[...]



;Initalisierung von Abfragen und Funktionen
;================================================= ================================================== ================================================== =========================
;Abfragen der HP des Charakters----------------------------------------------
Func _GetPlayerHP()
$coord10 = PixelSearch( $coord1[0], $coord1[1], 220, $coord1[1], 0x000000, 120) ;Erstes Schwarz
If PixelSearch( $coord1[0], $coord1[1], 220, $coord1[1], 0x000000, 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
$PHprozent = -1
Else
$PHprozent = Round(($coord10[0]-$coord1[0])/($coord2[0]-$coord1[0])*100)
;ToolTip ("Player HP: "& $PHprozent, 1200,350)
EndIf
GUICtrlSetData($Label4, $PHprozent)
Return $PHprozent
EndFunc
;Abfragen der HP des Charakters----------------------------------------------

;Abfragen der MP des Charakters----------------------------------------------
Func _GetPlayerMP()
$coord11 = PixelSearch( $coord3[0], $coord3[1], 220, $coord3[1], 0x000000, 120) ;Erstes Schwarz
If PixelSearch( $coord3[0], $coord3[1], 220, $coord3[1], 0x000000, 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
$PMprozent = -1
Else
$PMprozent = Round(($coord11[0]-$coord3[0])/($coord4[0]-$coord3[0])*100)
;ToolTip ("Player HP: "& $PMprozent, 1200,350)
EndIf
GUICtrlSetData($Label6, $PMprozent)
Return $PMprozent
EndFunc
;Abfragen der MP des Charakters----------------------------------------------

;Abfragen der HP des Pets----------------------------------------------------
Func _GetPetHP()
$coord12 = PixelSearch($coord5[0], $coord5[1], 220, $coord5[1],0x000000 , 120) ;Erstes Schwarz
If PixelSearch($coord5[0], $coord5[1], 220, $coord5[1],0x000000 , 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
$PHprozent = -1
Else
$PHprozent = Round(($coord12[0]-$coord5[0])/($coord6[0]-$coord5[0])*100)
;ToolTip ("Player HP: "& $PHprozent, 1200,350)
EndIf
GUICtrlSetData($Label8, $PHprozent)
Return $PHprozent
EndFunc
;Abfragen der HP des Pets----------------------------------------------------

;Abfragen der HP des Mobs----------------------------------------------------
Func _GetMobHP()
$coord13 = PixelSearch( $coord7[0], $coord7[1], ($coord7[0]+220), $coord7[1],0x000000 , 120) ;Erstes Schwarz
If PixelSearch( $coord7[0], $coord7[1], ($coord7[0]+220), $coord7[1],0x000000 , 120) = 1 Then
;ToolTip ("Kann HP Ende nicht finden!", 1200,350)
$MHprozent = -1
Else
$MHprozent = Round(($coord13[0]-$coord7[0])/($coord8[0]-$coord7[0])*100)
;ToolTip ($MHprozent, 1200,350)
EndIf
GUICtrlSetData($Label11, $MHprozent)
Return $MHprozent
EndFunc
;Abfragen der HP des Mobs----------------------------------------------------

[...]
04/14/2008 03:30 jtremblay#250
Modified the turning script. It will only try to turn the camera if it can't target something. I also adjusted the bot-trap detection script.
04/14/2008 03:54 Alenos#251
jtremblay great update btw have you scanned over my previous post?
04/14/2008 04:33 m00000#252
jtremblay, thank you so much for the explanation and the new version! You rock! I hope you got a chance to enjoy some of your weekend away from the computer as well ;)

Cheers!
04/14/2008 05:20 superstar655#253
Quote:
Originally Posted by jtremblay View Post
I added the ability to buff your pet. remember, some buffs to not affect your pet.
Where? How?

Ive been looking for it but cant seem to find it anywhere :confused:
04/14/2008 05:54 jtremblay#254
Quote:
Originally Posted by Alenos View Post
jtremblay great update btw have you scanned over my previous post?
That is the way the healing system was setup in the earlier versions of this bot. I may venture back into that realm, but it will be much later if I do. I meant to answer you about this in my last post, but forgot after I added the file attachment.

Quote:
Originally Posted by m00000 View Post
jtremblay, thank you so much for the explanation and the new version! You rock! I hope you got a chance to enjoy some of your weekend away from the computer as well ;)

Cheers!
Unfortunately my weekend is over in about 18 hours. But it has been very productive. My goal was to finish the new GUI... I exceded my own expectations.

Quote:
Originally Posted by superstar655 View Post
Where? How?

Ive been looking for it but cant seem to find it anywhere :confused:
It is automatic - you just have to have a pet summoned and it will autobuff it with the same buffs you are casting on your character.

Speaking of pets... all of you... my beta testers... neglected to notice the auto-healing of the pet was broken. It has been broken since the new GUI. I have been trying to figure out why my pets keep dieing since the new GUI and I finally found the bug and repaired it.

Shame on you all... lol

JK

*EDIT* oh, almost forgot - I added an ALT+F9 macro for resurecting your pet if it dies.

Grr... had to modify... left some of my debugging tools in the bot.
04/14/2008 07:32 superstar655#255
Would it be possible to have..........

1. 2 or 3 healing skill spots? since some of the classes use/have many different healing skills (Cleric,Breeder)

2. Alt + 2, 3 for pet buffs? (Turtle Shell, Shamanic Warrior)

3. A wandering feature if the bot cannot see a mob, instead of the bot just standing until a mob comes in sight?

4. Pet only buffs? (Divine Claw, Creature Intimidate)

5. I doubt this could be implemented but ill suggest it anyway............... Pre-Programmed speech, basic speech like the bot saying "tyvm" after being buffed. Could really help in keeping players from thinking you're using an afk bot.

6. Check the color of the mobs level. Have an option like 'Don't Attack Mobs Over Yellow'. Could help stop the bot move into a high level area by mistake??

Really the most important is is no.3 since the bot always ends up stuck on a bot trap with no other mobs around , or he scrolls the screen 30+ times because there are no mobs near him :(

But if any/all of these were implemented i would be very grateful and it would hopefully make the bot better to use over a long period of time :)