LoT_PRC8/_module/nss/pgs_check_reply.nss
Jaysyn904 ec287507a1 Initial upload
Initial upload.
2023-09-25 21:32:17 -04:00

28 lines
954 B
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_check_reply
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Check guild message reply information to make
sure everything was entered.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
void main()
{
object oPlayer = GetPCSpeaker();
SetLocalInt (oPlayer, "Guild_Data_Error", FALSE); /*No errors yet.*/
//--------------------------------------------
//Validate player entered information.
//--------------------------------------------
if ((GetLocalString (oPlayer, "Temp_Reply_Title") == "") || (GetLocalString (oPlayer, "Temp_Reply_Post") == ""))
{
SetLocalInt (oPlayer, "Guild_Data_Error", TRUE);
SendMessageToPC (oPlayer, "Invalid reply message and/or title was entered.");
}
}