[Tut] Changing the world's pictures

Page 1 of 2 12 LastLast
Results 1 to 15 of 18
  1. #1
    Account Upgraded | Title Enabled! timmy123 is offline
    MemberRank
    Apr 2008 Join Date
    325Posts

    [Tut] Changing the world's pictures

    First, go to: odinms>src>net>sf>odinms>net>login>handler>Serverlistrequest.java

    Second, look for this:

    Code:
    c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getLoad()));
      //c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(2, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(3, "Zenith", LoginServer.getInstance().getChannels(), 1200));
        c.getSession().write(MaplePacketCreator.getEndOfServerList());

    Under the first 1, which I bold it, change it to another number that recognized the picture of another world:


    * 0 = Scania
    * 1 = Bera
    * 2 = Broa
    * 3 = Windia
    * 4 = Khania
    * 5 = Bellocan
    * 6 = Mardia
    * 7 = Kradia
    * 8 = Yellonde
    * 9 = Demethos
    * 10 (hex 0A) = Elnido
    * 11 (hex 0B) = Kastia
    * 12 (hex 0C) = Judis
    * 13 (hex 0D) = Arkenia
    * 14 (hex 0E) = Plana
    * 15 (hex 0F) = Galicia
    * 16 (hex 10) = Kalluna
    * 17 (hex 11) = Stius
    * 18 (hex 12) = Croa
    * 19 (hex 13) = Zenith
    * 20 (hex 14) = Medere (Korean)

    Go to MySQL, and under the character>world, change 0 to the number that you change it in Serverlistrequest.java.

    There, you are done =P


    Adding a Second world:

    This is quite simple. Just go to:

    odinms>src>net>sf>odinms>net>login>handler>Serverlistrequest.java and add this line before the "}"s


    Code:
    c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getLoad()));
      //c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(2, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(3, "Zenith", LoginServer.getInstance().getChannels(), 1200));
        c.getSession().write(MaplePacketCreator.getEndOfServerList());


    So, after you have added your second world, your ServerListRequest.java should look like this:


    Code:
    /*
        This file is part of the OdinMS Maple Story Server
        Copyright (C) 2008 Patrick Huy <patrick.huy@frz.cc>
                           Matthias Butz <matze@odinms.de>
                           Jan Christian Meyer <vimes@odinms.de>
    
        This program is free software: you can redistribute it and/or modify
        it under the terms of the GNU Affero General Public License version 3
        as published by the Free Software Foundation. You may not use, modify
        or distribute this program under any other version of the
        GNU Affero General Public License.
    
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
        GNU Affero General Public License for more details.
    
        You should have received a copy of the GNU Affero General Public License
        along with this program.  If not, see <http://www.gnu.org/licenses/>.
    */
    
    package net.sf.odinms.net.login.handler;
    
    import net.sf.odinms.client.MapleClient;
    import net.sf.odinms.net.AbstractMaplePacketHandler;
    import net.sf.odinms.net.login.LoginServer;
    import net.sf.odinms.tools.MaplePacketCreator;
    import net.sf.odinms.tools.data.input.SeekableLittleEndianAccessor;
    
    public class ServerlistRequestHandler extends AbstractMaplePacketHandler {
        @Override
    public void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
      c.getSession().write(MaplePacketCreator.getServerList(0, "Zenith", LoginServer.getInstance().getLoad()));
      //c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(2, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(3, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      c.getSession().write(MaplePacketCreator.getEndOfServerList());
      c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getLoad()));
      //c.getSession().write(MaplePacketCreator.getServerList(1, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(2, "Zenith", LoginServer.getInstance().getChannels(), 1200));
      //c.getSession().write(MaplePacketCreator.getServerList(3, "Zenith", LoginServer.getInstance().getChannels(), 1200));
        c.getSession().write(MaplePacketCreator.getEndOfServerList());
    }
    }

    And then, all you got to do is to compile it.

    p/s: I am currently discovering if it is possible to have 2 different world with 2 different channels using MySQL and channel.properties

    Credits:
    juju978 for his file for adding another world =P

    Some Question pondering you:

    Q: How did my second world got its channels from?
    A: The second world, if correctly from the script, get from your first world. So, it means that both world are sharing the same channel ports. Which means, you are actually playing the second world with the first world channel, and simplyfly it, it means, all character are in same world...

    Q: How do I know which world did my characters was in?
    A: Go to MySQL, and under character, world, you can see the number. Each number represents a world.

    Credits:
    go to FrAnTier from http://www.dev-odinms.com


  2. #2
    } else if ( ) { ericm1 is offline
    MemberRank
    Jun 2008 Join Date
    nycLocation
    271Posts

    Re: [Guide] Changing the world's pictures

    aww man, theres no way i can edit the real picture to my own?

  3. #3
    Account Upgraded | Title Enabled! darkXmatt is offline
    MemberRank
    Jun 2008 Join Date
    Hong KongLocation
    327Posts

    Re: [Guide] Changing the world's pictures

    ^Lol ~ that would be funny O.o

    posted many times : P
    but still a repost is always good : )

    ~dXm

  4. #4
    Account Upgraded | Title Enabled! keroh93 is offline
    MemberRank
    Apr 2008 Join Date
    1,313Posts

    Re: [Guide] Changing the world's pictures

    so if i open up another world. Its like 2 servers?
    But people wont be able to see each other people?

  5. #5
    Account Upgraded | Title Enabled! frantier123 is offline
    MemberRank
    May 2008 Join Date
    659Posts

    Re: [Guide] Changing the world's pictures

    Lolx, I tot I post it oleidi?

    http://forum.ragezone.com/showthread.php?t=424608

    p/s: I am FrAnTiEr in Dev-OdinMS!!

  6. #6
    Account Upgraded | Title Enabled! xiaojintai is offline
    MemberRank
    May 2008 Join Date
    behind U!!!Location
    512Posts

    Re: [Guide] Changing the world's pictures

    Quote Originally Posted by frantier123 View Post
    Lolx, I tot I post it oleidi?

    http://forum.ragezone.com/showthread.php?t=424608

    p/s: I am FrAnTiEr in Dev-OdinMS!!
    lols yup u posted it aready lols~

  7. #7
    Account Upgraded | Title Enabled! iFLON is offline
    MemberRank
    May 2008 Join Date
    518Posts

    Re: [Guide] Changing the world's pictures

    So far my server has Croa and Zenith.. im still figuring out how to make two world different

  8. #8
    Account Upgraded | Title Enabled! frantier123 is offline
    MemberRank
    May 2008 Join Date
    659Posts

    Re: [Guide] Changing the world's pictures

    Quote Originally Posted by iFLON View Post
    So far my server has Croa and Zenith.. im still figuring out how to make two world different
    I have figure out, but not sure if work...

  9. #9
    Apprentice xmenlawn is offline
    MemberRank
    Jul 2008 Join Date
    5Posts

    Re: [Guide] Changing the world's pictures

    Well it all work well but i've found a bug in this method.
    e.g when you want to make a new char in this new world you sometime get the error below:


  10. #10
    Account Upgraded | Title Enabled! TotalMs is offline
    MemberRank
    Apr 2008 Join Date
    Coderaid.comLocation
    213Posts

    Re: [Guide] Changing the world's pictures

    Quote Originally Posted by xmenlawn View Post
    Well it all work well but i've found a bug in this method.
    e.g when you want to make a new char in this new world you sometime get the error below:

    Bump

  11. #11
    Valued Member TeamCanada is offline
    MemberRank
    Jul 2008 Join Date
    Toronto, CanadaLocation
    132Posts

    Re: [Guide] Changing the world's pictures

    Great guide, thank you.
    Screenshots be helpful though.

  12. #12
    Account Upgraded | Title Enabled! DaichiKokujo is offline
    MemberRank
    Jul 2008 Join Date
    I live nowhereLocation
    504Posts

    Re: [Guide] Changing the world's pictures

    Wow TotalMS, you just bumped up an old thread, I wonder what will happen to you =]
    Timmy, nice copying and pasting skills, after someone posted this 1 day before o.o How smart

  13. #13
    Account Upgraded | Title Enabled! Emulation is offline
    MemberRank
    Jul 2008 Join Date
    205Posts

    Re: [Guide] Changing the world's pictures

    Quote Originally Posted by TotalMs View Post
    Bump
    Go screw yourself.

  14. #14
    Account Upgraded | Title Enabled! TotalMs is offline
    MemberRank
    Apr 2008 Join Date
    Coderaid.comLocation
    213Posts

    Re: [Guide] Changing the world's pictures

    Quote Originally Posted by DaichiKokujo View Post
    Wow TotalMS, you just bumped up an old thread, I wonder what will happen to you =]
    Timmy, nice copying and pasting skills, after someone posted this 1 day before o.o How smart
    Why does it matter how old it is? It's not outdated...

  15. #15
    Account Upgraded | Title Enabled! xxandycxx is offline
    MemberRank
    Jun 2008 Join Date
    In your pantsLocation
    851Posts

    Re: [Guide] Changing the world's pictures

    Quote Originally Posted by totalms View Post
    why does it matter how old it is? It's not outdated...
    *cough*

    Quote Originally Posted by dandune View Post
    5. Do not revive/bump old topics.



Page 1 of 2 12 LastLast

Advertisement