Aschbourne_PRC8/_module/mk_onplayerchat.nss
GetOffMyYarn 8622e5ce08 Area Changes and other fixes
added areas and ccoh,
fixed some areas to work with crafting
fixed some on death issues
added server entry/ooc
2024-08-30 10:38:04 -04:00

26 lines
746 B
Plaintext

#include "mk_inc_editor"
void main()
{
object oPC = GetPCChatSpeaker();
string sChatMessage = GetPCChatMessage();
int bEditorRunning = GetLocalInt(oPC, g_varEditorRunning);
if (bEditorRunning) // the editor is running
{
int bUseOnPlayerChatEvent =
GetLocalInt(oPC, g_varEditorUseOnPlayerChatEvent);
if (bUseOnPlayerChatEvent)
{
SetLocalString(oPC, g_varEditorChatMessageString, sChatMessage);
// the following line is not required but will make everything
// look much better.
SetPCChatMessage(""); // delete the message so it does not
// appear above the player's head
}
return;
}
}