22 lines
714 B
Plaintext
22 lines
714 B
Plaintext
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
// q_bounty_gone - Return TRUE if the bounty you are after is already dead.
|
||
|
// By Deva B. Winblood. September, 30th 2008
|
||
|
////////////////////////////////////////////////////////////////////////////////
|
||
|
|
||
|
int StartingConditional()
|
||
|
{
|
||
|
object oPC=GetPCSpeaker();
|
||
|
object oItem;
|
||
|
int nBQ=GetLocalInt(oPC,"nBountyQuest");
|
||
|
if (nBQ>0)
|
||
|
{ // bounty quest
|
||
|
oItem=GetObjectByTag("qbounty"+IntToString(nBQ));
|
||
|
if (!GetIsObjectValid(oItem))
|
||
|
{ // already killed
|
||
|
DeleteLocalInt(oPC,"nBountyQuest");
|
||
|
return TRUE;
|
||
|
} // already killed
|
||
|
} // bounty quest
|
||
|
return FALSE;
|
||
|
}
|