mirror of
https://github.com/2006-Scape/2006Scape.git
synced 2026-07-07 00:32:06 +00:00
init, thx MrExtremez
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user