Пример #1
0
    public static PacketWriter Notice(GlobalEvent globalEvent)
    {
        PacketWriter pWriter = PacketWriter.Of(SendOp.GlobalPortal);

        pWriter.Write(GlobalPortalPacketMode.Notice);
        pWriter.WriteInt(globalEvent.Id);
        pWriter.WriteInt(144);                                   // unk. seems to either be 144 or 145
        pWriter.WriteUnicodeString("s_massive_event_message");
        pWriter.WriteUnicodeString("System_Quiz_Global_Portal"); // SystemSound key
        foreach (GlobalEventType eventType in globalEvent.Events)
        {
            pWriter.WriteUnicodeString(eventType == GlobalEventType.none ? "" : GlobalEvent.GetEventStringName(eventType));
        }
        return(pWriter);
    }