MMD_PRC8/_module/nss/nw_c2_default8.nss

27 lines
1.2 KiB
Plaintext
Raw Normal View History

/*//////////////////////////////////////////////////////////////////////////////
Script: nw_c2_default8
Programmer: Philos
////////////////////////////////////////////////////////////////////////////////
Monster OnDisturbed event script;
Fires when the inventory of oCreature is changed i.e. added or removed.
Creatures can't have items added or removed from its inventory (it's not a
container), then the only way this fires for creatures if something is stolen.
*///////////////////////////////////////////////////////////////////////////////
#include "0i_actions"
2024-08-02 23:18:00 -04:00
void main()
{
ExecuteScript("prc_npc_disturb", OBJECT_SELF);
if(AI_DEBUG) ai_Debug("nw_c2_default8", "13", GetName(OBJECT_SELF) + " is been disturbed!");
// We do nothing at the moment... lets not mess up our factions ok?
// This should be defined by the server admins and is commented out.
//if(ai_GetIsBusy(OBJECT_SELF, FALSE) || ai_Disabled()) return;
//object oTarget = GetLastDisturbed();
//if (oTarget != OBJECT_INVALID) ai_DoMonsterCombatRound ();
2024-08-02 23:18:00 -04:00
// Send the disturbed flag if appropriate.
if(GetSpawnInCondition(NW_FLAG_DISTURBED_EVENT))
{
2024-08-02 23:18:00 -04:00
SignalEvent(OBJECT_SELF, EventUserDefined(EVENT_DISTURBED));
}
}