PoA_PRC8/_module/nss/set_bann_dm_chat.nss

19 lines
404 B
Plaintext
Raw Normal View History

2022-10-07 14:20:31 -04:00
void main()
{
object oUser = GetPCSpeaker();
object oItem = GetItemPossessedBy(oUser, "dm_chat_control");
if(oItem == OBJECT_INVALID)
{
FloatingTextStringOnCreature("You may only have one of the DM Chat Control Items, destroy the other copies first!", oUser, FALSE);
}
//Set the item to control the DM Channel for the targeted player.
else
{
SetLocalInt(oItem, "DM_CHAT_OPTION", 0);
}
}