Ancordia_PRC8/_module/nss/wdiff_unauth.nss
Jaysyn904 102ba7dab6 Initial Commit
Initial Commit
2023-09-21 19:51:32 -04:00

15 lines
432 B
Plaintext

#include "x4_inc_functions"
void main()
{
object oPC = GetPCSpeaker();
object oModule = GetModule();
string sDB = GetLocalString(oModule, "DB");
string sLogin = GetLocalString(oPC, "LoginSpoken");
if (sLogin == "") return;
DeleteLocalString(oPC, "LoginSpoken");
string sLoginConv = GetStringLowerCase(sLogin);
string sVarName = "ACCOUNT_"+sLoginConv+"_Auth";
SetCampaignInt(sDB, sVarName, 0);
}