Initial upload
Initial upload
This commit is contained in:
20
_module/nss/generate_gem.nss
Normal file
20
_module/nss/generate_gem.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
void main()
|
||||
{
|
||||
object oPC = GetLastUsedBy();
|
||||
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);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user