Files
HeroesStone_PRC8/_module/nss/tlr_ifweapshld.nss
Jaysyn904 1eefc84201 Initial Commit
Initial Commit.
2025-09-14 15:40:46 -04:00

31 lines
1.1 KiB
Plaintext

//::///////////////////////////////////////////////
//:: Tailoring - If Either Hand Item is Valid and
//:: weapon or shield modifying is allowed
//:: tlr_ifweapshld.nss
//:: Copyright (c) 2006 Stacy L. Ropella
//:://////////////////////////////////////////////
/*
Checks to make sure there is a valid item
equipped in at least one of the PC's hand slots
and weapon or shield modifying is allowed
*/
//:://////////////////////////////////////////////
//:: Created By: Stacy L. Ropella
//:: Created On: January 29, 2006
//:://////////////////////////////////////////////
int StartingConditional()
{
if(GetLocalInt(OBJECT_SELF, "Shield_Buy") == 0
&& GetLocalInt(OBJECT_SELF, "Shield_Copy") == 0
&& GetLocalInt(OBJECT_SELF, "Weapon_Buy") == 0
&& GetLocalInt(OBJECT_SELF, "Weapon_Copy") == 0)
return FALSE;
if (GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_RIGHTHAND, GetPCSpeaker())))
return TRUE;
else if (GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, GetPCSpeaker())))
return TRUE;
else
return FALSE;
}