generated from Jaysyn/ModuleTemplate
Initial Commit
Initial Commit
This commit is contained in:
24
_module/nss/fire_check.nss
Normal file
24
_module/nss/fire_check.nss
Normal file
@@ -0,0 +1,24 @@
|
||||
#include "prc_x2_itemprop"
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
int oRapier = BASE_ITEM_RAPIER;
|
||||
|
||||
object oItem = GetFirstItemInInventory(OBJECT_SELF);
|
||||
if (GetBaseItemType(oItem)==oRapier)
|
||||
{
|
||||
if (GetItemHasItemProperty(oItem, IP_CONST_DAMAGETYPE_FIRE))
|
||||
return FALSE;
|
||||
}
|
||||
oItem = GetNextItemInInventory(OBJECT_SELF);
|
||||
if (GetBaseItemType(oItem)==oRapier)
|
||||
{
|
||||
if (GetItemHasItemProperty(oItem, IP_CONST_DAMAGETYPE_FIRE))
|
||||
return FALSE;
|
||||
}
|
||||
return TRUE;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user