Shargast_PRC8/_module/Chapter 2/nss/mb_start_title.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

18 lines
574 B
Plaintext

// Create the Listener
void main()
{
object oPC = GetPCSpeaker();
if(GetLocalInt(oPC, "MB_POSTED")==1)
{
FloatingTextStringOnCreature("You have already posted. Please try again later.",oPC,FALSE);
return;
}
AssignCommand(oPC, ClearAllActions());
AssignCommand(oPC, ActionPauseConversation());
object oListener = CreateObject(OBJECT_TYPE_CREATURE, "ad_post_taker", GetLocation(oPC), FALSE);
SetLocalString(oListener, "SPEAK_ACTION", "TITLE");
SetLocalObject(oListener, "Activator", oPC);
SetLocalObject(oPC,"MBOARD",OBJECT_SELF);
}