#W# Initial Commit: Avatars Conquest

This commit is contained in:
WarrentyExpired 2026-07-03 20:19:48 -04:00
commit 8eae46895e
7512 changed files with 416187 additions and 0 deletions

44
Scripts/Misc/Keywords.cs Normal file
View file

@ -0,0 +1,44 @@
using System;
using Server;
using Server.Items;
using Server.Guilds;
using Server.Mobiles;
using Server.Gumps;
namespace Server.Misc
{
public class Keywords
{
public static void Initialize()
{
// Register our speech handler
EventSink.Speech += new SpeechEventHandler( EventSink_Speech );
}
public static void EventSink_Speech( SpeechEventArgs args )
{
Mobile from = args.Mobile;
int[] keywords = args.Keywords;
for ( int i = 0; i < keywords.Length; ++i )
{
switch ( keywords[i] )
{
case 0x002A: // *i resign from my guild*
{
if ( from.Guild != null )
((Guild)from.Guild).RemoveMember( from );
break;
}
case 0x0032: // *i must consider my sins*
{
from.SendMessage( "Long Term Murders : {0}", from.Kills );
break;
}
}
}
}
}
}