[Release?] All world from GMS + Demethos.

Status
Not open for further replies.
Junior Spellweaver
Joined
Jun 23, 2008
Messages
131
Reaction score
0
NOTE: I THINK THIS ONLY WORKS WITH v.59 PRIVATE SERVERS!!!!

Just simply replace your everything in your ServerlistRequestHandler.java with this.
Code:
/*
	This file is part of the OdinMS Maple Story Server
    Copyright (C) 2008 Patrick Huy <[email protected]> 
                       Matthias Butz <[email protected]>
                       Jan Christian Meyer <[email protected]>

    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, "Scania", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Scania", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Scania", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Scania", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(1, "Bera", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Bera", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Bera", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Bera", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(2, "Broa", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Broa", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Broa", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Broa", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(3, "Windia", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Windia", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Windia", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Windia", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(4, "Khania", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Khania", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Khania", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Khania", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(5, "Bellocan", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Bellocan", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Bellocan", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Bellocan", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(6, "Mardia", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Mardia", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Mardia", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Mardia", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(7, "Kradia", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Kradia", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Kradia", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Kradia", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(8, "Yellonde", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Yellonde", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Yellonde", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Yellonde", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
		c.getSession().write(MaplePacketCreator.getServerList(9, "Demethos", LoginServer.getInstance().getLoad()));
		//c.getSession().write(MaplePacketCreator.getServerList(1, "Demethos", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(2, "Demethos", LoginServer.getInstance().getChannels(), 1200));
		//c.getSession().write(MaplePacketCreator.getServerList(3, "Demethos", LoginServer.getInstance().getChannels(), 1200));
		c.getSession().write(MaplePacketCreator.getEndOfServerList());
	}
}

And you CAN create chars on all these worlds.

Pic proof:
Phinocio - [Release?] All world from GMS + Demethos. - RaGEZONE Forums


(This is a char I created on Mardia in my p-server)

Also:
Phinocio - [Release?] All world from GMS + Demethos. - RaGEZONE Forums


NOTE: I THINK THIS ONLY WORKS WITH v.59 PRIVATE SERVERS!!!!
 
/*
This file is part of the OdinMS Maple Story Server
Copyright (C) 2008 Patrick Huy <[email protected]>
Matthias Butz <[email protected]>
Jan Christian Meyer <[email protected]>

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, "Scania", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(1, "Bera", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(2, "Broa", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(3, "Windia", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(4, "Khania", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(5, "Bellocan", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(6, "Mardia", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(7, "Kradia", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(8, "Yellonde", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
c.getSession().write(MaplePacketCreator.getServerList(9, "Demethos", LoginServer.getInstance().getLoad()));
c.getSession().write(MaplePacketCreator.getEndOfServerList());
}
}



without all the excess junk.
 
Erm... Is this the one that leads to one world but you can create as many characters as the world can hold? If so... I don't recommend this because you can make copies of people's name and if they are on at the same time one will dc :X
 
Thats a bad idea seriously. I doubt you have like 10,000 people to equally split up the economy in each world. You will need alot of GM's. Not to mention the lag. But hey its your server do what you like.
 
Thats a bad idea seriously. I doubt you have like 10,000 people to equally split up the economy in each world. You will need alot of GM's. Not to mention the lag. But hey its your server do what you like.

That's exactly right -- it is his server, or their server, so it doesn't need to be trashed. I think this is quite amazing myself, and it does seem it would only work in v.59 of gMS. Even though -- great job.
[:
 
What about that Korean world?

EDIT: I t seems all I'd have to do is change the server number. So this only works with v59? Cause in v55 you couldn't create new chars in new accounts.
 
What about that Korean world?

EDIT: I t seems all I'd have to do is change the server number. So this only works with v59? Cause in v55 you couldn't create new chars in new accounts.

That's only if you change the world ID. If you create a new world, you'll be able to make a new character. Let's say you only have Broa alone. You wouldn't be able to make a new character because Scania and Bera aren't there. It's how the MS client works. Mooblar had a custom client so Dementhos worked without the population error and without needing extra worlds.
 
That's only if you change the world ID. If you create a new world, you'll be able to make a new character. Let's say you only have Broa alone. You wouldn't be able to make a new character because Scania and Bera aren't there. It's how the MS client works. Mooblar had a custom client so Dementhos worked without the population error and without needing extra worlds.
Wow thanks for clearing that up. I don't know why anyone else couldn't tell me that before. =/

It kind sucks though.
 
Status
Not open for further replies.
Back