private static void SendError(Player player, string message) { List <SubPacket> sendError = new List <SubPacket>(); sendError.Add(EndEventPacket.buildPacket(player.actorId, player.currentEventOwner, player.currentEventName)); player.sendMessage(SendMessagePacket.MESSAGE_TYPE_SYSTEM_ERROR, "", message); player.playerSession.queuePacket(BasePacket.createPacket(sendError, true, false)); }
public void endCommand() { SubPacket p = EndEventPacket.buildPacket(actorId, currentCommand, currentCommandName); p.debugPrintSubPacket(); queuePacket(p); currentCommand = 0; currentCommandName = ""; }
public void endEvent() { SubPacket p = EndEventPacket.buildPacket(actorId, currentEventOwner, currentEventName); p.debugPrintSubPacket(); queuePacket(p); currentEventOwner = 0; currentEventName = ""; eventMenuId = 0; }