Eden Eternal Simple Bot

10/29/2011 13:36 freakshot#631
Quote:
Originally Posted by blinko View Post
As promised here is the Auto-Updater for the bot.
Just place this updater into it's own folder and execute it.

This bot will function as it did before nothing special added as of yet.
I'm going to be fully merging billy's code and mine together, and then I'll be working in functions similar to Blue-Eye Macro only in AutoIt for everyone xD and mainly for fun ! I do not use this bot myself and I don't play Eden that often, but I enjoy bot making and will try and keep everything up to date. Just remember it's for everyone here at Elitepvpers !! With that having been said this has only been tested using a Windows XP Virtual Machine, and my Windows 7 OS both of which ran it fine with no complications.

F10 = Starts/Stops the bot.
F11 = Set Zoom Limit (camera functions for auto-routing being worked in soon)
F9 = Exit bot

There is two other functions but they aren't going to be needed to run the bot, was things I was working on. (that's if you're browsing source code).


Now to the Updater.
It'll download and retrieve the file autodownload.dlc (downloadable content)
if the EEAutoPilot.settings file exists previously within the same directory (like if you update a previous source code).

if EEAutoPilot.settings does NOT exist then it will download and retrieve the file install.dlc and then fresh install to that directory all of the needed files !

This is full source code that I was attempting to merge between billy and I's code, so two config files will be needed and in the correct place.
Billy places his at config\user.ini, and mine is in the same directory as EEAP.exe.
The update rwill set it all up for you :)

As promised here is the source code for the auto-updater. This is what does the magic. Or you can use the weblink inside it to go and manually download the files. There is just more in there than for Eden Eternal, but not much :P Just know what you are looking for.

Code:
#Region ;**** Directives created by AutoIt3Wrapper_GUI ****
#AutoIt3Wrapper_icon=..\..\..\Icon Entry_1.ico
#AutoIt3Wrapper_outfile=EEBot_Installer-Updater.exe
#AutoIt3Wrapper_UseUpx=n
#AutoIt3Wrapper_Add_Constants=n
#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****
;Migrated code for AutoIt version 3.3.1.x (and above)
#include <ButtonConstants.au3>
#include <GUIConstantsEx.au3>
#include <ProgressConstants.au3>
#include <WindowsConstants.au3>
#include <File.au3>
#include <Array.au3>
#include <String.au3>

HotKeySet("{ESC}","Form1Close")
global $ary,$fname,$dlc, $Progress1
global $content
Opt("GUIOnEventMode", 1)
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("EE Auto-Pilot Updater", 294, 50, 192, 124)
GUISetOnEvent($GUI_EVENT_CLOSE, "Form1Close")
$Progress1 = GUICtrlCreateProgress(8, 8, 275, 20)
$Button1 = GUICtrlCreateButton("Update", 117, 48, 75, 20, 0)
GUICtrlSetOnEvent(-1, "Button1")
GuiCtrlSetState($Button1,$GUI_HIDE)
$label1 = GuiCtrlCreateLabel("Working..",8,28,280,17)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

if not FileExists(@WorkingDir & "\config\") Then
	DirCreate(@WorkingDir & "\config\")
EndIf

if not FileExists(@WorkingDir & "\EEAutoPilot.settings") Then
	download("http://eeautopilot.site90.com/install.dlc", @workingDir & "\install.dlc", $Progress1)
	$content = "install.dlc"
	Button1()
	else
$app_version = INIRead(@WorkingDir & "\EEAutoPilot.settings","settings","version","")
download("http://eeautopilot.site90.com/autoupdate.dlc", @WorkingDir & "\autoupdate.dlc", $Progress1)
sleep(1*1000)
$version = INIRead(@WorkingDir & "\autoupdate.dlc","version","enc","")
;~ MsgBox(0,"",StringTrimLeft($version,StringLen($version) - 3) & " : " & $app_version)
;~ exit 0
;string = "1.2.002"
If int(StringTrimLeft($version,StringLen($version) - 3)) <> Int(StringTrimLeft($app_version,StringLen($app_version) - 3)) then
MsgBox(0,"","Application Needs Updated")
$content = "autoupdate.dlc"
Button1()
Else
	MsgBox(0,"","AutoPilot up to date")
EndIf
endif

While 1
    Sleep(100)
WEnd
func Button1()
	Button1Click($content)
EndFunc

Func Button1Click($content)
	$dlc = @WorkingDir & "\" & $content
	_FileReadToArray($dlc,$ary)
;~ _ArrayDisplay($ary)

	$aStr = _ArrayToString($ary,"|")

	$sp = StringSplit($aStr,"|")

	for $i = 2 to $sp[0]
		$ap = StringSplit($sp[$i],"/")
		$fname = @WorkingDir & "\" & $ap[$ap[0]]
		 download($sp[$i], $fname, $Progress1)
	 Next

	if FileExists(@WorkingDir & "\user.ini") Then
		FileCopy(@WorkingDir & "\user.ini",@WorkingDir & "\config\user.ini")
		FileDelete(@WorkingDir & "\user.ini")
	EndIf

GUICtrlSetData($label1, "                               Update Complete !!!")

EndFunc

Func Form1Close()
	FileDelete(@WorkingDir & "\install.dlc")
	FileDelete(@WorkingDir & "\autoupdate.dlc")
    Exit 0
EndFunc

func download($url, $target, $progress)
    $size =InetGetSize($url)
    $hDownload = InetGet($url, $target, 1, 1)   	;1 = Forces a reload from the remote site, 1 = Return immediately and download in the background
		$ab = StringSplit($url,"/")
		$a = $ab[$ab[0]]
  While Not InetGetInfo($hDownload, 2)                                            ;2 = Set to True if the download is complete, False if the download is still ongoing.
        GUICtrlSetData($progress,Ceiling((InetGetInfo($hDownload, 0)/$size)*100))
		GUICtrlSetData($label1,$a & ": " & InetGetInfo($hDownload, 0) & "/" & $size & " : " & Ceiling((InetGetInfo($hDownload, 0)/$size)*100) & "%")		;0 = Bytes read so far (this is updated while the download progresses).
	Wend
	InetClose($hDownload)
endfunc


do i need to download other file for this to work?
10/29/2011 14:05 mikepale01#632
blinko... it's working for me... help. Thanks a lot!
10/29/2011 14:47 farithizmir#633
hey sir blinko, why this bot every second change mob and does not attacking?
reply should be thankful..
10/30/2011 08:46 kikirimpiw#634
As always blink ^_^ you got my vote
10/30/2011 09:00 mikepale01#635
Quote:
Originally Posted by farithizmir View Post
hey sir blinko, why this bot every second change mob and does not attacking?
reply should be thankful..

Mine too....
10/30/2011 12:25 Tayk#636
Same on my side...
10/31/2011 02:07 unknownhack79#637
same here
10/31/2011 02:45 Airofgone#638
try putting the attack delay on 0
10/31/2011 02:53 blinko#639
I've ran the bot and have had no issues o.o. The only thing odd would be all the debug info crap that's on the GUI. I'll look into this really fast. I did further update the bot a bit with some more stuff from the blue eye macro and a few test functions that will be polished soon enough. I've configured two different methods to writing to the memory as well. So we'll be able to write at a specific offset, or to the memory address itself as a base :) If anyone can give any specifics as to what is going on I'll see about fixing it asap
10/31/2011 02:59 mikepale01#640
my bot keeps on pressing tab but won't attack the mobs... i really don't know why. i updated my bot. Thanks Blinko!
11/01/2011 02:34 MasiusPT#641
so.. I'm testing blinko's bot, but I didn't manage to get it working. I started the game, logged in to my char, turned the bot On and it didn't show any character information on the GUI. I turned everything off, turned the bot on the Updater, logged in on my char and nothing. What's wrong?
11/01/2011 03:40 JohnSmithWonderful#642
Is this new version the other guys auto bot (a ha, autobot) with a few extra bits on info on the first tab? Also, the config file isn't right. Maybe you can get it to read the targets stats?

@above; you probably need to add the extra bit on the config file
[MConfig]
baseAdd = 0x00CA9AD8
baseTargetAdd = 0x00CA9AEC
baseZoomAdd = 0x00CA91BC
[SPOT]
posX=1138507790
posY=1131292149
11/03/2011 01:44 pakupaku#643
any updates for the spot hunting code?
11/03/2011 07:27 blinko#644
Quote:
Originally Posted by pakupaku View Post
any updates for the spot hunting code?
The hunting spot is bugged atm and will not work properly. I'm working on it though slowly lol. I'm not sure why anyone is having an issues with the bot I'll attach the Installer-Updater file here again. I'd recommend a fresh install of the source code. So place the updater into it's own folder before running it. This will make the updater download ALL the source (au3 files) and the compiled EXE inside a zipped folder. For those who cannot handle compiling it.

The source code has not changed for this installer, so if you have it use it.
I'm not going to take time to re-post the code and have to dig it out lol. I trust you all trust me by now, you can always decompile it as it's not encrypted :)

ALSO !!!! BY REQUEST !!
I am excited to announce that I have downloaded the french client recently and have obtained the addresses to get the bot functioning. Posting it in a new thread so all you Eden Eternal FR players check it out :P
11/03/2011 12:44 agan018#645
avira says that it has a malware. what shall i do to install this updater? need help