Initial upload

Initial upload
This commit is contained in:
Jaysyn904
2023-09-25 20:24:01 -04:00
parent 4e16ca63ca
commit 5197ad9a4d
7741 changed files with 5391820 additions and 0 deletions

33
_module/nss/spawn_gem.nss Normal file
View File

@@ -0,0 +1,33 @@
/*--------------------------------------------------------
Script Name: spawn_gem
----------------------------------------------------------
Created By: Genisys(Guile)
Created On: 4/17/09
----------------------------------------------------------
This goes in the OnOpen Event ONLY of a chest or placeable object
----------------------------------------------------------*/
//We only run this script one time for each PC for Each Chest!
void main()
{
object oPC = GetLastOpenedBy();
string sName = GetName(oPC);
int n = GetLocalInt(OBJECT_SELF, "GSC" + sName);
if(!GetIsPC(oPC))
return;
if(n==1)
{return;}
else
{
SetLocalInt(OBJECT_SELF, "GSC" + sName, 1);
ExecuteScript("gen_geg_treas", OBJECT_SELF);
}
}