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

28 lines
861 B
Plaintext

//::///////////////////////////////////////////////
//:: Name: pgs_check_terr
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Check to ensure the territory name entered
is a valid one.
*/
//:://////////////////////////////////////////////
//:: Created By: Samius Maximus
//:: Created On:
//:://////////////////////////////////////////////
void main()
{
object oPlayer = GetPCSpeaker();
//--------------------------------------------
//Check for valid territory name.
//--------------------------------------------
if (GetLocalString (oPlayer, "Temp_Territory_Name") == "")
{
SendMessageToPC (oPlayer, "New territory name entered is invalid.");
SetLocalInt (oPlayer, "Guild_Data_Error", TRUE);
}
else
SetLocalInt (oPlayer, "Guild_Data_Error", FALSE);
}