is there a way to make a custom message in the server

Any discussion not related to the other forum topics
Post Reply
WiiStream

is there a way to make a custom message in the server

Post by WiiStream » Sat Feb 02, 2013 8:57 am

I was wondering if there was a way to make a custom message to a player like server_message something like this.

this->PChar->pushPacket(new CServerMessagePacket("custom message hello player"));

User avatar
whasf
Site Admin
Posts: 1312
Joined: Thu Jul 19, 2012 9:11 pm

Re: is there a way to make a custom message in the server

Post by whasf » Sat Feb 02, 2013 2:46 pm

Look at packet_system.cpp, SmallPacket0xB5 function. That should get you started.
-- Whasf

bluekirby0
Developer
Posts: 707
Joined: Sun Jul 22, 2012 12:11 am

Re: is there a way to make a custom message in the server

Post by bluekirby0 » Sat Feb 02, 2013 10:03 pm

If you only want it sent to one player, you need to construct a chat packet and push that to the player.

WiiStream

Re: is there a way to make a custom message in the server

Post by WiiStream » Sun Feb 03, 2013 6:58 am

Thank you that solved it.

Post Reply