Battledale_PRC8/_module/nss/bbs_post_notice.nss

15 lines
440 B
Plaintext
Raw Permalink Normal View History

#include "bbs_include"
void main()
{
object oPC = GetPCSpeaker();
object oNotice = GetItemPossessedBy(oPC, "bbs_notice");
if (GetIsObjectValid(oNotice)) {
string nPoster = GetName(oPC);
string nTitle = GetLocalString(oNotice, "Title");
string nMessage = GetLocalString(oNotice, "Message");
ActionTakeItem(oNotice, oPC);
bbs_add_notice(OBJECT_SELF, nPoster, nTitle, nMessage, "");
bbs_change_page(-1000);
}
}