EN4_PRC8/_module/nss/qst_hasitemchk1.nss

19 lines
385 B
Plaintext
Raw Permalink Normal View History

#include "rd_questinc"
#include "nw_i0_tool"
int StartingConditional()
{
object oPC;
int iResult;
string sTag;
oPC = GetPCSpeaker();
sTag = GetLocalString(oPC,"QuestItemTag");
iResult = FALSE;
if (HasItem(oPC,sTag) && GetLocalString(GetPCSpeaker(),"QuestTargetMob") == "" && GetLocalString(GetPCSpeaker(),"QuestGiver") == GetTag(OBJECT_SELF))
iResult = TRUE;
return iResult;
}