UO-Dev Arama


Yazar: Bilinmiyor
Tarih: 18-08-2009 13:05


Paylaş : Paylaş

Kod:
/// %25 random vurmaktadır.

using System;
using Server;
using Server.Items;
using Server.Network;

namespace Server.Items
{
public class PoisonousBow : BaseRanged
{
public override WeaponAbility PrimaryAbility{ get{ return WeaponAbility.ParalyzingBlow; } }
public override WeaponAbility SecondaryAbility{ get{ return WeaponAbility.MortalStrike; } }

public override int EffectID{ get{ return 0xF42; } }
public override Type AmmoType{ get{ return typeof( Arrow ); } }
public override Item Ammo{ get{ return new Arrow(); } }

public override int AosStrengthReq{ get{ return 50; } }
public override int AosMinDamage{ get{ return 23; } }
public override int AosMaxDamage{ get{ return 25; } }
public override int AosSpeed{ get{ return 35; } }

public override int OldStrengthReq{ get{ return 20; } }
public override int OldMinDamage{ get{ return 9; } }
public override int OldMaxDamage{ get{ return 25; } }
public override int OldSpeed{ get{ return 20; } }

public override int DefMaxRange{ get{ return 10; } }

public override int InitMinHits{ get{ return 255; } }
public override int InitMaxHits{ get{ return 255; } }

public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.ShootBow; } }

public override int ArtifactRarity{ get{ return 12; } }

[Constructable]
public PoisonousBow() : base( 0x13B2 )
{
Hue = 0x4F8;
Attributes.SpellChanneling = 1;
WeaponAttributes.HitLeechMana = 75;
Name = "The Bow of Poisons";
Weight = 6.0;
Layer = Layer.TwoHanded;
}

public override void GetDamageTypes( Mobile wielder, out int phys, out int fire, out int cold, out int pois, out int nrgy )
{
phys = fire = cold = nrgy = 0;
pois = 100;
}

public override void OnHit( Mobile attacker, Mobile defender )
{
if ( attacker.Player && !defender.Player && (defender.Body.IsAnimal || defender.Body.IsMonster) && 0.4 >= Utility.RandomDouble() )
defender.AddToBackpack( Ammo );

base.OnHit( attacker, defender );

if ( 0.25 > Utility.RandomDouble() )
{
defender.PlaySound( 0xDD );
defender.FixedParticles( 0x3728, 244, 25, 9941, 1266, 0, EffectLayer.Waist );
switch ( Utility.Random( 5 ))
{
case 0: defender.ApplyPoison( defender, Poison.Lethal ); break;
case 1: defender.ApplyPoison( defender, Poison.Deadly ); break;
case 2: defender.ApplyPoison( defender, Poison.Greater ); break;
case 3: defender.ApplyPoison( defender, Poison.Regular ); break;
case 4: defender.ApplyPoison( defender, Poison.Lesser ); break;
default: break;
}
}
}

public PoisonousBow( 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();

if ( Weight == 7.0 )
Weight = 6.0;
}
}
}



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


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