Register for your free account! | Forgot your password?

You last visited: Today at 18:32

  • Please register to post and access all features, it's quick, easy and FREE!

 

simple autoit bot

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2007
Posts: 758
Received Thanks: 659
simple autoit bot

So what we're gonna do today is a very basic bot that pulls one mob at a time that you are able to tab target while ingame aka you need to see X amount of mobs infront of you for this to be optimal.

The way WAR has been designed makes this very easy to do, your character automatically turns towards the mob you want to attack and pretty much no mobs are actually linked so you can stand infront of a huge cluster of mobs and pull one mob over and over.



This is where I started and I'm now level 38, each and every zone has several places like this one.. or maybe not exactly like that one because the mobs there respawn very quickly.
I am netting about 1.3 million xp during a night with this at the moment, obviously need to change spots each or every second level as mobs that are the same level or above you give twice as much xp as a mob that is one level or more below you.


1. Download and install AutoIt.

2. Once installed launch up the SciTE Editor.
3. Read the shit below.
4. If you feel that youre done with a script or want to try it you can go to Tools > Build (to compile an .exe file) or Go to try it out.



So this is where we start.

Code:
While 1 = 1 WEnd
So what the script above does is create a function that will run over and over until 1 does not equal 1 so its a simple way for us to make something run indefinately.

Code:
While 1 = 1 Send ("{2}") Sleep(1600) WEnd
Now we'll add onto this function a button press, in this case I'll choose 2 to be pressed and because of the While function we made above itll keep running until you terminate the script (right-click the icon in the system tray and press Exit to stop the script).

Send ("{2}") would then be the key that we want it to press and Sleep(1600) means that you want it to wait for 1.6 seconds (to account for lag) before continuing and since theres a 1.5 second global cooldown on spells this is needed for it to work.


Code:
While 1 = 1 Sleep(500) Send ("{TAB}") Sleep(500) Send ("{1}") Sleep(1600) Send ("{2}") Sleep(1600) Send ("{2}") Sleep(1600) Send ("{2}") Sleep(1600) Send ("{2}") Sleep(1600) Send ("{2}") Sleep(1600) WEnd
Here I added Send ("{TAB}") at the top and by now you should understand that what this will do is press tab for you and automatically target the closest enemy.
This will target a mob, press 1 (ranged attack to pull with) and then press 2 five times - hopefully the mob will be dead by then.. obviously 5 times is optimistic you should add a few more in there to make sure the mob dies 100% incase they parry/block/resist.

That should get you started.



jitsuk is offline  
Thanks
2 Users
Old   #2
 
elite*gold: 0
Join Date: Aug 2008
Posts: 6
Received Thanks: 0
what happens if get caught with this?


Punctuality is offline  
Old   #3
 
elite*gold: 0
Join Date: Sep 2008
Posts: 91
Received Thanks: 74
Little autoit tip: you don't even need the 1 = 1 thing, you can just use While 1.

Also, it should be reasonably easy to make the bot (attempt) to loot corpses. Just have it right click the ground every time it (thinks) it's killed a monster.

I'll have to look in to that more, though.

Another note: you probably need to set this option for mouseclicks from AutoIt to register correctly.

Opt("MouseClickDownDelay",100)
MaXiMiUS is offline  
Old   #4
 
elite*gold: 0
Join Date: Nov 2005
Posts: 40
Received Thanks: 8
sehr geiler Guide, hat mir sehr geholfen! klappt bei sorc lvl 30 perfeckt!
hat jemand das mit dem looten eingebaut? klappt das so mit dem einen commando?


fatalaty is offline  
Old   #5
 
elite*gold: 0
Join Date: Feb 2008
Posts: 15
Received Thanks: 6
I have a problem here, can someone check please and tell me what's the mistake?

THX

myndflame is offline  
Old   #6
 
elite*gold: 0
Join Date: Sep 2008
Posts: 91
Received Thanks: 74
Quote:
Originally Posted by myndflame View Post
I have a problem here, can someone check please and tell me what's the mistake?

THX

Uhm.. is that all one line?

Each command needs a new line.

Also, that option you set at the end won't really do anything.. you didn't use MouseClick()
MaXiMiUS is offline  
Thanks
1 User
Old   #7
 
elite*gold: 0
Join Date: Feb 2008
Posts: 15
Received Thanks: 6
ok, ty ^^
new try
myndflame is offline  
Old   #8
 
elite*gold: 0
Join Date: May 2008
Posts: 1
Received Thanks: 0
Looting is harder if you're a ranged class though. The best way (that I've seen) to do it, is to have your mouse scan the whole play screen until your cursor changes (indicating that it is over a monster. Then have the bot click it and run a small way and then click it again. Rpt until monster is looted and then continue bot.
jasejunk is offline  
Old   #9
 
elite*gold: 0
Join Date: Sep 2008
Posts: 91
Received Thanks: 74
Quote:
Originally Posted by jasejunk View Post
Looting is harder if you're a ranged class though. The best way (that I've seen) to do it, is to have your mouse scan the whole play screen until your cursor changes (indicating that it is over a monster. Then have the bot click it and run a small way and then click it again. Rpt until monster is looted and then continue bot.
I could do it better :-P

(and just to prove it to myself, I'm trying to! hehe)

Code:
;$config[1] = width
;$config[2] = height
Func ScanForEnemyCorpse()
	BlockInput(1)
	For $x = 10 To $config[1] Step 1
		For $y = 0 To $config[2] Step 1
			MouseMove($x,$y,0)
			Switch IsArray(PixelSearch($x, $y, $x+100, $y+100, 0x000000))
				Case 1
						; This assumes 1 second = 2x full width .. which could be very wrong
						; Also assumes 1 second of running = 0.4x full height .. which is PROBABLY very wrong
					Switch $x > $halfWidth
						Case 0
							Turn(($x/(2*$config[1])),0)
						Case 1
							Turn(($x/(2*$config[1])),1)
					EndSwitch
					Switch ($temp = ($y/0.4/$config[2])) < 80
						Case 1
							MouseClick("right",$x,$y)
						Case 0
							MoveForward(($y/0.4/$config[2]))
					EndSwitch
					ScanForEnemyCorpse()
					Return 1
			EndSwitch
		Next
	Next		
	BlockInput(1)
EndFunc
Too tired to continue working on it for today.

Edit:

Dragging the mouse to the center of the screen instead of Turning would probably be much more accurate.
MaXiMiUS is offline  
Old   #10
 
elite*gold: 0
Join Date: Oct 2008
Posts: 21
Received Thanks: 0
Yeah macro looting is pretty hard to pull of in this game because regardless you always have to "click" the corpse...
hehe
MissCountry is offline  
Old   #11
 
elite*gold: 0
Join Date: Jul 2008
Posts: 46
Received Thanks: 0
Can you make 1 for Squig Herder? Cos if mob comes into melee range the arrows won't go off.

And if Squig dies, to summon again.

Thanks!


LastDance is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Need Help To Make Simple Bot With : Autoit :
Hey Every One.. I Just want Know How To Make Simple Bot With Autoit.. All I need To Know :- 1.How To make The Bot Run On Game Only Mean Work On...
9 Replies - General Coding
autoIT simple Target&attack bot help
ok got something here and im stucked please.. could anyone have a tip or suggestion in this code: #include <GUIConstantsEx.au3> ...
7 Replies - AutoIt
2 simple fragen zu AutoIt
Also wie der Tietel schon sagt hab ich ma 2 fragen zu autoit^^ also ich wolte fragen ob mir jemand erklärenkann wie man mit autoit das desktop pic...
12 Replies - AutoIt
Simple Autoit Question(Pls help)
A lot of us beginner autoit users are having trouble getting rid of this script error. Line -1: Error: Cannot redeclare a const Please...
11 Replies - 12Sky2
Simple AutoIT Bot
Hello Everybody, i made a simple bot for those who don't like T-Bot or for those where it won't works. File-Upload.net - Ihr kostenloser File...
8 Replies - SRO Hacks, Bots, Cheats & Exploits



All times are GMT +1. The time now is 18:32.


Powered by vBulletin®
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2017 elitepvpers All Rights Reserved.