|
||
|
|||||||
| Server Support on Windows Get (and give) support on general questions related to the RunUO server itself. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Forum Expert
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
|
I've been reading through the threads and I've seen solutions for fixing the poison on hit for infectious weapons and even modifications for shards using AoS that allows any weapon to be poisoned; but I have not found an answer to my latest problem. I'm running pre AoS and what is happening is when I poison my weapon, it displays the amount of charges on the weapon like normal, but upon striking nothing EVER happens. I've used a poisoned weapon from fencing skill levels 0-80 so far on animals/humanoids and not once was poison inflicted.
Does anyone know if there is some code I need to modify to solve this issue? Thanks in advance ![]() |
|
|
|
|
|
#2 (permalink) |
|
Forum Novice
Join Date: Jun 2006
Location: Somewhere very cold in the winter...
Age: 28
Posts: 600
|
The closest fix we could find was on our classic(ish) poisoning system.
[Run UO 2.0 RC1] Elkaiozen's New Guild and Classic Poisoning Hope that helps, because I couldn't find a solution along the lines of it just out-right working. |
|
|
|
|
|
#3 (permalink) | |
|
Forum Expert
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
|
I saw that thread before
but when I saw..Quote:
|
|
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
|
After implementing your poisoning.cs & BaseWeapon.cs files this is what I get
Code:
RunUO - [www.runuo.com] Version 2.0, Build 2357.32527
Core: Running on .NET Framework Version 2.0.50727
Scripts: Compiling C# scripts...failed (1 errors, 0 warnings)
Errors:
+ Skills/Poisoning.cs:
CS0101: Line 8: The namespace 'Server.SkillHandlers' already contains a defi
nition for 'Poisoning'
CS0102: Line 24: The type 'Server.SkillHandlers.Poisoning' already contains
a definition for 'InternalTargetPoison'
CS0102: Line 43: The type 'Server.SkillHandlers.Poisoning.InternalTargetPois
on' already contains a definition for 'InternalTarget'
CS0102: Line 96: The type 'Server.SkillHandlers.Poisoning.InternalTargetPois
on.InternalTarget' already contains a definition for 'InternalTimer'
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
|
|
|
|
|
|
#5 (permalink) |
|
Forum Novice
Join Date: May 2005
Age: 27
Posts: 118
|
Here is the Fix Basesword.cs script you will need to add the bottom code to your other base weapons
Code:
using System;
using Server;
using Server.Items;
using Server.Targets;
namespace Server.Items
{
public abstract class BaseSword : BaseMeleeWeapon
{
public override SkillName DefSkill{ get{ return SkillName.Swords; } }
public override WeaponType DefType{ get{ return WeaponType.Slashing; } }
public override WeaponAnimation DefAnimation{ get{ return WeaponAnimation.Slash1H; } }
public BaseSword( int itemID ) : base( itemID )
{
}
public BaseSword( 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();
}
public override void OnDoubleClick( Mobile from )
{
from.SendLocalizedMessage( 1010018 ); // What do you want to use this item on?
from.Target = new BladedItemTarget( this );
}
public override void OnHit( Mobile attacker, Mobile defender, double damageBonus )
{
base.OnHit( attacker, defender, damageBonus );
if ( !Core.AOS && Poison != null && PoisonCharges > 0 )
{
--PoisonCharges;
if ( Utility.RandomDouble() >= 0.5 ) // 50% chance to poison
defender.ApplyPoison( attacker, Poison );
}
}
}
}
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|