Battledale_PRC8/_module/nss/sc_bill_pay.nss

23 lines
621 B
Plaintext
Raw Permalink Normal View History

//::///////////////////////////////////////////////
//:: sc_bill_pay
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
*/
//:://////////////////////////////////////////////
//:: Created By: Lysandius
//:: Created On: 16-07-2002
//:://////////////////////////////////////////////
int StartingConditional()
{
string sAreaName = GetTag(GetArea(OBJECT_SELF));
string sVarName = "RPO_" + sAreaName + "_Bill";
int nBill = GetLocalInt(GetLastSpeaker(), sVarName);
int nGold = GetGold(GetLastSpeaker());
if (nGold >= nBill)
return TRUE;
return FALSE;
}