UO-Dev Arama


Yazar: Bilinmiyor
Tarih: 23-09-2009 17:33


Paylaş : Paylaş

Kod:
using System;
using System.Collections;
using Server.Network;
using Server.Items;
using Server.Mobiles;
using Server.Targeting;

namespace Server.Spells.Bushido
{
public class LightningStrike : SamuraiMove
{
public LightningStrike()
{
}

public override int BaseMana{ get{ return 5; } }
public override double RequiredSkill{ get{ return 50.0; } }

public override TextDefinition AbilityMessage{ get{ return new TextDefinition( 1063167 ); } } // You prepare to strike quickly.

public override bool DelayedContext{ get{ return true; } }

public override int GetAccuracyBonus( Mobile attacker )
{
return 50;
}

public override bool IgnoreArmor( Mobile attacker )
{
double bushido = attacker.Skills[SkillName.Bushido].Value;

double criticalChance = (bushido * bushido) / 72000.0;

return ( criticalChance >= Utility.RandomDouble() );
}

public override bool OnBeforeSwing( Mobile attacker, Mobile defender )
{
return Validate( attacker ) && CheckMana( attacker, true );
}

public override bool ValidatesDuringHit { get { return false; } }

public override void OnHit( Mobile attacker, Mobile defender, int damage )
{
//Validation in OnBeforeSwing

ClearCurrentMove( attacker );

attacker.SendLocalizedMessage( 1063168 ); // You attack with lightning precision!
defender.SendLocalizedMessage( 1063169 ); // Your opponent's quick strike causes extra damage!

            defender.FixedParticles( 0x3818, 1, 11, 0x13A8, 0, 0, EffectLayer.Waist );
            defender.PlaySound( 0x51D );

CheckGain( attacker );

SetContext( attacker );
}

public override void OnMiss( Mobile attacker, Mobile defender )
{
ClearCurrentMove( attacker );

SetContext( attacker );
}
}
}



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
Web Hosting-Counter Strike 1.6-Ultima Online-Kn...0stylez22-05-2010
Tales of a Flame Strike0TheRaskol22-01-2010
Poison Strike0The And27-09-2009
Lightning0The And27-09-2009
Momentum Strike0The And23-09-2009


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ı,