Go Back   RunUO - Ultima Online Emulation > RunUO > Script Support

Script Support Get support for modifying RunUO Scripts, or writing your own!

Reply
 
Thread Tools Display Modes
Old 07-05-2004, 06:41 PM   #1 (permalink)
 
Join Date: Dec 2003
Posts: 49
Send a message via Yahoo to kev2000
Default Problem with wepons compiling with V1

Okay, i have now currently updated my shard to V.1 and i get a specific error with most of my custom wepons. For example here is an orc bow that does not complie...
PHP Code:
ScriptsCompiling C# scripts...failed (1 errors, 0 warnings)
 
ErrorScriptsCustomsorcsOrcishbow.csCS0115: (line 44column 22'Serve
r.Items.OrcishBow.GetDamageTypes(out int, out int, out int, out int, out int)'
:
no suitable method found to override
Scripts
One or more scripts failed to compile or no script files were found.
 - 
Press return to exit, or R to try again
Okay here is the corresponding code. Now all of the wepons have the error and im wondering if i need to edit a line in there.. Thank you in advance!
Code:
using System; 
using Server; 

namespace Server.Items 
{ 

[FlipableAttribute( 0x13B2, 0x13B1 )] 
public class OrcishBow : Bow 
{ 
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 WeaponAbility PrimaryAbility{ get{ return WeaponAbility.ParalyzingBlow; } } 
public override WeaponAbility SecondaryAbility{ get{ return WeaponAbility.MortalStrike; } } 

public override int AosStrengthReq{ get{ return 30; } } 
public override int AosMinDamage{ get{ return 16; } } 
public override int AosMaxDamage{ get{ return 18; } } 
public override int AosSpeed{ get{ return 25; } } 

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

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

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



[Constructable] 
public OrcishBow() 
{ 
Hue = 0x497; 
//WeaponAttributes.HitDispel = 50; 
//Attributes.AttackChance = 10; 
Attributes.WeaponDamage = 25; 
Name = "Orcish Bow"; 
Slayer = SlayerName.Repond;
} 

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

public OrcishBow( Serial serial ) : base( serial ) 
{ 
} 

public override void Serialize( GenericWriter writer ) 
{ 
base.Serialize( writer ); 

writer.Write( (int) 0 ); 
} 

public override void Deserialize(GenericReader reader) 
{ 
base.Deserialize( reader ); 

int version = reader.ReadInt(); 
} 
} 
}
kev2000 is offline   Reply With Quote
Old 07-05-2004, 06:55 PM   #2 (permalink)
Account Terminated
 
Join Date: Sep 2002
Age: 26
Posts: 3,846
Send a message via ICQ to Phantom Send a message via AIM to Phantom Send a message via MSN to Phantom
Default

You need to updat the following method due to changes in the code.

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

Fine the update syntax in BaseWeapon.cs
Phantom is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5