Rune_PRC8/_module/nss/wdm_mod_onaqu.nss
Jaysyn904 d1c309ae63 Initial commit
Initial commit
2024-09-13 09:10:39 -04:00

23 lines
698 B
Plaintext

////////////////////////////////////////////////////////////////////////////////
// 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);
}
}