EN6_PRC8/_module/nss/en5_sa4_enter.nss
Jaysyn904 a6f6db7303 Initial commit
Initial commit.  Updated release archive.
2024-06-13 15:08:33 -04:00

15 lines
323 B
Plaintext

void main()
{
string sTag;
object oChest;
if (GetLocalInt(OBJECT_SELF,"EN5_DoOnce") == 0)
{
sTag="SA4_TREASURE" + IntToString(Random(2)+1);
oChest=GetObjectByTag(sTag);
CreateItemOnObject("SA4_Key",oChest);
SetLocalInt(OBJECT_SELF,"EN5_DoOnce",1);
}
ExecuteScript("en5_unlockdoors",OBJECT_SELF);
}