Code to TravelTo any mine submap

05/04/2011 15:12 mircato#1
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;

            }

        } 
05/07/2011 22:39 brokenarrow_vip#2
awesome
blah blah blah
I'm feeling dumb cuz i don't understand coding
don't quota this
05/07/2011 22:43 aeldepaky#3
yes yes yes finally man thanks very much
05/11/2011 23:25 spider600#4
i can't use these :D
07/17/2011 01:22 a7a010#5
lol
07/19/2011 23:15 TheFizzy#6
WHAT THE FUCK
08/02/2011 11:27 nevermind4o4#7
what is that TravelTo? how can i get it?
08/02/2011 19:35 jakos111#8
WAAAAAAAAAAAAAAAAA? can some one tell me how to use this? :)
08/02/2011 21:35 Coatl 2.0#9
if you dont understand how to use this, there is something that can educate you. google.
08/03/2011 21:51 nevermind4o4#10
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
08/03/2011 22:32 Coatl 2.0#11
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.
08/04/2011 14:01 spawnish#12
doesnt work
08/24/2011 09:15 alfanan100#13
really i dont think that the man whose Invented this know how to use it ..... hehehehe
10/28/2011 14:55 philiplim#14
i can see that this is in java - just dont know how to use in CO :) can you give me an outline?
10/28/2011 20:22 InfamousNoone#15
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