Register for your free account! | Forgot your password?

You last visited: Today at 23:01

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

Advertisement



Help with target code

Discussion on Help with target code within the General Gaming Discussion forum part of the General Gaming category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Nov 2008
Posts: 55
Received Thanks: 7
Help with target code

Been working on my own bot now, what I've managed to do so far works great, but I can't work out how to make sure the target is in your line of sight. I tried to use pixelsearch to find the blue circle around the mobs, but it just won't pick it up at all.

Any suggestions?
WeeMan411 is offline  
Old 11/25/2008, 18:04   #2
 
Jatacid's Avatar
 
elite*gold: 0
Join Date: Nov 2008
Posts: 336
Received Thanks: 315
What i did was made a conditional searching function which means if the target circle is in left of screen, press and hold "a" until the target circle is in the centre of the screen. or if the target circle is in the right of the screen, press and hold "d" until the target circe is in the centre of the screen..

i.e
Code:
If pixelsearch(Left half of screen area coordinates, target circle color) = True Then
Send("{a down}")

While 1
If Pixelsearch(Centre "in front of character" area coordinates, Target circle color) = True Then
Send("{a up}")
Endif
Wend
Endif
Hope this helps

Also, the blue target circle can vary in color quite alot, so in the "shade variation" option in the Pixelsearch(x1,y1,x2,y2, blue color, shade variation)
i made mine 50.

The blue color i use is 0x0304F1 with a shade variation of 50 and i havent had a problem yet
Jatacid is offline  
Thanks
1 User
Old 11/25/2008, 20:33   #3
 
elite*gold: 0
Join Date: Nov 2008
Posts: 55
Received Thanks: 7
Huge help there, targeting fully working now!!

Just got a few more bits left to do and got it fully working. Thanks again.

Making the bot for my 63 zerker, so anyone with a zerker of similar level who wants a bot to farm easy mobs for potions, give me your email and I can send you the .exe or source.
WeeMan411 is offline  
Reply


Similar Threads Similar Threads
B> DriftCity CBS Code | S> War Rock Code / Bounty Bay Code etc.
10/05/2010 - Trading - 1 Replies
Hi, wie schon im Titel beschrieben. In der CBS vom November gab es Bonusodes für mehrere Spiele. Ich benötige DriftCity Codes. Kann sonst für alle anderen Spiele die Codes biten, einige auch doppelt. Hier eine Liste der Spiele und Bonusaktionen: - (2x) War Rock - (2x) War of Titans - (2x) World of Warcraft - (1x) Warhammer Online - (1x) Bounty Bay online
[Help] Invalid Target/Cannot find Target(ZSZC)
05/29/2010 - SRO Private Server - 4 Replies
Some write they have Problems with ZSZC SRO-DB, by mobs for example "Ishade/Penon/Ujigi(lvl50-56)", in the Textbox right side down a message: "Invalid Target" or " Cannot Find Target", All have this Problem, a good message, i have the solution! You need Use SRO-DB Bot V0.8 and NOT V0.9a! +++Use this and you will have Fun by Botting+++
WPE Pro target wow
06/16/2008 - World of Warcraft - 1 Replies
kleine frage, wieso kann ich wow nichtmehr "ins target nehmen" mit WPE pro 09? is nie in der liste :(
Target
04/01/2006 - Final Fantasy XI - 3 Replies
Ok i know that MrArgus warps you to target and "Usually" targets mob for you. My question is there a program that while running you can just spam a macro /target "NPC"?



All times are GMT +2. The time now is 23:01.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.