mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-06 08:39:06 +00:00
21 lines
436 B
Java
21 lines
436 B
Java
package redone.game.dialogues;
|
|
|
|
import redone.game.players.Client;
|
|
import redone.net.packets.PacketType;
|
|
|
|
/**
|
|
* Dialogue
|
|
**/
|
|
|
|
public class Dialogue implements PacketType {
|
|
|
|
@Override
|
|
public void processPacket(Client c, int packetType, int packetSize) {
|
|
if (c.nextChat > 0) {
|
|
c.getDialogueHandler().sendDialogues(c.nextChat, c.talkingNpc);
|
|
} else {
|
|
c.getDialogueHandler().sendDialogues(0, -1);
|
|
}
|
|
}
|
|
}
|