Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 02:59

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

Advertisement



[AutoIt] AutoScatter for lazy archers.

Discussion on [AutoIt] AutoScatter for lazy archers. within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
[AutoIt] AutoScatter for lazy archers.

Hi All,

I was getting lazy in Labby... Labby is just so boring its not funny.

So i wrote something simple, an AutoIt script that will scatter in the direction of greater mob density.

Heres the main loop.

PHP Code:
While 1
    
If NumMobs($hProcess) > 5 Then
        Dim $px
$py
        Dim $mx
$my
        $dx 
0
        $dy 
0
        GetMobXY
($hProcess$HeroBase$px$py)
        
$num NumMobs($hProcess)
        For 
$i 0 to $num-1
            GetMobXY
($hProcessGetMob($hProcess$i), $mx$my)
            
$dx2 $mx $px
            $dy2 
$my $py
            $mag 
$dx2 $dx2 $dy2 $dy2 1.0
            $dx2 
$dx2 $mag
            $dy2 
$dy2 $mag
            $dx 
$dx $dx2
            $dy 
$dy $dy2
        Next
        $mag 
Sqrt($dx $dx $dy $dy)
        If 
$mag <> 0 Then
            $tmp 
5.0 $mag
            $dx 
$dx $tmp
            $dy 
$dy $tmp
        
Else
            
$dx 1
            $dy 
0
        
EndIf
        
$x Floor($px $dx)
        
$y Floor($py $dy)
        
SkillXY($hProcess$SCATTER_ID$x$y)
    EndIf
    
Sleep(800)
WEnd 
As ya can see, it takes vectors pointing to the mobs from yourself. Then it scales these vectors inversely proportional to their own length (nearer mobs are more important than distant ones), then it adds all these vectors together, and scales it to unit length 5 for the direction to scatter in.

Hopefully this algorithm will hit most mobs, but not yet perfect. I can see some bad directions sometimes during gameplay.

Enjoy

Note: Only scatters if more than 5 mobs are around, to save on ur arrows.

Steps:
Step 1 - Run Conquer.
Step 2 - Run the AutoIt program (as administrator if using vista or windows 7)

HotKeys:
Alt+X - Closes the bot.
Attached Files
File Type: zip scatter.zip (335.6 KB, 215 views)
clintonselke is offline  
Thanks
1 User
Old 09/03/2009, 13:15   #2
 
elite*gold: 0
Join Date: Jul 2006
Posts: 9
Received Thanks: 0
may I ask how did you get to the mob list ?
daxik is offline  
Old 09/04/2009, 15:26   #3
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Quote:
Originally Posted by daxik View Post
may I ask how did you get to the mob list ?
Memory functions found in olly.

The function for the number mobs was reversed, but i was too lazy for the function for getting a mob by its index so i just called its memory function instead.
clintonselke is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
[Question] Auto clicker/Bots/AutoScatter?
03/25/2010 - Conquer Online 2 - 8 Replies
Hello guys , I'm searching for a clicker or bots for my archer. I have a auto right clicker for my archer to hunt monster. Whenever i alt+tab to switch to other client my archer stop hunting. Can anyone teach me how i can hunt with my archer and play with my trojan account at the same time?
[Request]Auto Rightclicker( autoscatter)
01/09/2010 - Conquer Online 2 - 5 Replies
hi everybody anyone knows where I can get an auto scatter tool:confused:? i used the one in cotools but with the new patch isnt working anymore. tks:)



All times are GMT +1. The time now is 02:59.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.