Sending a packet when player logs in?

Lena80

Citizen
Jan 23, 2018
38
2
8
44
How to send a packet when player logs in game? ive used search feature and couldnt find how to do this. Thanks
 

PyrO

Paladin
Jan 27, 2015
1,292
147
63
why do you need to send a packet when the player logs in?

But also Look into the Eventsinks
 

Lena80

Citizen
Jan 23, 2018
38
2
8
44
i want to control Orion features


C#:
public sealed class OrionFeatures : Packet
{
    public OrionFeatures() : base(0xBF)
    {
        EnsureCapacity(11);
        m_Stream.Write((ushort)0xFACE);
        m_Stream.Write((ushort)0x0032);
        m_Stream.Write((uint)0xFFFFFFFE);
    }
}
so i need to send that packet when player logs into the world, i dontk now how to do that
 

PyrO

Paladin
Jan 27, 2015
1,292
147
63
I dont know, look into the initialize methods.

Could be as simple as
C#:
EventSink.Login += (le) => le.Mobile.NetState.Send(new OrionFeatures());
 
  • Like
Reactions: sahisahi