Staff Picks [C#]

Results 1 to 5 of 5
  1. #1
    C# | C++ Emerica is offline
    MemberRank
    Oct 2010 Join Date
    GermanyLocation
    437Posts

    Staff Picks [C#]

    Found in SWF, nothing to say here..

    Well I was developing on BCStorm's revision, so find the Message with Header 3116.

    Code:
    ServerMessage message = new ServerMessage(3116);
    message.Write(true);
    room.Serialize(message);
    message.Write(false);
    message.Write(room.staffPicked);
    message.Write(false);
    Session.SendMessage(message);
    There is one bool for staff picks (true -> is picked | false -> isn't picked)

    To get teh Incoming Header, just click on that button.
    Its the same event for picking and unpicking the room..

    Code:
    public void Parse(Session Session, ClientMessage cMessage)
    {
          int RoomID = cMessage.Read<int>();
          bool istStaffPickedRoom = cMessage.Read<bool>();
    
          PrivateRoom room = Engine.GetGameEngine().GetRoomManager().GetRoom(RoomID);
    Add something like this (Its my own Emu, not BCStorm or some other Butterfly)
    Easy, isn't it?


  2. #2
    Account Upgraded | Title Enabled! Chapo is offline
    MemberRank
    Jul 2010 Join Date
    United StatesLocation
    944Posts

    Re: Staff Picks [C#]

    Cool release, keep it up ;-)

  3. #3
    Banned bugme is offline
    BannedRank
    Feb 2007 Join Date
    1,380Posts

    Re: Staff Picks [C#]

    About time. I was searching for this so thanks keep it up!

  4. #4
    Banned Divide is offline
    BannedRank
    Aug 2011 Join Date
    British CoderLocation
    1,013Posts

    Re: Staff Picks [C#]

    Good fix for the community :)

  5. #5
    beep Bui is offline
    MemberRank
    Jan 2012 Join Date
    United KingdomLocation
    459Posts

    Re: Staff Picks [C#]

    Good stuff. A few hotels I've seen had broken staff picks; hopefully this will fix it for them. :)



Advertisement