35 lines
991 B
Plaintext
35 lines
991 B
Plaintext
|
//::///////////////////////////////////////////////
|
||
|
//:: Name ra_ai_attacked
|
||
|
//:: Copyright (c) 2022 Project RATDOG
|
||
|
//:://////////////////////////////////////////////
|
||
|
/*
|
||
|
NPC OnAttacked event script caller to run CODI
|
||
|
AI & PRC events.
|
||
|
*/
|
||
|
//:://////////////////////////////////////////////
|
||
|
//:: Created By: Jaysyn
|
||
|
//:: Created On: 20221201
|
||
|
//:://////////////////////////////////////////////
|
||
|
|
||
|
void main()
|
||
|
{
|
||
|
//--------------------------------------------------------------------------
|
||
|
// GZ: 2003-10-16
|
||
|
// Make Plot Creatures Ignore Attacks
|
||
|
//--------------------------------------------------------------------------
|
||
|
if (GetPlotFlag(OBJECT_SELF))
|
||
|
{
|
||
|
return;
|
||
|
}
|
||
|
|
||
|
//:: Execute the CODI AI NPC OnAttacked script
|
||
|
ExecuteScript("no_ai_atk", OBJECT_SELF);
|
||
|
|
||
|
//:: Execute the Default NPC OnAttacked script
|
||
|
//ExecuteScript("nw_c2_default5", OBJECT_SELF);
|
||
|
|
||
|
//:: Execute the PRC NPC OnAttacked script
|
||
|
ExecuteScript("prc_npc_physatt", OBJECT_SELF);
|
||
|
|
||
|
}
|