PWE_PRC8/_module/nss/sf_chekgold.nss

22 lines
571 B
Plaintext
Raw Normal View History

2025-04-03 10:29:41 -04:00
//::///////////////////////////////////////////////
//:: FileName sf_chekgold
//:://////////////////////////////////////////////
//:://////////////////////////////////////////////
//:: Created By: Script Wizard
//:: Created On: 9/11/2002 1:41:21 PM
//:://////////////////////////////////////////////
int StartingConditional()
{
object oPC=GetPCSpeaker();
int oHD=GetHitDice(oPC);
int sfcost;
if (oHD<11)
sfcost=oHD*oHD*oHD*25;
else
sfcost=oHD*oHD*250;
if (GetGold(oPC)<sfcost)
return TRUE;
else
return FALSE;
}