Tao mana regeneration macro/bot

05/02/2006 18:45 conquer4lief#1
hey. This is pretty much my first attempt at a bot, and for the most part it is entirely from torredo's tutorial on bot making, although it has been modified, obviously, since his is for a hp monitor, and this is for mp. Basically, it watches if your mp goes down to a certain point, and if it does, it uses meditation (must be on hotkey f4) if your stamina is full. If it isn't full, it will sit (sit should be on hotkey f5). I thought this would be useful because as I'm battling bigger monsters, i usually hold down my sit hotkey while i'm attacking, then use meditation as soon as its full.

I actually have 2 versions of it... the first works on one computer and the other on my other computer. The issue is that on one computer, the pixel keeps fluxuating between various shades of blue for the mana and stamina bar. I think that problem might be specific to this computer, so I will just release the one that works on the computer where the pixel is a constant color. If anyone has the same problem as me, and this bot continually tries to meditate/sit, even when mp/stamina is full, let me know and i will release my other version, or the source so you can modify it to your specific needs. And btw, co must be running in full screen/1024 mode.

Conquer4Lief

I dont know to upload an attatchment in here, so i put it on rapidshare:
[Only registered and activated users can see links. Click Here To Register...]
05/02/2006 19:19 Rorrim#2
Its clean ;)

File: c4l.rar
Status:
OK
MD5 b65db5cf6a85fbe2091fe4467fbef47a
Packers detected:
-
Scanner results
AntiVir
Found nothing
ArcaVir
Found nothing
Avast
Found nothing
AVG Antivirus
Found nothing
BitDefender
Found nothing
ClamAV
Found nothing
Dr.Web
Found nothing
F-Prot Antivirus
Found nothing
Fortinet
Found nothing
Kaspersky Anti-Virus
Found nothing
NOD32
Found nothing
Norman Virus Control
Found nothing
UNA
Found nothing
VirusBuster
Found nothing
VBA32
Found nothing

Edit:
Done at [Only registered and activated users can see links. Click Here To Register...]
05/03/2006 01:29 Beelsebub#3
Yeah i have had the same problem when i was makin a hp bot from torredo's tutorial. My pixels on my hp bar keep changing. Any chance you can tell me how you overcome this or send me the source code.
05/03/2006 04:46 conquer4lief#4
Basically my game fluxuated between 2 main colors. but, if those two colors were very far from the colors that it showed if the meter was empty (like, say for example, when the stamina meter was full, the numbers were somewhere in the 8millions, but when it wasnt full, it was less than 1000000). Then I could put if "text1.text < 1000000" then send the sit key.

and if it is greater than 1000000, and the mana meter is too low, then send the meditation key.

my code was basically as follows:

Code:
Private Sub ManaTimer_Timer&#40;&#41;
Dim x, y, mx, my As Integer
x = 45
y = 687
mx = 58
my = 708
  screendc = CreateDC&#40;&#34;DISPLAY&#34;, &#34;&#34;, &#34;&#34;, 0&&#41;
  Text1 = GetPixel&#40;screendc, x, y&#41;
  DeleteDC &#40;screendc&#41;
  screendc = CreateDC&#40;&#34;DISPLAY&#34;, &#34;&#34;, &#34;&#34;, 0&&#41;
  Text2 = GetPixel&#40;screendc, mx, my&#41;
  DeleteDC &#40;screendc&#41;
  If Text1.Text > 1000000 Then
  If &#40;Text2.Text = 8681827&#41; Or &#40;Text2.Text = 8090979&#41; Then
  SendKeys &#34;{F4}&#34;
  End If
  End If
End Sub

Private Sub StamTimer_Timer&#40;&#41;
  If Check1.Value = 1 Then
  If Text1.Text &#60; 1000000 Then
  SendKeys &#34;{F5}&#34;
  End If
  End If
End Sub
x and y are the coords for my stamina meter at 100 pct, and mx and my are the coords for my mana meter at the point where I'd liek to refill. Also, I needed to make two timers and make the one that sends the sit key with an interval of 500 because when it sent ti every 1 millisecond, it was really messing me up and not letting me jump around, causing me to get pwned by mobs. Oh yeah, and the check1 is just a checkbox that lets me disable the sitting function if I choose. Hope this helps!
05/03/2006 16:51 conquer4lief#5
I just want to try to get a general idea of how many people are experiencing this problem about fluxuating pixels. At first I thought it was an isolated problem, since it happened on one computer and didnt happen on the other. But, after beelsebub's post, i'm wondering if this is a common thing. any feedback would be appreciated.
05/04/2006 09:21 Beelsebub#6
Mine is not just between two colours it is about six to eight colours on hp, mana, stanima and xp.( and the numbers change very fast, to fast to see) i think it may have something to do with graphics cards. I run a Radeon 256mb and windows is on 16 bit colour mode. What card do you have for the one that does not flux between colours???
05/04/2006 10:58 conquer4lief#7
its an Nvidia something or other, i'll have to check tmw (its my school computer.). The one that does fluxuate is a basic onboard video from a via chipset. Hope that helps.

scratch that, its a ATI radeon x300 series. running win xp pro. 3.2Ghz processor, 265 mb ram
05/05/2006 14:12 Unknownwho18#8
good job!! +krama

-now us tao botters dont look lik botters always sitting down when we cast Fire (if you want to cast while not sitting down, put sitting off)
05/09/2006 23:15 Russell512M#9
Not bad for a first attempt :) im going to be working on something like that myself soon.
05/30/2006 03:31 omfgomfg123#10
can someone plz upload it on another site or something cuz rapid share suxxxxorz for me :([img]text2schild.php?smilienummer=1&text=kill rapid share?' border='0' alt='kill rapid share?' />
05/30/2006 09:43 N3W8Y#11
PixelSearch, Px, Py, 33, 691, 36, 742, 0X303030, 20

The 20 at the end of this command specifies within 20 shades of that pixel color. You could set it at however many it changes by.

Not sure what the corresponding command is in your code. Maybe this will help :)
06/03/2006 01:42 G@M3ShArK#12
thats good man imma test it after maint ty
06/03/2006 05:24 .:Suck2:.#13
please upload to uploadtemple.com. Thank you.
06/04/2006 06:20 conquer4lief#14
Quote:
Originally posted by N3W8Y@May 30 2006, 09:43
PixelSearch, Px, Py, 33, 691, 36, 742, 0X303030, 20

The 20 at the end of this command specifies within 20 shades of that pixel color. You could set it at however many it changes by.

Not sure what the corresponding command is in your code. Maybe this will help :)
Interesting... this was written in VB, so I'm not sure how exactly that would translate, but any help would be appreciated. Also, I'm not sure that the numbers were even that close (20 shades).



[Only registered and activated users can see links. Click Here To Register...]

try this upload... there's 2 files, try em both and see if either of them work. Feel free to scan or whatever.
06/09/2006 19:55 maryah#15
well done