Event Message Box For Odinms ( tested and working )
go to src/net/sf/odinms/server/contants
open notepad.exe and type this
PHP Code:
package net.sf.odinms.server.constants;
public class ServerConstants {
public static final byte FLAG = 0;
public static final String EVENT_MESSAGE = "Msg";
}
Save as File Name ServerConstants.java at src/net/sf/odinms/server/contants
Go to MaplePacketsCreator.java
add import net.sf.odinms.server.constants.ServerConstants;
find getserverlist
replace it with
PHP Code:
public static MaplePacket getServerList(int serverId, String serverName, Map<Integer, Integer> channelLoad) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.SERVERLIST.getValue());
mplew.write(serverId);
mplew.writeMapleAsciiString(serverName);
mplew.write(ServerConstants.FLAG);
mplew.writeMapleAsciiString(ServerConstants.EVENT_MESSAGE);
mplew.write(0x64);
mplew.write(0x0);
mplew.write(0x64);
mplew.write(0x0);
mplew.write(0x0);
int lastChannel = 1;
Set<Integer> channels = channelLoad.keySet();
for (int i = 30; i > 0; i--)
if (channels.contains(i)) {
lastChannel = i;
break;
}
mplew.write(lastChannel);
int load;
for (int i = 1; i <= lastChannel; i++) {
if (channels.contains(i))
load = channelLoad.get(i);
else
load = 1200;
mplew.writeMapleAsciiString(serverName + "-" + i);
mplew.writeInt(load);
mplew.write(1);
mplew.writeShort(i - 1);
}
mplew.writeShort(0);
return mplew.getPacket();
}
Re: Event Message Box For Odinms
Re: Event Message Box For Odinms
Quote:
Originally Posted by
Alcohol
Nice release :)
hey btw thanks for reminding me about the ranking picture of my cms i will fixed it soon
Re: Event Message Box For Odinms ( tested and working )
... Useless. RageZone has too many idiots...
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
magelight
... Useless. RageZone has too many idiots...
You're one of them.
Anyway, good release. :)
Re: Event Message Box For Odinms ( tested and working )
most source has this except odinteh?
Re: Event Message Box For Odinms ( tested and working )
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
magelight
... Useless. RageZone has too many idiots...
I'm just wondering, why only idiots are releasing? :(:
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
zyouyou
most source has this except odinteh?
odinteh doesnt have this
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
HaruTheHero
odinteh doesnt have this
That's why he said except -_-;;
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
HaruTheHero
odinteh doesnt have this
Looooool......
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
Masoud
You're one of them.
Anyway, good release. :)
Your name seems familiar, Daedalus?
PS: Look at Moogra's post.
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
Hieroglyphics
That's why he said except -_-;;
aww men i didnt read properly ..
Re: Event Message Box For Odinms ( tested and working )
Quote:
Originally Posted by
magelight
Your name seems familiar, Daedalus?
PS: Look at Moogra's post.
lol.............
Re: Event Message Box For Odinms ( tested and working )
Another one for my collection.