KramBot 1.1 -- 3/6/2007

Status
Not open for further replies.

Kram337

Active Member
Welcome to KramBot
The bot to serve all solo afk botting needs.

What this does:
Usable by any class of any level that doesn't HAVE to kite to solo.
Follow the instructions at the top of the script to set the script up to work with your class.
It will basically hunt an area for mobs within your level range, killing, looting, and much more.

Newest Features:
1. A pause button! Woohoo. Check Pause and the bot will pause until you uncheck it the button. You can use this to temporarily pause the bot while you go repair/sell/train, then when you get back, unpause to resume without setting up patrol points again.
2. You can now setup 3 patrol points that your character will travel between to hunt mobs
3. Totally AFK setting, now if you're afk, your character will stop pulling if another player comes nearby. You can also choose one ability to go off when a player comes near (such as invis)
4. Updated UI so that you can control a few variables while the script is running. This way you dont have to stop and resetup your patrol points. Downlaod the new xml file!

Usage: IF YOU DONT READ ANYTHING ELSE, READ THIS
1. Go to the bottom of this script, Change all the variables to match your abilities
2. Review ALL of the variables you see in the SetAbilities function
3. Save the file after your edits.
4. In-game, find a fairly open location with mobs you can solo
5. Type Runscript Krambot into the console window
6. The KramBotUI should pop up, you can choose up to 3 patrol points.
a. By default your first patrol point is where you are standing right now.
b. Run in a straight line to your second patrol point and click Set Patrol Point 2
c. Run from this point to your third patrol point and click Set Patrol Point 3
d. Be sure you're running in a straight line and no objects obstruct your path
7. Now that the patrol points are set, click START and it wil begin.
8. If you want to quit, click QUIT on the UI.

Tips on Use
1. Set your patrol points to be no more than 50m away from eachother, this way you'll have already cleared the mobs between the points before moving to the next point.
2. Patrol points make your character go in a line, from 1, to 2, to 3, back to 2 , back to 1. Try to make your points create a line thru an area thats not too dense with mobs.
3. If you want the bot to run flawlessly, without deaths, for hours and hours, follow the first 2 tips.

Requirements
Download moveto 1.1: http://www.isxgames.com/forums/showthread.php?t=582
Downlaod antiadd 1.2: http://www.isxgames.com/forums/showthread.php?t=663

Required XML file can be found attached to this post. Save this XML file into a folder called XML inside your Scripts folder.


To discuss this script or get help with issues, post here:
http://www.isxgames.com/forums/showthread.php?p=2874#post2874


See code for usage and further details:
Code:
/* KramBot
 * Version 1.1 -- 3/6/2007
 *
 * Credits:
 * Created by Kram
 * Harvesting code by Abbadon
 *
 * With MUCH help from: Amadeus, dontdoit, Thanatos, Abbadon, Zeek, Xeon, Tsumari, 
 *			Hendirx, Xxyn, Neriod, and every helpful person in IRC
 *			Thanks to those who helped beta test.
 *
 *
 * Requirements:
 * 	Required include files: moveto.iss & antiadd.iss
 *	Download moveto 1.1:  http://www.isxgames.com/forums/showthread.php?t=582
 *	Downlaod antiadd 1.3: http://www.isxgames.com/forums/showthread.php?t=663
 *	Place both of these files in a "common" folder in the Script folder
 *	
 * Discription:
 *	This is intended to be usable by any class to solo afk
 *	Currently it is setup to work with any class that doesn't HAVE to kite to solo
 *	
 * Usage:
 * 	1. Go to the bottom of this script, Change all the variables to match your abilities
 *	2. Review ALL of the variables you see in the SetAbilities function
 *	3. Save the file after your edits.
 *	4. In-game, find a fairly open location with mobs you can solo
 *	5. Type Runscript Krambot into the console window
 *	6. The KramBotUI should pop up, you can choose up to 3 patrol points. 
 *		a. By default your first patrol point is where you are standing right now.
 *		b. Run in a straight line to your second patrol point and click Set Patrol Point 2
 *		c. Run from this point to your third patrol point and click Set Patrol Point 3
 *		d. Be sure you're running in a straight line and no objects obstruct your path
 *	7. Now that the patrol points are set, click START and it wil begin.
 *	8. If you want to quit, click QUIT on the uI. 
 *
 * Features:
 *	Buffs, Pulls, Melee's, Dots, Nukes, Snares, Heals, Loots, meds up, starts again.
 *	Counts total mobs killed and xp gains per kill.
 *	Avoids pulling mobs that have adds.
 *	Avoids adds while killing current mob.
 *	Travels between 3 patrol points to check for mobs to kill
 *	Pauses botting if another player is nearby (optional)
 *
 * Future Plans:
 *	Adding Pet functionality. Healing, Buffing, and sending pet in.
 *	Feign Death. -Nerion is working on FD functionality
 *	Add food consumption options
 *	Logout timer, set this and your script will run until the times up then lot you out of the game
 *	Safe path, a location to attempt to escape too if you have adds and are dying too quickly.
 *	Better add handling, Mez, Root, Charm, etc	
 *	Option for not pulling named mobs
 *
 * Known Issue:
 *	Getting stuck while "moveto" is going. You keep trying to get to the mob for 4 minutes before you give up
 *	You can manaully adjust the "BailOut" timer from 240 seconds to more like 20 seconds and that's usually good enough
 *
 * Version 1.1 
 *	Added new functionality to the UI. Thats about it.No new waypoints yet as I want to convert this, again to us VGPather
 */
 

Attachments

Last edited:

Kram337

Active Member
Version 1.0 Updates

* Version 0.4
* Feature Added: New GUI that allows you to set patrol points for your bot
* Added an extra check to make add handling more stable. Should no longer switch between targets and not kill either upon getting an add
* Added new variable AddChecking. Set this to FALSE if you dont care about getting adds.
* Added TotallyAFK options. Set this to True if you want your botting to pause when a player comes too close.
* You can also set an ability to be used when a player is near. Such as invisibility.
* Removed unused variables.
* Various bug fixes based on reports from users.
 

Kram337

Active Member
Version 1.1

Version 1.1 -- 3/6/2007
Added new functionality to the UI. Thats about it.No new waypoints yet as I want to convert this, again to us VGPather

Download the new XML and ISS files!
 

Kram337

Active Member
Setting up for a Rogue

I've been asked a number of times now how to set this up to work for a rogue. Since a rogue doesn't want to used ranged attacks to open fights. He wants to sneak in and use backstab if possible.

The following changes will set the bot up for a rogue. I've tested it on my uber lvl 7 rogue and it was working wonderfully.

First change to make is in the variables listed at the end of the script. PullAbility, PullFollowup, and PullBackup. Set these to look something like this:
Code:
;Pull spell/ability (can be any spell or ranged attack, uses this to pull, duh)
PullAbility:Set[Stalk]
	
;Pull Followup, this ability will be performed after the initial pull. Should set this to your ranged chain
PullFollowup:Set[Backstab I]
		
;Pull Backup, this is the last effort to pull a mob. If for some reason your first two pull abilties failed
PullBackup:Set[Wicked Strike I]

Great, now we need to find some code in the Pull function, delete it and replace it with the code below.

Find the code in the Pull function that starts with the commented line "Pull using PullAbility" If you're using version 1.1 it should be around Line 518.

Delete the code that lies between the following commented lines:
;Pull using PullAbility
and
;Use your pull follow up


Now copy and paste the following code into that area:
Code:
	;Pull using PullAbility
	if "${Me.Ability[${PullAbility}].IsReady} && ${Me.Target.ID(exists)} && !${Me.Target.Owner(exists)} && (!${Me.TargetHealth}<100) && !${Harvesting}"
		{
			face
			Me.Ability[${PullAbility}]:Use
			
			;changed for rogue	
			if "${Me.Target.Distance}>2 && ${Me.Target.Distance}<${PullDistance} && !${Me.Target.Owner(exists)} && (!${Me.TargetHealth}<100) && !${Harvesting}"
			{	
				call DebugIt "D. Moving in to pull range"
				call movetoobject ${Me.Target.ID} 3 1
				do
					{
						wait 1
					}
				while ${Me.Target.Distance}>4
			}
		} 

	;Use your pull follow up
With it all said and done, you'll find a target to pull, move up to 24m, go into stealth, then walk up and try to backstab. If you dont have the targets back or side, you'll just use wicked strike instead.

Its not going to walk you behind the mob to get a backstab everytime. Though thats possible I didn't include such specifics.
 
Status
Not open for further replies.
Top Bottom