Initial commit
Initial commit. Updated release archive.
This commit is contained in:
14
_module/nss/en5_sa4_enter.nss
Normal file
14
_module/nss/en5_sa4_enter.nss
Normal file
@@ -0,0 +1,14 @@
|
||||
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);
|
||||
}
|
||||
Reference in New Issue
Block a user