World Chat?

Any discussion not related to the other forum topics
User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: World Chat?

Post by kjLotus » Mon May 05, 2014 7:11 pm

Signature wrote:Yeah I need to figure out the code that displays the zone on the other end... I have it setup exactly like you /yell goes into shout thanks to you btw. :)

Code: Select all

new CChatMessagePacket(PChar, MESSAGE_SHOUT, data + 6));
to

Code: Select all

new CChatMessagePacket(PChar, MESSAGE_YELL, data + 6));

User avatar
Signature
Posts: 126
Joined: Fri May 02, 2014 3:44 am

Re: World Chat?

Post by Signature » Mon May 05, 2014 9:45 pm

Thanks Kj I will try this when no one is online. :)

User avatar
Signature
Posts: 126
Joined: Fri May 02, 2014 3:44 am

Re: World Chat?

Post by Signature » Tue May 06, 2014 6:05 am

Code: Select all

new CChatMessagePacket(PChar, MESSAGE_YELL, data + 6));
Worked like a charm You now see the zone your shout came from! Fantastic

User avatar
evenmonkeys
Posts: 78
Joined: Thu Feb 13, 2014 1:53 am
Location: Midwest, US

Re: World Chat?

Post by evenmonkeys » Sun Oct 05, 2014 10:51 pm

I apologize for resurrecting an old thread, but I'm trying to get this working on my server as well. I have the data replaced in my packet_system.cpp file as posted by tagban.. However, someone said to rebuild the server and that's where I'm not exactly sure what is meant. Shutting down the server isn't enough and I'm unsure what needs to be rebuilt. Can someone tell me what to do? :)

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: World Chat?

Post by kjLotus » Sun Oct 05, 2014 10:59 pm

open it again in visual studio, hit f7

User avatar
evenmonkeys
Posts: 78
Joined: Thu Feb 13, 2014 1:53 am
Location: Midwest, US

Re: World Chat?

Post by evenmonkeys » Sun Oct 05, 2014 11:16 pm

Thanks for the quick response. I'm not seeing a function for F7 in Visual Studio 2013 for Desktop within packet_system.cpp. When you're saying to open it, are you referring to the packet_system.cpp file or the entire solution? (I don't want to rebuild the solution if I'm not supposed to.)

Delaide
Posts: 478
Joined: Sat Jun 14, 2014 8:58 am

Re: World Chat?

Post by Delaide » Sun Oct 05, 2014 11:34 pm

You need to rebuild the map server. You modify the single file, then rebuild the entire server. You can't rebuild one .cpp at a time.

User avatar
kjLotus
Special Guest
Posts: 1813
Joined: Sun Jul 22, 2012 2:16 pm

Re: World Chat?

Post by kjLotus » Mon Oct 06, 2014 12:04 am

evenmonkeys wrote:Thanks for the quick response. I'm not seeing a function for F7 in Visual Studio 2013 for Desktop within packet_system.cpp. When you're saying to open it, are you referring to the packet_system.cpp file or the entire solution? (I don't want to rebuild the solution if I'm not supposed to.)
open the solution and hit f7, sorry

User avatar
evenmonkeys
Posts: 78
Joined: Thu Feb 13, 2014 1:53 am
Location: Midwest, US

Re: World Chat?

Post by evenmonkeys » Mon Oct 06, 2014 12:31 am

Thank you, guys! I was able to get it working after rebuilding the solution! Even set up a print out for our website to show the world chat.

I'm slowly learning how all of this stuff works. Everyone here has been very friendly and a huge help.

Post Reply