generated from Jaysyn/ModuleTemplate
Initial commit
Initial commit
This commit is contained in:
32
_module/nss/opa_chk_owner.nss
Normal file
32
_module/nss/opa_chk_owner.nss
Normal file
@@ -0,0 +1,32 @@
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Olander's Pack Animals
|
||||
// opa_chk_owner
|
||||
// By Don Anderson
|
||||
// dandersonru@msn.com
|
||||
//
|
||||
// This script is called from the Pack Animal Convo.
|
||||
//
|
||||
// Checks for Owner Match.
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
int StartingConditional()
|
||||
{
|
||||
object oPC = GetPCSpeaker();
|
||||
object oAnimal = OBJECT_SELF;
|
||||
object oMod = GetModule();
|
||||
|
||||
if(oPC == OBJECT_INVALID) return FALSE;
|
||||
|
||||
//Player Information
|
||||
string sPCU = GetLocalString(oPC,"PCU");
|
||||
string sAPCU = GetLocalString(oAnimal, "OPA_OWNER_UNIQUE");
|
||||
|
||||
if(sPCU == sAPCU)
|
||||
{
|
||||
SetCustomToken(2010,GetName(oAnimal));
|
||||
return TRUE;
|
||||
}
|
||||
else return FALSE;
|
||||
}
|
||||
Reference in New Issue
Block a user