Finished NPC conversations, fixed disconnect bug, fixed AI atk speed check

This commit is contained in:
Light2
2014-04-02 18:12:08 +02:00
parent 9057ee082e
commit b245efdce6
21 changed files with 322 additions and 73 deletions
@@ -25,6 +25,7 @@ import java.nio.ByteOrder;
import org.apache.mina.core.buffer.IoBuffer;
import protocol.swg.ObjControllerMessage;
import resources.common.ObjControllerOpcodes;
public class StopNpcConversation extends ObjControllerObject {
@@ -51,7 +52,7 @@ public class StopNpcConversation extends ObjControllerObject {
public IoBuffer serialize() {
IoBuffer buffer = IoBuffer.allocate(40 + stfFile.length() + stfLabel.length()).order(ByteOrder.LITTLE_ENDIAN);
buffer.putInt(ObjControllerOpcodes.STOP_NPC_CONVERSATION);
buffer.putInt(ObjControllerMessage.STOP_CONVERSATION);
buffer.putLong(objectId);
buffer.putInt(0);