Scroll seller NPC

Spindle as a NPC Scroll seller
This commit is contained in:
ronancpl
2016-07-18 21:33:29 -03:00
parent d7a2243319
commit 4a99568cbe
5 changed files with 74 additions and 67 deletions

View File

@@ -32,7 +32,7 @@ import tools.data.input.SeekableLittleEndianAccessor;
* @author Matze
*/
public final class NPCMoreTalkHandler extends AbstractMaplePacketHandler {
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
public final void handlePacket(SeekableLittleEndianAccessor slea, MapleClient c) {
byte lastMsg = slea.readByte(); // 00 (last msg type I think)
byte action = slea.readByte(); // 00 = end chat, 01 == follow
if (lastMsg == 2) {

View File

@@ -38,6 +38,7 @@ public final class NPCTalkHandler extends AbstractMaplePacketHandler {
c.announce(MaplePacketCreator.enableActions());
return;
}
int oid = slea.readInt();
MapleMapObject obj = c.getPlayer().getMap().getMapObject(oid);
if (obj instanceof MapleNPC) {