(Updated) Archbot - Archlord Multi Bot Beta - With Waypoints
Archlord - Multi Bot Beta 1.1
With Pathfinder Waypoints Beta
.Net - Programmed by Fragmaster with thanks to _Villain_ for help with code.
When not using waypoints Archlord window can be minimised. If using waypoints you must use the F10 view and not minimise Archlord window, the window does not have to be in focus just has to be open so that gfx are updated.
Process (used to specify Archlord process to control)
Multiple instances of this bot can be run with each one controling a seperate Archlord toon. To use multi bots duplicate and rename alefclient.exe that is located in the Archlord directory.
ie. alefclient2.exe Process = alefclient2
alefclient3.exe Process = alefclient3 etc.
Standard launching of Archlord uses - alefclient
Waypoints(You must use F10 view and not minimize AL window)
To enable Waypoints you must tick 'Use Waypoints' checkbox and make sure the Archlord Screen resolution you are using has been selected in the 'AL Screen Res' box.
To use waypoints you must first create Revival Waypoint & Grinding Waypoint files and have them loaded. You do not need to be in F10 view to create the waypoint files.
If Starting the Bot from Town and running to grind spot using revival waypoints you must have 'Start in Town' checkbox ticked, otherwise if you are allready at the grinding location have 'Start in Town' unticked.
Revival Waypoints(Used for traveling from spawn point to grinding spot)
To make new Revival waypoint file click the Make Revivel Waypoints button. The first location you choose as the start point should be accessible without obsticles from the spawn area within town. When at location press OK on the message box to save that location, repeat process untill your at the location you want to begin grinding then press Cancel on the message box to finalise creation of the rivival point file.
Grinding Waypoints(Used for moving arround the grinding area)
Create the grinding waypoints in the same way as the revival points. Create multiple waypoints arround the location you wish to grind, this makes it so that if you run out of targets at the current location or have killed the specified number of mobs, instead of rotating 180 the bot will run to the next grinding point. Keep the grinding waypoints within the area you wish to grind.
When You Die(Used when using Waypoints)
This enables you to choose one of six different options to carry out in the event that the bot dies.
Options 2 and 5 will only be carried out if bot has more than 50 Health pots & 50 Mana pots, or until the number of revival times has been met as stated in 'Revivals b4 Close'
1. Do Nothing
As it says do nothing, you die and lie there.
2. Spawn In Town & Return to Grind Spot
Bot will respawn in town and then run back to grinding location using the selected revival waypoints.
3. Spawn In Town & Exit Archlord
Bot will respawn in town and then Archlord will Exit.
4. Exit Archlord
Archlord will Exit when you die.
5. Use Resurection Orb
Bot will use resurection / reverse orb to respawn at current location.
6. Spawn In Town & Dont Exit
Bot will respawn in town and do nothing.
Exit AL if Bots Dies(used when not using waypoints)
If bot dies Archlord will exit.
Attack & Buff Skills
Used to set up the buttons and times of both Attack and Buff skills. The tickbox must be checked for that skill to be used.
Ransack etc.
Bot will ransack if enabled using the defined button & quickbar.
Target
Define the number of mobs to target and attack each with one skill before running though all attack skills.
Next Grinding Waypoint
Define how many mobs to kill before either going to next grinding waypoint (using waypoints) or rotating 180 degrees (not using waypoints).
Auto Loot
Automatically pick up loot if no party
Fighting Boss(used if fighting Boss or Ellemental Mob)
If not checked bots will auto target a new target after 8 itterations of attack skills (this is usually enough to kill a normal mob). Stops bot getting stuck with no target. If fighting a Boss or Elle tick this to stop auto targeting another mob before current target is dead.
After 40 attempts at finding a mob uncessesfully bot will auto turn 180 degrees or run to next grinding waypoint (if using waypoints)
Vista run as Admin
======================= Previous Version ===========================================
Archbot - Archlord Duel Bot Beta 1.0
.Net - Programmed by Fragmaster with thanks to _Villain_ for help with code.
Single or duel bot use. For duel bot 2 instances of Archlord are required.
Bot 1 load Archlord normaly or run alefclient.exe
Bot 2 make a copy of alefclient.exe called alefclient2.exe use alefclient2.exe to launch second instance of Archlord.
To use both bots make sure 'Enable Bot Two' is checked.
Attack & Buff Skills are straight forward.
Ransack - Both bots will ransack if selected using the same button & quickbar.
Num Mobs to target b4 Attack - num mobs to target & attack b4 using all attacks.
Kill b4 turn - mobs to kill before bot rotates 180 degrees
Auto Loot - automatically pick up loot if no party
Exit AL if both Bots Die - If both bots die close Archlord, if only one bot runing will only close that Archlord
Bot 1 & Bot 2 Fighting Boss - If not checked bots will auto target a new target after 8 itterations of attack skills. Stop bot getting stuck with no target. If fighting a Boss check to disable the auto target after 8 itterations of selected bot.
After 40 attempts at finding a mob uncessesfully bot will auto turn 180 degrees and continue.
Vista I run with both instances of Archlord as Admin & Archbot as Admin.
This is a BETA so any comments or bugs please let me know.
Oh works with both instances of AL & Bot minimized aswell
Im currently making a version that uses one bot for one process, as in each instance of the bot u can specify the process of the AL client u want it to control. This will make it so u could have more than the limited 2 of this version.
Im also making it so you can run the bot and AL minimised without waypoint info ie. works like this version put bot in place and set it grinding and it rotates every few kills.
Or if you leave the windows open (doesnt have to be front window but cant be minimized) you can create and use revival waypoints and grinding waypoints meaning the bot can run to grinding location and then instead of rotate 180 after so many kills it goes to next grind spot. If dies can run back etc.
If i can suss out how to make the mouse click the centre of a minimized window (or if someone else knows) i can make the waypoint AL windows run minimized. At the moment if u minimize the window even though the camera goes to new location the mouseclick registers at the same location as last click before minimizing.
If i can suss out how to make the mouse click the centre of a minimized window (or if someone else knows) i can make the waypoint AL windows run minimized. At the moment if u minimize the window even though the camera goes to new location the mouseclick registers at the same location as last click before minimizing.
i think i sent u that in the first pm! the mouse click only.
Code:
[DllImport("User32.Dll")]
static extern bool PostMessage(IntPtr hWnd, uint msg, uint wParam, uint lParam);
public void mouseClick(Point targetPoint, bool leftButton/*false for right button click*/)
{
uint wparam = 0;
uint lparam = 0;
if (leftButton)
{
wparam = 0x00000001;
lparam = ((uint)targetPoint.y << 16) | (uint)targetPoint.x; //x to the lower word, y to the higher
PostMessage(targetProcess.MainWindowHandle, WM_LBUTTONDOWN, wparam, lparam);
PostMessage(targetProcess.MainWindowHandle, WM_LBUTTONUP, wparam, lparam);
}
else
{ //right click to pass through targets, so u dont click on mobs by mistake
wparam = 0x00000002;
lparam = ((uint)targetPoint.y << 16) | (uint)targetPoint.x; //x to the lower word, y to the higher
PostMessage(targetProcess.MainWindowHandle, WM_RBUTTONDOWN, wparam, lparam);
PostMessage(targetProcess.MainWindowHandle, WM_RBUTTONUP, wparam, lparam);
}
// Thread.Sleep(200);
// return true;
}
Point is a simple class i use in different apps for integer screen coords.
Code:
public class Point
{
public int x;
public int y;
public Point(int x, int y)
{
this.x = x;
this.y = y;
}
public Point()
{
x = 0;
y = 0;
}
public override String ToString()
{
return "(" + x + "," + y + ")";
}
}
this clicks the window even minimized and inactive (if u want to move to a point ingame, you can use left click or right click twice so it wont hit any selectable object....)
though creating a path is more complicated than that.....
check my base pointers post, i think i created a post there of the idea of how to!! that doesnt need packets or code injection.... but u need some math knowledge to do it so u can create the proper mapping between screen coordinates and ingame 3D coordinates....
ya... it takes sometime and research as well, but you learn alot about coding and c# (if u were new or coding in a previous language before for instance).
Pathfinding isn't a prob, store the coordinates of the toons pos X,Y,Z at intervals along the path, move the camera to those positions and in F10 view centre click window and then toon runs to that location.
All works fine with the window open (doesnt have to be in focus) but if i minimize the window the camera moves to correct position but the center click registers at the last location clicked when the window was open.
Toon at pos1 - cam move to pos2, centre click - toon starts running to pos2, minimize window - toon gets to pos2 - cam moves to pos3, centre click - toon runs to pos1. :/
@ goldlegendz.com _Villain_ did a really kewl post with info on finding the memory addresses and static pointers needed to locate them everytime. search for cheat engine - I learnt how to get the addresses from their webby and by doing the tutorials included witht the app. I cant think of any more addresses i need off hand, for me this is a C# learnin experience by redoing the Archbot i made a couple of years ago as Archlordman using AutoIt, but with a bit more functionality.
Using vista aero theme i can see the AL window gfx do not get updated when the window is minimized. It keeps the last frame rendered so when click centre it clicks centre of that frame.
Anyone know how to force a window to update the gfx of a current frame to what it would be if the window was open?
good job my friend. i am currently hiring some c#/c++ coders to develop a memory/packet bot i hope i will get them soon enough but first i wanna see what happens in next eppisode
MxO Get a CQ point from a /duel (Dirty-Duel) 06/03/2005 - General Gaming Discussion - 0 Replies Want an easy way to piss someone off?
Offer them a /duel then as you are about to win, during the slo-mo finishing move animation quickly type:
/duel stop
This will not only give you a free CQ point, but will force them to go back to the loading area instead of just poping back up, hence the name "Dirty-Duel"
NOTE: for even better effectiveness you can go ahead and type it out and wait to press Enter untill the golden moment...