예제 #1
0
        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));
        }
예제 #2
0
        public void endCommand()
        {
            SubPacket p = EndEventPacket.buildPacket(actorId, currentCommand, currentCommandName);

            p.debugPrintSubPacket();
            queuePacket(p);

            currentCommand     = 0;
            currentCommandName = "";
        }
예제 #3
0
        public void endEvent()
        {
            SubPacket p = EndEventPacket.buildPacket(actorId, currentEventOwner, currentEventName);

            p.debugPrintSubPacket();
            queuePacket(p);

            currentEventOwner = 0;
            currentEventName  = "";
            eventMenuId       = 0;
        }