Initial commit

Initial commit
This commit is contained in:
Jaysyn904
2024-09-13 09:10:39 -04:00
parent 09dc8aec92
commit d1c309ae63
8437 changed files with 8727659 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
////////////////////////////////////////////////////////////////////////////////
//
// Olander's Pack Animals
// opa_chk_buyt2
// By Don Anderson
// dandersonru@msn.com
//
// This script is called from the Pack Animal Salesman Convo.
//
// Checks for Enough Gold.
//
////////////////////////////////////////////////////////////////////////////////
int StartingConditional()
{
object oPC = GetPCSpeaker();
object oNPC = OBJECT_SELF;
object oMod = GetModule();
int nType2 = GetLocalInt(oMod,"T2PRICE");
//Get the Animal Waypoint
object oWP = GetNearestObjectByTag("OPA_TYPE02",oNPC,1);
//Check for Enough Gold and Maximum Animals
int nGP = GetGold(oPC);
int nSTotal = GetLocalInt(oPC,"OPA_ANIMALTOTAL");
if(nSTotal > 0) return FALSE;
//All Checks
if(nGP >= nType2
&& nSTotal == 0
&& GetIsObjectValid(oWP) == TRUE)
{
return TRUE;
}
else return FALSE;
}