UO-Dev Arama


Yazar: Bilinmiyor
Tarih: 30-08-2009 15:49


Paylaş : Paylaş

Kod:
/*
* Date: 24.08.2004
* Time: 14:00
* Not: hakaret.txt ç ş ı gibi türkçe harfleri görmüyor.
*
*/
using System;
using System.Text;
using System.IO;

using Server;
using Server.Accounting;
using System.Collections;
using Server.Mobiles;
using Server.Network;
using Server.Items;

namespace Rugzo.Hakaret
{
    public class Kontrol
    {
        public static string RHS="Curse System";
        private static ArrayList m_Lines = new ArrayList();
        private static string path = "Data/hakaret.txt";
       
        public static void Initialize()
        {
            EventSink.Speech += new SpeechEventHandler( EventSink_Speech );

            if ( File.Exists( path ) )
             {
                   using ( StreamReader ip = new StreamReader( path ) )
                {
                       string line;

                       while ( (line = ip.ReadLine()) != null )
                       {
                      if ( line.Length > 0 )
                         m_Lines.Add( line );
                       }
                   }
            }     

             if ( m_Lines.Count == 0 )
             {
                Console.WriteLine("Hakaret.cs - data dosyası (hakaret.txt) bulunamadı.");
             }
        }

        public static void EventSink_Speech( SpeechEventArgs args )
        {
           
            if ((((Account)args.Mobile.Account).AccessLevel < AccessLevel.Counselor) && (args.Mobile.Squelched == false))
            {
                string s = args.Speech.ToLower();
                string sep = " ";
                char[] a = sep.ToCharArray();
                PlayerMobile pm = args.Mobile as PlayerMobile;
               
       
                foreach( string str in s.Split( a ) )
                {
                    if( m_Lines.Contains( str ) )
                    {
                        ((Account)pm.Account).Comments.Add(new AccountComment(Kontrol.RHS, DateTime.Now + " tarihinde '" + s + "' dediği için squelch almıştır."));
                        pm.Squelched = true;
                        pm.Say("*Kufur Size Yakismiyor!*");
                        HakaretKitabi kitab = new HakaretKitabi();
                        kitab.RHSKufur = s;
                        pm.AddToBackpack( kitab );
                        pm.SendMessage(0x25, "Lutfen Sayginizi Takinin..");
                        pm.SendMessage(0x25, "Yeniden konusabilmek icin cantanizdaki kitaba tiklayin.");
                    }
                }
            }
        }
    }
}



Yorumlar

Henüz yorum yapılmamıştır.

Oylamalar

Oylama :
Üyelerin oylama ortalaması (10 dışında) : Henüz Oylanmamış   
Oylar: 0

Benzer Sayfalar

SayfalarYorumlarGönderenTarih
Guild sistemi0Mrs.xariyla04-03-2012
House sistemi0Mrs.xariyla04-03-2012
Maaş Sistemi0Kraagnar17-11-2011
Flash üyelik sistemi0Culum25-09-2011
Sorter Account Sistemi0Sorter23-07-2011


Keywords:

ultima online, RunUO, ultima online download, sphere scripting, role play, uo grafik, second age ultima, uo loop, macroman, pvp server, server kurulumu, sphere, multool, ml mulls, 56b 55r 55i, htmlgumps, client 4x, client edit, sphere release, osi, rp server, sunucular, ghost mouse, inside uo, kingdom reborn, stygian abyss, uo nasıl oynanır, mondain's legacy, age of shadows, world build, grandmaster, ultima online pvp, player dosyaları, ultima online indir, frp game, RunUO 1.0.0, razor, uo rice, hue editör, skill tools, ultima online patch, axis, world build, verdata, verdata patcher, map editör, gump editör, mul patcher, aos mulls, scriptler, anim edit, anim publish, hues mul, hosting vps, event dialog, account sistemi, skill gain, static yapımı,