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

            p.debugPrintSubPacket();
            queuePacket(p);

            currentCommand     = 0;
            currentCommandName = "";
        }
Exemplo n.º 3
0
        public void endEvent()
        {
            SubPacket p = EndEventPacket.buildPacket(actorId, currentEventOwner, currentEventName);

            p.debugPrintSubPacket();
            queuePacket(p);

            currentEventOwner = 0;
            currentEventName  = "";
            eventMenuId       = 0;
        }
Exemplo n.º 4
0
        public static void SendError(Player player, string message)
        {
            message = "[LuaError] " + message;
            if (player == null)
            {
                return;
            }
            List <SubPacket> SendError = new List <SubPacket>();

            player.SendMessage(SendMessagePacket.MESSAGE_TYPE_SYSTEM_ERROR, "", message);
            player.QueuePacket(EndEventPacket.BuildPacket(player.actorId, player.currentEventOwner, player.currentEventName));
        }