Added NWN Dark Sun module contents
Added NWN Dark Sun module contents.
This commit is contained in:
27
nwnds_module/ps_psychblade_it.nss
Normal file
27
nwnds_module/ps_psychblade_it.nss
Normal file
@@ -0,0 +1,27 @@
|
||||
#include "x2_inc_switches"
|
||||
#include "lib_psionic"
|
||||
|
||||
void main()
|
||||
{
|
||||
int nEvent =GetUserDefinedItemEventNumber();
|
||||
object oPC;
|
||||
object oItem;
|
||||
|
||||
if (nEvent ==X2_ITEM_EVENT_UNEQUIP)
|
||||
{
|
||||
|
||||
oPC = GetPCItemLastUnequippedBy();
|
||||
oItem = GetPCItemLastUnequipped();
|
||||
|
||||
DestroyObject(oItem);
|
||||
}
|
||||
|
||||
else if ( nEvent ==X2_ITEM_EVENT_ONHITCAST)
|
||||
{
|
||||
oItem = GetSpellCastItem();
|
||||
|
||||
if(GetRealTime()>=GetLocalInt(oItem, "BladeExpiration"))
|
||||
DestroyObject(oItem);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user