mirror of
https://github.com/Ragora/T2-ACCM.git
synced 2026-03-11 16:30:37 +00:00
Other changes
This commit is contained in:
parent
182661dd82
commit
6170ff8255
13 changed files with 1716 additions and 1849 deletions
|
|
@ -406,80 +406,6 @@ function chatMessageAll( %sender, %msgString, %a1, %a2, %a3, %a4, %a5, %a6, %a7,
|
|||
return;
|
||||
}
|
||||
|
||||
|
||||
//==============================================================================
|
||||
// Interactive Sentinel AI. By Blnukem.
|
||||
//==============================================================================
|
||||
// Sentinel Interaction:
|
||||
|
||||
if ($Host::SentinelProtection $= 1 && MonitorGroup.GetCount() == 1 && strstr(%a2, "Follow me") != -1 || strstr(%a2, "follow me") != -1
|
||||
|| strstr(%a2, "Come") != -1 || strstr(%a2, "come") != -1)
|
||||
{
|
||||
Call("ccFollow", %sender);
|
||||
}
|
||||
|
||||
if ($Host::SentinelProtection $= 1 && MonitorGroup.GetCount() == 1 && strstr(%a2, "Stop") != -1 || strstr(%a2, "stop") != -1
|
||||
|| strstr(%a2, "Don't follow") != -1 || strstr(%a2, "Dont follow") != -1 || strstr(%a2, "don't follow") != -1 || strstr(%a2, "dont follow") != -1)
|
||||
{
|
||||
Call("ccStop", %sender);
|
||||
}
|
||||
|
||||
if ($Host::SentinelProtection == 1 && MonitorGroup.GetCount() == 1 && strstr(%a2, "Kill") == 0)
|
||||
{
|
||||
%rest = getsubstr(%a2, 1, 255);
|
||||
%target = plnametocid(getword(%rest, 0));
|
||||
%message = getsubstr(%rest, strlen(getword(%rest, 0)) + 1, 255);
|
||||
ccAttack(%sender, %message);
|
||||
}
|
||||
|
||||
//------------------------------------------------------------------------------
|
||||
// Monitor Interaction:
|
||||
|
||||
%sentinelcount = SentinelGroup.GetCount();
|
||||
%zombiecount = ZombieGroup.GetCount();
|
||||
if ($Host::SentinelProtection !$= 1 || MonitorGroup.GetCount() != 1)
|
||||
{
|
||||
}
|
||||
|
||||
if ($Host::SentinelProtection $= 1 && MonitorGroup.GetCount() $= 1 && strstr(%a2, "spawn a sentinel") != -1 || strstr(%a2, "Spawn a sentinel") != -1
|
||||
|| strstr(%a2, "Spawn a Sentinel") != -1 || strstr(%a2, "spawn another sentinel") != -1 || strstr(%a2, "Spawn another sentinel") != -1 || strstr(%a2, "Spawn another Sentinel") != -1)
|
||||
{
|
||||
Call("ccCreateSentinel", %sender);
|
||||
}
|
||||
|
||||
if ($Host::SentinelProtection $= 1 && MonitorGroup.GetCount() == 1 && strstr(%a2, "How many sentinels") != -1 || strstr(%a2, "how many sentinels") != -1 ||
|
||||
strstr(%a2, "Display sentinel count") != -1 || strstr(%a2, "display sentinel count") != -1)
|
||||
{
|
||||
if (SentinelGroup.GetCount() == 0)
|
||||
{
|
||||
Schedule(1, 0, MessageAll, "Msg", "\c2Monitor ::\c0 There are no Sentinel units currently deployed.");
|
||||
} else if (SentinelGroup.GetCount() == 1)
|
||||
{
|
||||
Schedule(1, 0, MessageAll, "Msg", "\c2Monitor ::\c0 There is 1 Sentinel unit currently deployed.");
|
||||
} else if (SentinelGroup.GetCount() >= 1)
|
||||
{
|
||||
Schedule(1, 0, MessageAll, "Msg", "\c2Monitor ::\c0 There are "@%sentinelcount@" Sentinel units currently deployed.");
|
||||
}
|
||||
} else if ($Host::SentinelProtection $= 1 && MonitorGroup.GetCount() == 1 && strstr(%a2, "How many zombies") != -1 || strstr(%a2, "how many zombies") != -1 ||
|
||||
strstr(%a2, "Display zombie count") != -1 || strstr(%a2, "display zombie count") != -1)
|
||||
{
|
||||
if (ZombieGroup.GetCount() == 0)
|
||||
{
|
||||
Schedule(1, 0, MessageAll, "Msg", "\c2Monitor ::\c0 No zombies have been detected by the Sentinel Network.");
|
||||
} else if (ZombieGroup.GetCount() == 1)
|
||||
{
|
||||
Schedule(1, 0, MessageAll, "Msg", "\c2Monitor ::\c0 There is 1 zombie currently detected by the Sentinel Network.");
|
||||
} else if (ZombieGroup.GetCount() >= 1)
|
||||
{
|
||||
Schedule(1, 0, MessageAll, "Msg", "\c2Monitor ::\c0 There are "@%zombiecount@" zombies detected by the Sentinel Network.");
|
||||
}
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
// End of Interactive Sentinel AI.
|
||||
//==============================================================================
|
||||
|
||||
|
||||
if ( ( %msgString $= "" ) || spamAlert( %sender ) )
|
||||
return;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue