using System;
using System.Collections;
using Server;
using Server.Network;
using Server.Items;
using Server.ContextMenus;
using Server.Misc;
namespace Server.Mobiles
{
[CorpseName("CorpseOfDuyuruYetkilisi")]
public class DuyuruYetkilisi : BaseCreature
{
private static bool m_Talked;
string[]DuyuruYetkilisiSay = new string[]
{
"Buraya Duyurması İstediğiniz Yazı",
"Buraya Duyurması İstediğiniz Yazı!",
"Buraya Duyurması İstediğiniz Yazı",
"Buraya Duyurması İstediğiniz Yazı",
"Buraya Duyurması İstediğiniz Yazı",
"Buraya Duyurması İstediğiniz Yazı!",
"Buraya Duyurması İstediğiniz Yazı",
};
public override bool ShowFameTitle{ get{ return false; } }
[Constructable]
public DuyuruYetkilisi()
: base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
{
SpeechHue = Utility.RandomDyedHue();
Hue = 0x83EA;
Body =77;
Name = "Duyuru Yetkilisi";
Hue = 1156;
}
public override void OnMovement( Mobile m, Point3D oldLocation )
{
if( m_Talked == false )
{
if ( m.InRange( this, 3 ) && m is PlayerMobile)
{
m_Talked = true;
SayRandom(DuyuruYetkilisiSay, this );
this.Move( GetDirectionTo( m.Location ) );
SpamTimer t = new SpamTimer();
t.Start();
}
}
}
private class SpamTimer : Timer
{
public SpamTimer() : base( TimeSpan.FromSeconds( 12 ) )
{
Priority = TimerPriority.OneSecond;
}
protected override void OnTick()
{
m_Talked = false;
}
}
private static void SayRandom( string[] say, Mobile m )
{
m.Say( say[Utility.Random( say.Length )] );
}
public DuyuruYetkilisi( Serial serial ) : base( serial )
{
}
public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 0 ); // version
}
public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();
}
}
}
Total votes: 0
Ultima Online 2 gün önce
RunUo Scripting 2 gün önce
Sunucular 6 gün önce
Sunucular 6 gün önce
Ultima Online 2 hafta önce
Sunucular 3 hafta önce
Sunucular 4 hafta önce
Ultima Online 1 ay önce
Sunucular 1 ay önce
Ultima Online 2 ay önce
Sunucular 2 ay önce
Sohbet & Geyik 2 ay önce
2024-10-31 22:47
2024-10-14 17:45
2024-09-26 14:21
2024-07-08 22:50
2024-07-08 22:34
2024-06-19 22:05
2024-06-01 02:19
2024-05-31 21:17
Yorumlar (0)