generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
22
_module/nss/wdm_mod_onaqu.nss
Normal file
22
_module/nss/wdm_mod_onaqu.nss
Normal file
@@ -0,0 +1,22 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
// Dead and Wild Magic System - OnAcquired
|
||||
// wdm_mod_onaqu
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// Place this script in the Module OnAcquired Event
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include "wdm_inc"
|
||||
|
||||
void main()
|
||||
{
|
||||
object oItem = GetModuleItemAcquired();
|
||||
object oCreature = GetModuleItemAcquiredBy();
|
||||
if (oCreature != OBJECT_INVALID)
|
||||
{
|
||||
struct DeadMagicInfo deadInfo = WDM_GetAreaDeadMagicStatus(GetArea(oCreature));
|
||||
if (deadInfo.iIsDeadMagic && deadInfo.iStripProperties) WDM_RemoveAllProperties(oItem, oCreature);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user