RATDOG/_module/nss/sc_chk_looted.nss

21 lines
529 B
Plaintext
Raw Permalink Normal View History

int StartingConditional()
{
object oPC = GetPCSpeaker();
object oSelf = OBJECT_SELF;
string sPlacableTag = GetTag(oSelf);
int nPlayerLooted = GetLocalInt(oPC, "PlayerLooted_" + sPlacableTag); // Unique flag for each player
int nBeenLooted1 = GetLocalInt(oSelf, "BeenLooted1_" + sPlacableTag);
// Check if the player has already attempted searching this placable
if (nPlayerLooted == 1 || nBeenLooted1 == 1)
{
return FALSE;
}
else
{
return TRUE;
}
}