LoD_PRC8/_module/nss/tb_chestopen.nss
Jaysyn904 94990edc60 Initial Upload
Initial Upload
2023-09-21 21:20:34 -04:00

12 lines
355 B
Plaintext

void main()
{
object oCloak = GetObjectByTag("MedusasShawl");
if(GetLocalInt(OBJECT_SELF, "CloakTaken") != 1 && GetItemPossessor(oCloak) != OBJECT_SELF)
{
SetLocalInt(OBJECT_SELF, "CloakTaken", 1);
CreateItemOnObject("MedusasShawl", OBJECT_SELF, 6);
DelayCommand(300.0, SetLocalInt(OBJECT_SELF, "CloakTaken", 0));
}
}