RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Wrestling Weapons

Wrestling Weapons

Summary:
Weapons to add damage when wrestling.

Installation:
1. Open "Weaponsmith.cs" and save it as "Weaponsmith.bak".
2. Paste the new "Weaponsmith.cs" into the same directory
3. Copy the Gloves directory into either your Items\Weapons directory or into
your Custom directory. Either work.

5/20/04 - Updated Gloves.zip to include Weaponsmith.cs =/
 

Attachments

  • Gloves.zip
    6.3 KB · Views: 362

minorj

Wanderer
think ment sbWeaponSmith.cs

WebSiter said:
You forget to put Weaponsmith.cs in Gloves.zip.
Not 100% sure but that is my guess beings the actutual Dude not need to be changed, what he/she sells.
 

AldarHawk

Wanderer
I seem to not be able to get the Gloves to work on my test shard. I have added all the scripts but when I create them they come up as Bone Gloves and not what they are supposed to be. How can I fix this?
 

AldarHawk

Wanderer
Fixed the Probelm

[Constructable]
public BrassKnuckles() : base( 0x1450 )
{
Weight = 4.0;
Hue = 1281;
Layer = Layer.TwoHanded;
}

You must add 'Layer = Layer.TwoHanded;' or the Gloves do not pick up as a weapon. Once this is added they work perfectly.

Now to get the item to come up as Brass Knuckles and not Bone Gloves...

Any thoughts on this?
 

AldarHawk

Wanderer
Once again I fixed my own problem :p

Got them all working. If you would like the updated versions of the scripts let me know.
 

spooon

Wanderer
Well, I'd like to see you post 'em since the original guy hasn't responded to anything in this thread since the day he posted it.
 

AldarHawk

Wanderer
The parts in Bold are the parts that make it work as a weapon.


using System;
using Server.Items;
using Server.Network;
using Server.Engines.Harvest;

namespace Server.Items
{
[FlipableAttribute( 0x1450, 0x1450 )]
public class BrassKnuckles : BaseGlove
{
public override WeaponAbility PrimaryAbility{ get{ return WeaponAbility.DoubleStrike; } }
public override WeaponAbility SecondaryAbility{ get{ return WeaponAbility.BleedAttack; } }

public override int AosStrengthReq{ get{ return 35; } }
public override int AosMinDamage{ get{ return 4; } }
public override int AosMaxDamage{ get{ return 7; } }
public override int AosSpeed{ get{ return 40; } }

public override int OldStrengthReq{ get{ return 35; } }
public override int OldMinDamage{ get{ return 9; } }
public override int OldMaxDamage{ get{ return 27; } }
public override int OldSpeed{ get{ return 40; } }

public override int DefHitSound{ get{ return -1; } }
public override int DefMissSound{ get{ return -1; } }

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

public override SkillName DefSkill{ get{ return SkillName.Wrestling; } }
public override WeaponType DefType{ get{ return WeaponType.Fists; } }
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Wrestle; } }

[Constructable]
public BrassKnuckles() : base( 0x1450 )
{
Name = "Brass Knuckles";
Weight = 4.0;
Hue = 1281;
Layer = Layer.TwoHanded;
}

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

KHAOS

Wanderer
Nice Scripts

I like your Scripts for the Gloves, however I invented the same idea over a year ago :p I have working wreslting gloves of my own, but yours do have a few minor enhancements which are nice to see as well keep up the good work!

KHAOS
 

AldarHawk

Wanderer
I agree mine are copied. I know nothing about C# programming. I am using this as a way to learn it myself. :)

All I did was work on the existing gloves and make them work properly as a weapon. I am currently looking into a pair of gloves that work as Armor as well as a Weapon but I am running into a lot of problems and it will cause more problems than it will fix so I am putting them on a side.
 

rafael

Wanderer
don't they have any special moves like bleed attack and such??
i see em on the scripts but it doesn't actually work in game, i got the same icons as bare knucle wrestling...
 
Top