29 lines
879 B
Plaintext
29 lines
879 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name ra_ai_heartbeat
|
||
|
//:: Copyright (c) 2022 Project RATDOG
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
NPC Heartbeat event script caller to run CODI
|
||
|
AI & PRC events.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 20221201
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//:: Equips best armor
|
||
|
if ((!GetIsInCombat(OBJECT_SELF) && (GetItemInSlot(INVENTORY_SLOT_CHEST) == OBJECT_INVALID)))
|
||
|
DelayCommand(0.5f, ActionEquipMostEffectiveArmor());
|
||
|
|
||
|
//:: Execute the CODI NPC OnHeartbeat script
|
||
|
ExecuteScript("no_ai_hrt", OBJECT_SELF);
|
||
|
|
||
|
//:: Execute the default NPC OnHeartbeat script
|
||
|
//ExecuteScript("nw_c2_default1", OBJECT_SELF);
|
||
|
|
||
|
//:: Execute the PRC NPC OnHeartbeat script
|
||
|
ExecuteScript("prc_npc_hb", OBJECT_SELF);
|
||
|
}
|