18 lines
661 B
Plaintext
18 lines
661 B
Plaintext
////////////////////////////////////////////////////////////////////////////////
|
|
// q_bounty_avail1 - Return TRUE if the bounty in question is available
|
|
// By Deva B. Winblood. September, 30th 2008
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
int StartingConditional()
|
|
{
|
|
object oPC=GetPCSpeaker();
|
|
int nBQR=GetLocalInt(oPC,"nBountyQuestRunner");
|
|
object oItem;
|
|
nBQR++;
|
|
oItem=GetObjectByTag("qbounty"+IntToString(nBQR));
|
|
if (nBQR>7) DeleteLocalInt(oPC,"nBountyQuestRunner");
|
|
else { SetLocalInt(oPC,"nBountyQuestRunner",nBQR); }
|
|
if (GetIsObjectValid(oItem)) return TRUE;
|
|
return FALSE;
|
|
}
|