Thread: [508] Tutorial Island

Results 1 to 10 of 10
  1. #1 [508] Making Tutorial Island accesable 
    Registered Member
    Join Date
    Jun 2009
    Posts
    638
    Thanks given
    11
    Thanks received
    8
    Rep Power
    36
    EDIT: go to frames.java and search for:
    Code:
    setMapRegion
    replace it with this:
    Code:
        /**
         * Send the map region and other positioning info to the client.
         * @param p The Player which the frame should be created for.
         */
        public void setMapRegion(Player p) {
            if (p == null || p.stream == null || p.disconnected[0]) {
                return;
            }
            p.getByteVector().createFrameVarSizeWord(142);
            p.getByteVector().writeWordA(p.mapRegionX);
            p.getByteVector().writeWordBigEndianA(p.currentY);
            p.getByteVector().writeWordA(p.currentX);
            boolean forceSend = true;
            if ((((p.mapRegionX / 8) == 48) || ((p.mapRegionX / 8) == 49)) && ((p.mapRegionY / 8) == 48)) {
                forceSend = false;
            }
            if (((p.mapRegionX / 8) == 48) && ((p.mapRegionY / 8) == 148)) {
                forceSend = false;
            }
            for (int xCalc = (p.mapRegionX - 6) / 8; xCalc <= ((p.mapRegionX + 6) / 8); xCalc++) {
                for (int yCalc = (p.mapRegionY - 6) / 8; yCalc <= ((p.mapRegionY + 6) / 8); yCalc++) {
           	             int region = yCalc + (xCalc << 8); //1786653352
                        	int[] mapData = Engine.mapData.getMapData(region);
    		    if (mapData == null) {
                            p.getByteVector().writeDWord(0);
                            p.getByteVector().writeDWord(0);
                            p.getByteVector().writeDWord(0);
                            p.getByteVector().writeDWord(0);
    		    } else {
                            p.getByteVector().writeDWord(mapData[0]);
                            p.getByteVector().writeDWord(mapData[1]);
                            p.getByteVector().writeDWord(mapData[2]);
                            p.getByteVector().writeDWord(mapData[3]);
                        }
                    }
            }
            p.getByteVector().writeByteC(p.heightLevel);
            p.getByteVector().writeWord(p.mapRegionY);
            p.getByteVector().endFrameVarSizeWord();
        }
    there you go, you can now walk the full tutorial island incl. the dungeon!!

    Coords:
    3094, 3107, 0 -- Tut Island
    3110, 9512, 0 -- Tut Dungeon

    Credits: Tony12 for his original thread for 562 revision:
    [Only registered and activated users can see links. ]
    Reply With Quote  
     

  2. #2  
    The internet's reject
    Andy's Avatar
    Join Date
    Jun 2007
    Age
    31
    Posts
    4,376
    Thanks given
    148
    Thanks received
    1,522
    Rep Power
    3133
    Should have already been walkable, works fine with the 668 maps.

    Make it so you can talk and ill be impressed

    Nice job nonetheless
    What am I watching now?

    Reply With Quote  
     

  3. #3  
    Donator

    Join Date
    Oct 2010
    Posts
    681
    Thanks given
    49
    Thanks received
    67
    Rep Power
    63
    Let 508's Rise again
    Reply With Quote  
     

  4. #4  
    Soon to be a Blaziken

    Torchic's Avatar
    Join Date
    Mar 2011
    Age
    26
    Posts
    1,712
    Thanks given
    14
    Thanks received
    452
    Rep Power
    529
    Quote Originally Posted by isakilla View Post
    Let 508's Rise again
    I approve of this bump

    OT: If anyone has a way to make the dungeon walk-able, would you mind sharing? That's all I need

    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jun 2009
    Posts
    638
    Thanks given
    11
    Thanks received
    8
    Rep Power
    36
    Quote Originally Posted by Torchic View Post
    I approve of this bump

    OT: If anyone has a way to make the dungeon walk-able, would you mind sharing? That's all I need
    Found it and added it to the thread
    Reply With Quote  
     

  6. #6  
    Hi.

    'Mystic Flow's Avatar
    Join Date
    Nov 2007
    Posts
    7,141
    Thanks given
    256
    Thanks received
    1,247
    Rep Power
    3636
    What did you change lol

    [Only registered and activated users can see links. ]

    Reply With Quote  
     

  7. #7  
    Номер 1


    Leanbow's Avatar
    Join Date
    Feb 2008
    Posts
    5,910
    Thanks given
    1,558
    Thanks received
    2,617
    Rep Power
    5000
    people still use that base?
    Reply With Quote  
     

  8. #8  
    Donator

    Join Date
    Oct 2010
    Posts
    681
    Thanks given
    49
    Thanks received
    67
    Rep Power
    63
    Quote Originally Posted by Men View Post
    people still use that base?
    i have every 508 server in my computer :3 u never know
    Reply With Quote  
     

  9. #9  
    #Rock Chalk Jayhawks
    Rich.'s Avatar
    Join Date
    May 2012
    Age
    25
    Posts
    288
    Thanks given
    121
    Thanks received
    26
    Rep Power
    20
    Doesn't work for me.
    “Life isn't about finding yourself. Life is about creating yourself.”
    ― George Bernard Shaw
    Reply With Quote  
     

  10. #10  
    Registered Member Tony12's Avatar
    Join Date
    Jan 2010
    Posts
    361
    Thanks given
    12
    Thanks received
    24
    Rep Power
    26
    Thanks for credits hope that it still helps people out
    Working on 637.
    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. 508 - Tutorial Island
    By AndyJay in forum Snippets
    Replies: 10
    Last Post: 07-03-2011, 12:01 AM
  2. [508] Tutorial island
    By The Lizard King in forum Help
    Replies: 4
    Last Post: 04-12-2010, 07:26 AM
  3. 508/525 tutorial island mapdata please
    By Dylan in forum Requests
    Replies: 0
    Last Post: 08-01-2009, 06:28 PM
  4. [508]Tutorial Island Coords + Cache
    By Anthony-| in forum Requests
    Replies: 4
    Last Post: 05-10-2009, 01:24 AM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •