LoD_PRC8/_module/nss/lcs_shld_cond.nss

26 lines
523 B
Plaintext
Raw Normal View History

2023-09-21 21:20:34 -04:00
int StartingConditional()
{
int iResult;
object oItem = GetItemInSlot(INVENTORY_SLOT_LEFTHAND);
iResult = GetIsObjectValid(oItem);
if(iResult)
{
int nBaseItemType = GetBaseItemType(oItem);
if(((nBaseItemType == BASE_ITEM_SMALLSHIELD) || (nBaseItemType == BASE_ITEM_LARGESHIELD)) || (nBaseItemType == BASE_ITEM_TOWERSHIELD))
{
return iResult;
}
else
{
return FALSE;
}
}
else
{
return iResult;
}
}