PHP Code:
//#CLIENTSIDE
function ChatBar.onAction()
{
if (ChatBar.text in { "unstick me", "unstuck me" })
ChatBar.text = "disabled!";
}
In Control-NPC:
PHP Code:
function onRCChat(command)
{
if (command == "test")
echo("It works!");
}
Trigger it by doing the following on RC:
/npctest
/npc test
Either one works.