Initial Commit

Initial Commit.
This commit is contained in:
Jaysyn904
2025-09-14 15:40:46 -04:00
parent 7083b33d71
commit 1eefc84201
19230 changed files with 11539227 additions and 0 deletions

View File

@@ -0,0 +1,31 @@
#include "x2_inc_switches"
#include "corpse_lib"
void main()
{
string script = GetUserSpellHookScript();
int stop = X2_EXECUTE_SCRIPT_CONTINUE;
DeleteLocalInt(OBJECT_SELF,CorpseSpellHookReturnValue);
if(GetTag(GetArea(OBJECT_SELF)) == CorpseCryptTag)
{
stop = X2_EXECUTE_SCRIPT_END;
}
SetLocalInt(OBJECT_SELF,CorpseSpellHookReturnValue,stop);
if(script != "")
{
int retval = ExecuteScriptAndReturnInt(script,OBJECT_SELF);
if(stop == X2_EXECUTE_SCRIPT_END || retval == X2_EXECUTE_SCRIPT_END)
{
SetExecutedScriptReturnValue(X2_EXECUTE_SCRIPT_END);
}
}
else
{
SetExecutedScriptReturnValue(stop);
}
}