Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Bots & Macros
You last visited: Today at 18:50

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

Advertisement



Code to TravelTo any mine submap

Discussion on Code to TravelTo any mine submap within the CO2 Bots & Macros forum part of the Conquer Online 2 category.

Reply
 
Old   #1
 
mircato's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 15
Received Thanks: 9
Cool Code to TravelTo any mine submap

I HIGHLY urge the demand of being able to travel to any mine map using 1 line of TravelTo code!

As far as I know from testing, attempting to map travel (portal hop) from any of the mine sub maps will result in a DC. Effectively you need to travel from sub map to submap until you are at map 1025, 1026, or 1027 of which from there you can TravelTo to any non-mine sub map with ease.

I apologize if its not absolutely picture perfect code, but it is here if you so choose to tweak and incorporate it.

FYI: I made my own findpath function that essentially would execute travelto. Before it executed travel to if the current map or destination map matched the id of one of the mine sub maps, this function was called so any additional arguments other than a MapID, X, and Y are for things of my own I was trying to do.

Basically since PC Mine sub maps are 2000-2013, AC is 2020-2043, & DC is 2040-2053 (not referring to 1025, 1026, or 1027) the purpose of MapIDval, mapadditive, and mapval is essentially that if you subtract 2000, 2020, or 2040 respectively you can perform the same math operations irregardless of if the maps are PC, AC, or DC to determine where to go.

map() is a function of my own creation, it is also posted below for your reference.
PHP Code:
public static void minesubmaps(int MapIDint Xint Y)
        {

            
int MapIDval MapID 2000;
            
int mapadditive 0;

            if (
map() != 1025 && MapID == 1025 || map() != 1025 && MapID >= 2000 && MapID <= 2013findpath(10253270true);
            else if (
map() != 1026 && MapID == 1026 || map() != 1026 && MapID >= 2020 && MapID <= 2033findpath(1026138103true);
            else if (
map() != 1027 && MapID == 1027 || map() != 1027 && MapID >= 2040 && MapID <= 2053findpath(1027141105true);

            if (
map() == 1025 || map() >= 2000 && map() <= 2013mapadditive 2000;
            else if (
map() == 1026 || map() >= 2020 && map() <= 2033mapadditive 2020;
            else if (
map() == 1027 || map() >= 2040 && map() <= 2053mapadditive 2040;

            
int mapval map() - mapadditive;

            if (
map() != MapID)
            {

                if (
map() == 1025 && MapID >= 2000 && MapID <= 2013)
                {

                    if (
MapIDval == || MapIDval >= && MapIDval <= || MapIDval >= && MapIDval <= 9findpath(map(), 114162truetrue);
                    else if (
MapIDval == || MapIDval >= && MapIDval <= || MapIDval >= 10 && MapIDval <= 13findpath(map(), 168111truetrue);

                }

                else if (
map() == 1026 && MapID >= 2020 && MapID <= 2033 || map() == 1027 && MapID >= 2040 && MapID <= 2053)
                {

                    if (
MapIDval == || MapIDval >= && MapIDval <= || MapIDval >= && MapIDval <= 9findpath(map(), 163192truetrue);
                    else if (
MapIDval == || MapIDval >= && MapIDval <= || MapIDval >= 10 && MapIDval <= 13findpath(map(), 168111truetrue);

                }

                else if (
mapval >= && mapval <= 13)
                {

                    if (
mapval == 0findpath(map(), 7213truetrue);
                    else 
findpath(map(), 1377truetrue);

                }

                else if (
mapval == || mapval == 1)
                {

                    if (
Math.Abs(mapval MapIDval) <= 13)
                    {

                        if (
MapIDval == 0findpath(map(), 114162truetrue);
                        else 
findpath(map(), 168111truetrue);

                    }

                    else
                    {

                        if (
mapval == 0findpath(map(), 7213truetrue);
                        else 
findpath(map(), 1377truetrue);

                    }

                }

                else if (
mapval >= && mapval <= 5)
                {

                    if (
Math.Abs(mapval MapIDval) <= 13 && MapIDval >= && MapIDval <= 13)
                    {

                        if (
MapIDval == 0findpath(map(), 114162truetrue);
                        else 
findpath(map(), 168111truetrue);

                    }

                    else
                    {

                        if (
mapval == 0findpath(map(), 7213truetrue);
                        else 
findpath(map(), 1377truetrue);

                    }

                }
            }
        } 
map() function:
PHP Code:
        public static int map()
        {
            if (
Client.MapID == Client.DynamicMapID)
            {

                return 
Client.MapID;

            }

            else
            {

                return 
Client.DynamicMapID;

            }

        } 
mircato is offline  
Thanks
4 Users
Old 05/07/2011, 22:39   #2
 
brokenarrow_vip's Avatar
 
elite*gold: 17
Join Date: Dec 2007
Posts: 1,380
Received Thanks: 1,791
awesome
blah blah blah
I'm feeling dumb cuz i don't understand coding
don't quota this
brokenarrow_vip is offline  
Thanks
2 Users
Old 05/07/2011, 22:43   #3
 
aeldepaky's Avatar
 
elite*gold: 0
Join Date: Sep 2010
Posts: 198
Received Thanks: 16
yes yes yes finally man thanks very much
aeldepaky is offline  
Thanks
1 User
Old 05/11/2011, 23:25   #4
 
elite*gold: 0
Join Date: Feb 2011
Posts: 83
Received Thanks: 6
i can't use these
spider600 is offline  
Old 07/17/2011, 01:22   #5
 
elite*gold: 0
Join Date: Jul 2011
Posts: 1
Received Thanks: 0
lol
a7a010 is offline  
Old 07/19/2011, 23:15   #6
 
elite*gold: 0
Join Date: Jun 2011
Posts: 3
Received Thanks: 0
WHAT THE ****
TheFizzy is offline  
Old 08/02/2011, 11:27   #7
 
nevermind4o4's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 78
Received Thanks: 11
what is that TravelTo? how can i get it?
nevermind4o4 is offline  
Old 08/02/2011, 19:35   #8
 
elite*gold: 0
Join Date: Aug 2010
Posts: 52
Received Thanks: 2
WAAAAAAAAAAAAAAAAA? can some one tell me how to use this?
jakos111 is offline  
Old 08/02/2011, 21:35   #9
 
Coatl 2.0's Avatar
 
elite*gold: 0
Join Date: Jul 2005
Posts: 339
Received Thanks: 31
if you dont understand how to use this, there is something that can educate you. google.
Coatl 2.0 is offline  
Thanks
1 User
Old 08/03/2011, 21:51   #10
 
nevermind4o4's Avatar
 
elite*gold: 0
Join Date: Aug 2006
Posts: 78
Received Thanks: 11
Quote:
Originally Posted by Coatl 2.0 View Post
if you dont understand how to use this, there is something that can educate you. google.
i googled yet and found... nothing, if u know how to use it and what's travelTo, so tell me - dont link me to google couse rl i know how to googling..
im waiting for reply
nevermind4o4 is offline  
Old 08/03/2011, 22:32   #11
 
Coatl 2.0's Avatar
 
elite*gold: 0
Join Date: Jul 2005
Posts: 339
Received Thanks: 31
Quote:
Originally Posted by nevermind4o4 View Post
i googled yet and found... nothing, if u know how to use it and what's travelTo, so tell me - dont link me to google couse rl i know how to googling..
im waiting for reply
so you dont know how to code, nor what this is written in, nor how to use it? maybe learning the basics of any code would help you get a understanding of wtf is going on here.
Coatl 2.0 is offline  
Old 08/04/2011, 14:01   #12
 
elite*gold: 0
Join Date: Jun 2011
Posts: 241
Received Thanks: 12
doesnt work
spawnish is offline  
Old 08/24/2011, 09:15   #13
 
elite*gold: 0
Join Date: Feb 2011
Posts: 5
Received Thanks: 0
really i dont think that the man whose Invented this know how to use it ..... hehehehe
alfanan100 is offline  
Old 10/28/2011, 14:55   #14
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1
Received Thanks: 0
i can see that this is in java - just dont know how to use in CO can you give me an outline?
philiplim is offline  
Old 10/28/2011, 20:22   #15
 
InfamousNoone's Avatar
 
elite*gold: 20
Join Date: Jan 2008
Posts: 2,012
Received Thanks: 2,885
It's actually not Java. It's code (C#) designed to run on the ConquerAI API (free to develop plugins with any kind of sub). With that said the original author of this code is bad, and the actual functionality of this function is covered by an overload of COFarmerClient.Client
InfamousNoone is offline  
Thanks
2 Users
Reply

Tags
code, travel


Similar Threads Similar Threads
FLASH MINE |Oder| M14 LAND MINE
10/22/2010 - WarRock - 19 Replies
Was ist besser Flash mine oder Land mine? Was macht mehr punkte?! Was machen die punkte? Sind die für exp und Dinar???
Flash Mine M14 Mine
04/03/2010 - WarRock - 8 Replies
1.Kann die Beiden oben genannten Items auch Medic nutzen? 2.Kann man sie auch für andere slots nutzen? 3.Wenn ja was ist besser?



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


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