Shargast_PRC8/_module/Chapter 2/nss/bhhc_no_horse.nss
Jaysyn904 66a0a3e043 Initial commit
Initial commit.
2024-08-03 14:13:18 -04:00

26 lines
542 B
Plaintext

// Check horse is available to the caller
// Author : Proleric
// Modified : 17-May-2008
int StartingConditional()
{
object oRider = OBJECT_SELF;
object oPC = GetMaster(oRider);
int bFound = FALSE;
if (!GetIsObjectValid(oPC)) oPC = oRider;
SetLocalInt(oPC, "bhConditional", 1);
ExecuteScript("bhh_assign", oRider);
if (GetLocalInt(oPC, "bhMountFound")) bFound = TRUE;
DeleteLocalInt(oPC, "bhConditional");
DeleteLocalInt(oPC, "bhMountFound");
DeleteLocalInt(oPC, "bhSpareFound");
return bFound;
}