Initial upload

Initial upload.
This commit is contained in:
Jaysyn904
2023-09-25 21:32:17 -04:00
parent c1b271b363
commit ec287507a1
10074 changed files with 8442145 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
//::///////////////////////////////////////////////
//:: Name
//:: FileName
//:: Copyright (c) 2001 Bioware Corp.
//:://////////////////////////////////////////////
/*
Determines whether the person speaking to the ox
is the owner or not. If they are, then returns TRUE.
*/
//:://////////////////////////////////////////////
//:: Created By: Rogers Pessin
//:: Created On: August 4, 2002
//:://////////////////////////////////////////////
int StartingConditional()
{
object oSpeaker = GetPCSpeaker();
if (oSpeaker==OBJECT_INVALID) return FALSE;
// Get the public CD key of the person trying to speak to/control
// the ox.
string sSpeakerCDK = GetPCPublicCDKey(oSpeaker);
// Retrieve the public CD key of the person who actually is supposed
// to control the ox.
string sTrueOwnerCDK = GetLocalString(OBJECT_SELF,"RP_OWNER_CDK");
// Is the person speaking to the ox the true owner?
if (sSpeakerCDK==sTrueOwnerCDK)
{
SetLocalObject(OBJECT_SELF,"RP_OWNER",oSpeaker);
return TRUE;
}
else
{
return FALSE;
}
}