17 lines
437 B
Plaintext
17 lines
437 B
Plaintext
|
|
|
|
void main()
|
|
{
|
|
object oPC = GetPCChatSpeaker();
|
|
|
|
string sSpoken = GetPCChatMessage();
|
|
int iVolume = GetPCChatVolume();
|
|
if (iVolume == TALKVOLUME_TALK || iVolume == TALKVOLUME_WHISPER)
|
|
{
|
|
// if message was a talk or whisper then delete previous string and save new one
|
|
// save last chat on PC.
|
|
DeleteLocalString(oPC,"TD_QUILLCHAT");
|
|
SetLocalString(oPC,"TD_QUILLCHAT", sSpoken);
|
|
}
|
|
}
|