World Chat?
Re: World Chat?
I give up on this. I spent all night trying to turn shout into a global channel with 0 success.
Can someone please explain this in more detail.... Something that is TESTED to work. Any help would be appreciated.
Thank you in advance!
Can someone please explain this in more detail.... Something that is TESTED to work. Any help would be appreciated.
Thank you in advance!
Re: World Chat?
Use Yell.
Code: Select all
case MESSAGE_YELL:
{
if (map_config.audit_chat == 1 && map_config.audit_yell == 1)
{
std::string qStr = ("INSERT into audit_chat (speaker,type,message,datetime) VALUES('");
qStr +=PChar->GetName();
qStr +="','YELL','";
qStr += escape(data+6);
qStr +="',current_timestamp());";
const char * cC = qStr.c_str();
Sql_QueryStr(SqlHandle, cC);
}
for (uint16 zone = 0; zone < 285; ++zone)
{
zoneutils::GetZone(zone)->PushPacket(
PChar,
CHAR_INZONE,
new CChatMessagePacket(PChar, MESSAGE_SHOUT, data + 6));
}
//PChar->pushPacket(new CMessageStandardPacket(PChar, 0, 256));
}
break;
Re: World Chat?
you should use MAX_ZONEID instead of 285
Re: World Chat?
Sounds good to me kj, I made mine based on the original reply.
Re: World Chat?
is there any other file that needs to be altered? This doesn't work. No matter what I try I cannot get this to work. :*(
Re: World Chat?
Did you recompile after you put it in? There is only one file that needs to be modified and I can confirm that it works.
Nasomi FFXI Community Server - Classic CoP era fun!
http://www.facebook.com/nasomi
http://www.twitter.com/nasomi
http://www.facebook.com/nasomi
http://www.twitter.com/nasomi
Re: World Chat?
I save the file and restart my servers. Nothing changes. Recompiling right now. Doh!
Re: World Chat?
Thank you! I can't believe the silly mistakes we overlook sometimes! I managed to take over the /yell channel for global shout.... Here's my next question... How would we go about making the zone your'e shouting from visible on the other end....
on your end it loooks like this.
YourName[S'andoria]: message.....
they see,
Yourname: message.
id it possible to keep that zone tag on the recieving end of that /yell?
on your end it loooks like this.
YourName[S'andoria]: message.....
they see,
Yourname: message.
id it possible to keep that zone tag on the recieving end of that /yell?
Re: World Chat?
If you treat it as "YELL" instead of SHOUT like on my server Boom, it will appear as a shout. afaik, you could probably add the zone name into the sending packet, just never bothered to try.
Re: World Chat?
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.