- Joined
- Jun 18, 2010
- Messages
- 129
- Reaction score
- 7
I went to some of the server, some of them does not have the scrolling effect for skillbook so i decided to release for fun.
I'm not sure if this release it before.
Flame if you want.
I don't care.
I'm not sure if this release it before.
Flame if you want.
I don't care.
Code:
player.getMap().broadcastMessage(MaplePacketCreator.skillBookSuccess(c.getPlayer().getId(), skill, maxlevel, canuse, success));
Code:
// Scrolling with Effect.
public static MaplePacket skillBookSuccess(int id, int skill, int maxlevel, boolean canuse, boolean success) {
MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
mplew.writeShort(SendPacketOpcode.USE_SKILL_BOOK.getValue());
mplew.writeInt(id); // character id
mplew.write(1);
mplew.writeInt(skill);
mplew.writeInt(maxlevel);
mplew.write(canuse ? 1 : 0);
mplew.write(success ? 1 : 0);
return mplew.getPacket();
}
Last edited:

