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,42 @@
////////////////////////////////////////////////////////////////////////////////
//
// Olander's Pack Animals
// opa_pack_remove
// By Don Anderson
// dandersonru@msn.com
//
// This script is called from the On Death Event.
//
////////////////////////////////////////////////////////////////////////////////
#include "opa_inc"
#include "nbde_inc"
void main()
{
object oAnimal = OBJECT_SELF;
string sPC = GetLocalString(oAnimal, "OPA_OWNER_NAME");
string sPCU = GetLocalString(oAnimal, "OPA_OWNER_UNIQUE");
string sCheck = "";
//First Find Our PC
int nPC = 0;
object oPC = GetFirstPC();
while (GetIsObjectValid(oPC) == TRUE && nPC < 100)
{
sCheck = GetName(oPC);
if(sCheck == sPC) break;
nPC = nPC++;
oPC = GetNextPC();
}
//Drop the Pack Box
AccessBox(oPC, oAnimal);
//Remove this Animal from PC
DismissAnimal(oPC, oAnimal);
//Tell Player What the Animal Total is
SendMessageToPC(oPC,"Your Pack Animal Has Died and has Dropped it's Pack Box.");
}