Changed folder name.
Changed folder name.
This commit is contained in:
55
_module/nss/everaquire.nss
Normal file
55
_module/nss/everaquire.nss
Normal file
@@ -0,0 +1,55 @@
|
||||
//:: Script Name: everaquire
|
||||
//::///////////////////////////////////////////////
|
||||
//:: Example XP2 OnItemAcquireScript
|
||||
//:: x2_mod_def_aqu
|
||||
//:: (c) 2003 Bioware Corp.
|
||||
//:://////////////////////////////////////////////
|
||||
/*
|
||||
Put into: OnItemAcquire Event
|
||||
|
||||
*/
|
||||
//:://////////////////////////////////////////////
|
||||
//:: Created By: Georg Zoeller
|
||||
//:: Created On: 2003-07-16
|
||||
//:: Modified by Genisys / Guile 5/20/08
|
||||
//:://////////////////////////////////////////////
|
||||
|
||||
#include "x2_inc_switches"
|
||||
void main()
|
||||
{
|
||||
|
||||
|
||||
//IMPORTANT THIS MUST BE IN YOUR OnAcquireItem Module Event Script
|
||||
//This is a fix for the Inventory Organizing System!
|
||||
object oPC = GetModuleItemAcquiredBy();
|
||||
if(GetLocalInt(oPC, "ORGANIZING")==1)
|
||||
{ return; }
|
||||
|
||||
|
||||
object oItem = GetModuleItemAcquired();
|
||||
|
||||
//This is my addition to the base bioware script
|
||||
//All PC items aquired cannot be pick pocketed!
|
||||
if(GetIsPC(oPC))
|
||||
{
|
||||
SetPickpocketableFlag(oItem,FALSE);
|
||||
}
|
||||
|
||||
|
||||
// * Generic Item Script Execution Code
|
||||
// * If MODULE_SWITCH_EXECUTE_TAGBASED_SCRIPTS is set to TRUE on the module,
|
||||
// * it will execute a script that has the same name as the item's tag
|
||||
// * inside this script you can manage scripts for all events by checking against
|
||||
// * GetUserDefinedItemEventNumber(). See x2_it_example.nss
|
||||
if (GetModuleSwitchValue(MODULE_SWITCH_ENABLE_TAGBASED_SCRIPTS) == TRUE)
|
||||
{
|
||||
SetUserDefinedItemEventNumber(X2_ITEM_EVENT_ACQUIRE);
|
||||
int nRet = ExecuteScriptAndReturnInt(GetUserDefinedItemEventScriptName(oItem),OBJECT_SELF);
|
||||
if (nRet == X2_EXECUTE_SCRIPT_END)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user