Amon_PRC8/_module/nss/lycanpayload2.nss
Jaysyn904 c5cffc37af Initial Commit
Initial Commit [v1.01]
2025-04-03 19:00:46 -04:00

22 lines
544 B
Plaintext

void main()
{
string sItem = "LycanFire";
object oPC = GetLastAttacker();
object oDoor = GetObjectByTag("LycanForceDoor");
object oArea = GetArea(oPC);
object oObject = GetFirstObjectInArea(oArea);
int ObjectCount = GetLocalInt(GetModule(),"ObjectCount1");
ObjectCount = ObjectCount + 1;
if(ObjectCount >= 8)
{
SetLocked(oDoor,FALSE);
ActionOpenDoor(oDoor);
AssignCommand(oPC, PlaySound("as_hr_xwdrnoise5"));
ObjectCount = 0;
}
SetLocalInt(GetModule(), "ObjectCount1", ObjectCount);
}