generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit.
This commit is contained in:
31
_removed/corpse_spellhook.nss
Normal file
31
_removed/corpse_spellhook.nss
Normal 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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user