generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
26
_module/nss/opa_chk_haspa.nss
Normal file
26
_module/nss/opa_chk_haspa.nss
Normal file
@@ -0,0 +1,26 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Olander's Pack Animals
|
||||
// opa_chk_haspa
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// This script is called from the Pack Animal Merchant Convo.
|
||||
//
|
||||
// Checks for Pack Animal Ownership
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oAnimal = OBJECT_SELF;
|
||||
object oMod = GetModule();
|
||||
|
||||
if(oPC == OBJECT_INVALID) return FALSE;
|
||||
|
||||
//Player Information
|
||||
int nHasPA = GetLocalInt(oPC,"OPA_ANIMALTOTAL");
|
||||
if(nHasPA == 1) return TRUE;
|
||||
else return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user