Here is my script so far for my auto synthesis bot. There are a few problems with it:
It clicks the upper let corner when the first item isn't found.
and more but im not going to go into things... If someone could help me fix these problems that would be great.
Here is my script so far for my auto synthesis bot. There are a few problems with it:
It clicks the upper let corner when the first item isn't found.
and more but im not going to go into things... If someone could help me fix these problems that would be great.
#include <ImageSearch.au3>
HotKeySet("{ESC}", "Terminate")
WinActivate("Mabinogi")
Sleep(1000)
Global $wc1x,$wc1y ; Coordinates of water crystal with 1 left
Global $cc1x,$cc1y ; Coordinates of clay crystal with 1 left
Global $fc1x,$fc1y ; Coordinates of fire crystal with 1 left
Global $drx,$dry ; Coordinates of Drop Button
Global $wcx,$wcy ; Coordinates of water crystal stack
Global $fcx,$fcy ; Coordinates of fire crystal stack
Global $ccx,$ccy ; Coordinates of clay crystal stack
Global $winx,$winy ; Coordinates of Synthesis window open spot
Global $divx,$divy ; Coordinates of Divide Button
Global $okx,$oky ; Coordinates of OK button
Global $synthx,$synthy ; Coordinates of Synthesis button
Global Const $ms=0 ; Mouse speed
While 1
Drop()
SearchAndSynth()
WEnd
Func Drop()
_ImageSearch("wcrystal1.bmp",1,$wc1x,$wc1y,25)
_ImageSearch("ccrystal1.bmp",1,$cc1x,$cc1y,25)
_ImageSearch("fcrystal1.bmp",1,$fc1x,$fc1y,25)
Mousemove($wc1x,$wc1y)
sleep(500)
MouseClick("Secondary", $wc1x, $wc1y, 1)
Sleep(500)
_ImageSearch("Drop.bmp",1,$drx,$dry,25)
Mousemove($drx,$dry)
sleep(500)
MouseClick("Primary", $drx, $dry, 1)
Sleep(500)
Mousemove($fc1x,$fc1y)
sleep(500)
MouseClick("Secondary", $fc1x, $fc1y, 1)
Sleep(500)
_ImageSearch("Drop.bmp",1,$drx,$dry,25)
Mousemove($drx,$dry)
Sleep(500)
MouseClick("Primary", $drx, $dry, 1)
Sleep(500)
mousemove($cc1x,$cc1y)
sleep(500)
MouseClick("Secondary", $wc1x, $wc1y, 1)
Sleep(500)
_ImageSearch("Drop.bmp",1,$drx,$dry,25)
mousemove($drx,$dry)
sleep(500)
MouseClick("Primary", $drx, $dry, 1)
Sleep(500)
sleep(1000)
EndFunc
Func SearchAndSynth()
Send ("{F1}")
_ImageSearch("wcrystal.bmp",1,$wcx,$wcy,25)
_ImageSearch("ccrystal.bmp",1,$ccx,$ccy,25)
_ImageSearch("fcrystal.bmp",1,$fcx,$fcy,25)
_ImageSearch("window.bmp",1,$winx,$winy,25)
Mousemove($wcx,$wcy)
sleep(500)
MouseClick("Secondary", $wcx, $wcy, 1)
Sleep(500)
_ImageSearch("Divide.bmp",1,$divx,$divy,25)
Mousemove($divx,$divy)
sleep(500)
MouseClick("Primary", $divx, $divy, 1)
Sleep(500)
_ImageSearch("OK.bmp",1,$okx,$oky,25)
Mousemove($okx,$oky)
sleep(500)
MouseClick("Primary", $okx, $oky, 1)
Sleep(500)
Mousemove($winx,$winy)
sleep(500)
MouseClick("Primary", $winx, $winy, 1)
Sleep(500)
_ImageSearch("window.bmp",1,$winx,$winy,25)
Mousemove($fcx,$fcy)
sleep(500)
MouseClick("Secondary", $fcx, $fcy, 1)
Sleep(500)
_ImageSearch("Divide.bmp",1,$divx,$divy,25)
Mousemove($divx,$divy)
sleep(500)
MouseClick("Primary", $divx, $divy, 1)
Sleep(500)
_ImageSearch("OK.bmp",1,$okx,$oky,25)
Mousemove($okx,$oky)
sleep(500)
MouseClick("Primary", $okx, $oky, 1)
Sleep(500)
Mousemove($winx,$winy)
sleep(500)
MouseClick("Primary", $winx, $winy, 1)
Sleep(500)
_ImageSearch("window.bmp",1,$winx,$winy,25)
mousemove($ccx,$ccy)
sleep(500)
MouseClick("Secondary", $ccx, $ccy, 1)
Sleep(500)
_ImageSearch("Divide.bmp",1,$divx,$divy,25)
Mousemove($divx,$divy)
sleep(500)
MouseClick("Primary", $divx, $divy, 1)
Sleep(500)
_ImageSearch("OK.bmp",1,$okx,$oky,25)
Mousemove($okx,$oky)
sleep(500)
MouseClick("Primary", $okx, $oky, 1)
Sleep(500)
Mousemove($winx,$winy)
sleep(500)
MouseClick("Primary", $winx, $winy, 1)
Sleep(500)
_ImageSearch("Synthesis.bmp",1,$synthx,$synthy,25)
Mousemove($synthx,$synthy)
sleep(500)
MouseClick("Primary", $synthx, $synthy, 1)
Sleep(6000)
sleep(1000)
EndFunc
Func Terminate()
Exit 0
EndFunc
You should use "If" statements to check if the Images have been found, if they haven't End the "If", if they have then execute the necessary action. Since the Image was not found the X and Y coordinate variables are equivalent to zero, adding Ifs would fix the problem that occurs when the Items are not found.
If you need a GUI I can code one for you with AutoIt or Sora - Script, I don't use Koda; GUIs designed with Koda are not efficient and use unnecessary code to check for Interaction with buttons, check-boxes, edit-boxes, etc.
Below is a revised version of the "Drop" Function, I just added a few "Ifs" and modified your ImageSearch functions.
Code:
Func Drop()
$WCrystal = _ImageSearch("wcrystal1.bmp",1,$wc1x,$wc1y,25)
$CCrystal = _ImageSearch("ccrystal1.bmp",1,$cc1x,$cc1y,25)
$FCrystal = _ImageSearch("fcrystal1.bmp",1,$fc1x,$fc1y,25)
If $WCrystal = 1 Then
MouseMove($wc1x,$wc1y)
Sleep(500)
MouseClick("Secondary", $wc1x, $wc1y, 1)
Sleep(500)
$Drop = _ImageSearch("Drop.bmp",1,$drx,$dry,25)
If $Drop = 1 Then
MouseMove($drx,$dry)
Sleep(500)
MouseClick("Primary", $drx, $dry, 1)
Sleep(500)
EndIf
EndIf
If $FCrystal = 1 Then
MouseMove($fc1x,$fc1y)
Sleep(500)
MouseClick("Secondary", $fc1x, $fc1y, 1)
Sleep(500)
$Drop = _ImageSearch("Drop.bmp",1,$drx,$dry,25)
If $Drop = 1 Then
MouseMove($drx,$dry)
Sleep(500)
MouseClick("Primary", $drx, $dry, 1)
Sleep(500)
EndIf
EndIf
If $CCrystal = 1 Then
MouseMove($cc1x,$cc1y)
Sleep(500)
MouseClick("Secondary", $wc1x, $wc1y, 1)
Sleep(500)
$Drop = _ImageSearch("Drop.bmp",1,$drx,$dry,25)
If $Drop = 1 Then
MouseMove($drx,$dry)
Sleep(500)
MouseClick("Primary", $drx, $dry, 1)
Sleep(500)
Sleep(1000) ;[B]Why are there two "Sleep" functions here? You can completely remove this, it is unnecessary.[/B]
EndIf
EndIf
EndFunc
[Release] Work In Progress LoginServer Packet Documentation 05/07/2016 - SRO Coding Corner - 61 Replies I'm (edit: was) working on packet documentation for SRO, using my own file format.
LoginServer: LoginServer PDoc - By lesderid
Character Selection: CharacterSelection PDoc - By lesderid
Note: All (non-LoginServer) packets only work in kSRO.
Other versions will have other opcodes (and other packets).
Credits: Me, pushedx (for the awesome help), Windrius (for always being nice) and some (public) emulators.
Edit: The server moved to my new site: http://lesderid.net/...
[Work in Progress]Eud Ranking For Website 03/12/2014 - EO PServer Hosting - 5 Replies Im currently working on a Eud Ranking system, bout 85% done, Just working on adding in the rest of the id's for pets since most have around 5 item_type's to identify what they are, If any of you currently know some post em here, Ill keep yall updated with progress.
P.S. Im currently doing this alone and have rl Stuff I have to do while working on this so I cant say pase is good with it but I'm trying.
Future Updates:
Displaying User's Who Own The Pets
Making it display such as 80*...
[Tutorial] Aion Anti-Anti-Debugger (work in progress) 06/24/2013 - Aion Hacks, Bots, Cheats & Exploits - 18 Replies Hey all,
Even though Gameguard has been removed from Aion's launch, some parts of its protection remain. For instance, when you try to run OllyDbg, Aion immediately exits. This guide will demonstrate one simple way to prevent that from happening. Ultimately, I aim to also remove Aion's anti-breakpoint code and all other anti-debugging code.
This guide assumes that you have the following software:
OllyDbg
AionPauser (written by myself in C# download binary+source)
My Edits (HUGE work in progress lol) 05/02/2010 - CO2 Weapon, Armor, Effects & Interface edits - 0 Replies Well you've seen every1 elses....now comes the torture of seeing mine lmao
Atm all i have is pinkish...and atm all i can do is archer and tro cuz cant find a damned gm command server (if any1 has or knows of one up and running ill love you forever xD) anyways...TO THE EDITS!!!!!
Pink / Red Male Trojan (Ladies man lol)
http://i296.photobucket.com/albums/mm200/iinuyash a4/CO%20Edits/th_31934929.jpg http://i296.photobucket.com/albums/mm200/iinuyasha 4/CO%20Edits/th_31943588.jpg...
does 5bot work?/i need working auto leveler and auto loot 09/01/2009 - Conquer Online 2 - 5 Replies hey i need a good auto loot bot and auto level bot for conquer i understand 5bot you need to pay, but does it still work? is it worth it? anyone have a good working bot that they can share?
please post here! :{