d2jsp
Log InRegister
d2jsp Forums > Other Games > Archived Games > Hellgate > Bot Creation...
1236Next
Closed
Member
Posts: 14
Joined: Sep 24 2011
Gold: 0.00
Warn: 10%
Sep 25 2011 10:29am
I wanna say first i hate AutoIt and i have no idea why i decided to use it after all :D

Need help with making the bot:
1. How to get my coordinates (the ones of reset button, and the ones of OK button);
2. Something wrong with terminate;
3. Any ideas how to make the "targeting" a lil better ?
--- And i'm nub at using AutoIt, so dotn be harsh ---

Code

#ce ----------------------------------------------------------------------------

#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>

#Region
$Form1 = GuiCreate("Hellgate Bot",268,257,637,331)
$Form1 = GUISetBkColor(0xb83f5d)
$Form1 = GUICtrlSetFont(-1, 12, 800, 0, "Comic Sans Ms")
$Form1 = GuiSetState()
$Button1 = GUICtrlCreateButton("GO GO", 20, 40, 190, 50, 0)
$Button2 = GUICtrlCreateButton("STOP > ESC", 20, 140, 190, 50, 0)
GUISetState(@SW_SHOW)
#EndRegion

HotKeySet("{ESC}", "Terminate")

Func _move($loop,$key)
For $i = $loop to 1 Step -1
ControlSend("Hellgate (x86 DX9)", "", "", $key)
Next
EndFunc

Func Terminate()
   Exit 0
EndFunc

While 1
$nMsg = GUIGetMsg()

Select

Case $Button1
While 1

Sleep(2000)
_move(120,"s")
Sleep(5)
_move(25,"w")
Sleep(5); Getting IN
_move(25,"s")
Sleep(3000); INSIDE FROM NOW ON, increase the second W MOVE to get deeper
_move(50,"w")
Sleep(5)
_move(40,"a")
_move(150,"w")
Sleep(10)
_move(25,"a")
ControlSend("Hellgate (x86 DX9)", "", "", "{Y}"); AOE
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(1000)
ControlSend("Hellgate (x86 DX9)", "", "", "{y}"); AOE
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{q}"); HP injector
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{5}"); ATT
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{6}"); ATT
Sleep(100)

Sleep(2350)

ControlSend("Hellgate (x86 DX9)", "", "", "{7}"); Unstuck macro activated by key 7
Sleep(15000)
_move(80,"s"); Start to walk to get out of there
Sleep(5)
_move(18,"w")
Sleep(5)
_move(18,"s")
Sleep(4000)

Send("{ALTDOWN}"); RESET
Sleep(500)
MouseClick("left","X","Y",1)
Sleep(500)
MouseClick("left","X","Y",1)
Sleep(100)
ControlSend("Hellgate (x86 DX9)", "", "", "{ENTER}")
Sleep(10)
MouseClick("left","X","Y",1)
Sleep(500)
MouseClick("left","X","Y",1)
Sleep(300)
MouseClick("left","X","Y",1)
Sleep(300)
MouseClick("left","X","Y",1)
Sleep(300)
Send("{ALTUP}")
Sleep(250)

WEnd

Case $Button2
GUIDelete()
ExitLoop

EndSelect


wend
Member
Posts: 9,601
Joined: Nov 27 2005
Gold: 5,000.00
Sep 25 2011 10:56am
this is prolly going to get locked, but i thought you couldn't send keys to hellgate, i tried with autoit and couldn't get it working, i will try and give this a try and see if i can give u any feedback tho
Member
Posts: 14
Joined: Sep 24 2011
Gold: 0.00
Warn: 10%
Sep 25 2011 12:05pm
Works fine for me, if for some reason topic gets locked i guess i'll have to drop the project down :) Anyway if bot at some point stops to work i can always inject .exe. Now on the topic, i still hope to get some "advices" how to solve the 3 problems i have faced :)


Finding coords - RESOLVED !
Pause/Quit - RESOLVED !

Working on targeting, any ideas are welcome :) (EXCEPT pixel search ! )


This post was edited by Ispanika on Sep 25 2011 12:24pm
Member
Posts: 21,692
Joined: Jul 15 2005
Gold: 95.00
Sep 25 2011 12:15pm
Quote (Ispanika @ 25 Sep 2011 14:05)
Works fine for me, if for some reason topic gets locked i guess i'll have to drop the project down :) Anyway if bot at some point stops to work i can always inject .exe. Now on the topic, i still hope to get some "advices" how to solve the 3 problems i have faced :)


Finding coords - RESOLVED !


Pm njaguar he was the one who created d2jsp he might be able to help you.
Member
Posts: 14
Joined: Sep 24 2011
Gold: 0.00
Warn: 10%
Sep 25 2011 01:14pm
http://www.megaupload.com/?d=XD14D2H0
http://www.virustotal.com/file-scan/report.html?id=edc22675bcefad3943404c2e47c7381598355293f7cad2f59943ae15901f1ab4-1316977055

Use 1024x768 Full Screen.

It will:
1. Enter SH, go to mobs and cast 2 buffs on buttons "4" and "8"
2. Cast AOE on button "Y" + close range skills on bt "5" and "6"
3. Cast AOE again on bt "Y" and leave SH
4. Reset and repeat

- Soon to add option to loot and to change hotkeys. Still looking for ideas how to target more accurately.

This post was edited by Ispanika on Sep 25 2011 01:19pm
Member
Posts: 9,601
Joined: Nov 27 2005
Gold: 5,000.00
Sep 25 2011 01:23pm
Quote (Ispanika @ Sep 25 2011 03:14pm)
http://www.megaupload.com/?d=XD14D2H0
http://www.virustotal.com/file-scan/report.html?id=edc22675bcefad3943404c2e47c7381598355293f7cad2f59943ae15901f1ab4-1316977055

Use 1024x768 Full Screen.

It will:
1. Enter SH, go to mobs and cast 2 buffs on buttons "4" and "8"
2. Cast AOE on button "Y" + close range skills on bt "5" and "6"
3. Cast AOE again on bt "Y" and leave SH
4. Reset and repeat

- Soon to add option to loot and to change hotkeys. Still looking for ideas how to target more accurately.


without pixel search? and using autoit?
Member
Posts: 14
Joined: Sep 24 2011
Gold: 0.00
Warn: 10%
Sep 25 2011 01:50pm
Yeah, if you remember Diablo 2 had a function which was making the pixel search impossible or at least hard to use. Here is the same situation with varying pixel colors, that's why i avoid it.

Can you help me to make it and try it ? I tried to obtain the HP bar of the mobs, so it recognize where the mobs are, but after following the same pixel and recording his color i saw it change 11 times for 5sec. Or maybe if u know how to make it recognize range of colors ?

1=0xE4FFDE - Mob Alive
2=0xEBFFE7 - Mob Alive
3=0xE4FFDE - Mob Alive
4=0xE4FFDE - Mob Alive
5=0xEBFFE7 - Mob Alive
6=0xEFFFEC - Mob Alive
7=0xEBFFE7 - Mob Alive
8=0xE4FFDE - Mob Alive
9=0xE4FFDE - Mob Alive
10=0xF2FFEF - Mob Alive
11=0x808280 - - Mob Dead

This post was edited by Ispanika on Sep 25 2011 01:51pm
Member
Posts: 9,601
Joined: Nov 27 2005
Gold: 5,000.00
Sep 25 2011 01:55pm
Quote (Ispanika @ Sep 25 2011 03:50pm)
Yeah, if you remember Diablo 2 had a function which was making the pixel search impossible or at least hard to use. Here is the same situation with varying pixel colors, that's why i avoid it.

Can you help me to make it and try it ? I tried to obtain the HP bar of the mobs, so it recognize where the mobs are, but after following the same pixel and recording his color i saw it change 11 times for 5sec. Or maybe if u know how to make it recognize range of colors ?

  1=0xE4FFDE - Mob Alive
  2=0xEBFFE7 - Mob Alive
  3=0xE4FFDE - Mob Alive
  4=0xE4FFDE - Mob Alive
  5=0xEBFFE7 - Mob Alive
  6=0xEFFFEC - Mob Alive
  7=0xEBFFE7 - Mob Alive
  8=0xE4FFDE - Mob Alive
  9=0xE4FFDE - Mob Alive
  10=0xF2FFEF - Mob Alive
  11=0x808280 - - Mob Dead


honestly, im not the best with autoit anymore, made an autoit aimbot back in the day that did pixelsearches, are you sure the problem isn't that the mob is moving so the color changes?

and have you tried ifpixel=x || ifpixel=x2 || ifpixel=x3 and so on for all the values you found to be potentials?... (i kno the actual terminology is probably way off, but i'm sure you understand the logic behind it)

it would be tedious, but if you are always searching for those same color codes you could just copy/paste a bunch

edit: btw have you posted on autoit forums saying that it is definitely not to create a bot or hack, and maybe it is used for idfk something non game related?
they don't like to help you if you are trying to create a bot or hack

This post was edited by sofakingdom on Sep 25 2011 01:56pm
Member
Posts: 14
Joined: Sep 24 2011
Gold: 0.00
Warn: 10%
Sep 25 2011 02:01pm
I send you a PM, so u can help me there. Anyway i already made the mistake to say on AutoIt forums it was bot, so i was denied help and warned :D

So, still lf aiming script to help the bot :)

SEND PM IF U NEED SOURCE OR WANT SOMETHING MODIFIED TO WORK FOR YOU !

This post was edited by Ispanika on Sep 25 2011 02:28pm
Member
Posts: 14
Joined: Sep 24 2011
Gold: 0.00
Warn: 10%
Sep 25 2011 10:30pm
Hellgate Bot v3: Tested 7h, worked 5h before server crashed.

http://www.megaupload.com/?d=1ZFQ7DY6
http://www.virustotal.com/file-scan/report.html?id=22a3cb156c7736f889fe03894ca7c18530fe70c4354d0f4e25ef4627aafc1594-1317010406

Keys:
1 = weapset 1 (using buff 8 there)
3 = weapset 3 (using buff 9 there and switching to weap 1 after)
Middle mouse button = AOE
Left and right mouse button = close attacks
Q = health injectors if needed
7 = Macro for unstuck


What bot does: Enters, buff with weap 3 - key 8, buffs with wep 1 - key 9, nukes with AOE, uses close range attacks and leaves SH, then resets. NO LOOTING(i find it time wasting). Will put later today pixel search to it.
Go Back To Hellgate Topic List
1236Next
Closed