generated from Jaysyn/ModuleTemplate
25 lines
777 B
Plaintext
25 lines
777 B
Plaintext
//::///////////////////////////////////////////////
|
|
//:: Tailoring - If Right Hand Item is Valid on NPC
|
|
//:: tlr_ifleftvalnpc.nss
|
|
//:: Copyright (c) 2006 Stacy L. Ropella
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Checks to make sure there is a valid item
|
|
equipped in the NPC's right hand slot
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Stacy L. Ropella
|
|
//:: Created On: February 20, 2006
|
|
//:://////////////////////////////////////////////
|
|
int StartingConditional()
|
|
{
|
|
if(GetLocalInt(OBJECT_SELF, "Shield_Buy") == 0
|
|
&& GetLocalInt(OBJECT_SELF, "Shield_Copy") == 0)
|
|
return FALSE;
|
|
|
|
if (GetIsObjectValid(GetItemInSlot(INVENTORY_SLOT_LEFTHAND, OBJECT_SELF)))
|
|
return TRUE;
|
|
else
|
|
return FALSE;
|
|
}
|