Newbie Spellweaver
- Joined
- Oct 3, 2008
- Messages
- 42
- Reaction score
- 0
Anyone Commands,
ex) CharCommands.java
add
goto
MaplePacketCreator.java
to Fix
!sendhint blue
red
green
purple
i used
v.60
v.61
sendhint
this CelestialMs Source
ex) CharCommands.java
add
code:
else if (splitted[0].equals("!sendhint")) {
String hint = StringUtil.joinStringFrom(splitted, 1);
player.getMap().broadcastMessage(player, MaplePacketCreator.sendHint(hint), false);
c.getSession().write(MaplePacketCreator.sendHint(hint));
}
and
new CommandDefinition("sendhint", "", "", 100),
else if (splitted[0].equals("!sendhint")) {
String hint = StringUtil.joinStringFrom(splitted, 1);
player.getMap().broadcastMessage(player, MaplePacketCreator.sendHint(hint), false);
c.getSession().write(MaplePacketCreator.sendHint(hint));
}
and
new CommandDefinition("sendhint", "", "", 100),
goto
MaplePacketCreator.java
Find :
public static MaplePacket sendHint(String hint) {
public static MaplePacket sendHint(String hint) {
to Fix
public static MaplePacket sendHint(String hint) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(16);
mplew.writeShort(SendPacketOpcode.PLAYER_HINT.getValue());
mplew.writeMapleAsciiString(hint);
mplew.write(HexTool.getByteArrayFromHexString("FA 00 05 00 01"));
return mplew.getPacket();
}
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter(16);
mplew.writeShort(SendPacketOpcode.PLAYER_HINT.getValue());
mplew.writeMapleAsciiString(hint);
mplew.write(HexTool.getByteArrayFromHexString("FA 00 05 00 01"));
return mplew.getPacket();
}
!sendhint blue
red
green
purple
i used
v.60
v.61
sendhint
this CelestialMs Source
Attachments
You must be registered for see attachments list
Last edited: