Initial commit
Initial commit. Updated release archive.
This commit is contained in:
20
_module/nss/en5_activateitem.nss
Normal file
20
_module/nss/en5_activateitem.nss
Normal file
@@ -0,0 +1,20 @@
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
int nEvent =GetUserDefinedItemEventNumber();
|
||||
object oItem = GetItemActivated();
|
||||
object oPC = GetItemActivator();
|
||||
|
||||
if (GetModuleSwitchValue(MODULE_SWITCH_ENABLE_TAGBASED_SCRIPTS) == TRUE)
|
||||
{
|
||||
SetUserDefinedItemEventNumber(X2_ITEM_EVENT_ACTIVATE);
|
||||
int nRet = ExecuteScriptAndReturnInt(GetUserDefinedItemEventScriptName(oItem),OBJECT_SELF);
|
||||
if (nRet == X2_EXECUTE_SCRIPT_END)
|
||||
{
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user