Go Back   RunUO - Ultima Online Emulation > RunUO > Server Support on Windows

Server Support on Windows Get (and give) support on general questions related to the RunUO server itself.

Reply
 
Thread Tools Display Modes
Old 04-08-2007, 02:23 AM   #1 (permalink)
Forum Expert
 
killsom3thing's Avatar
 
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
Question My latest issue - poison

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
killsom3thing is offline   Reply With Quote
Old 04-08-2007, 02:37 AM   #2 (permalink)
Forum Novice
 
Makaar's Avatar
 
Join Date: Jun 2006
Location: Somewhere very cold in the winter...
Age: 28
Posts: 600
Default

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.
Makaar is offline   Reply With Quote
Old 04-08-2007, 03:35 AM   #3 (permalink)
Forum Expert
 
killsom3thing's Avatar
 
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
Default

I saw that thread before but when I saw..

Quote:
Originally Posted by Makaar View Post
FINAL NOTE:

This system is NOT designed for people who have turned off all of the current expansions, as most of this should work by default for you. This is designed for people who have newer expansions but want older features like the guild system and classic poisoning.
I didn't think it would apply to my shard because I have AoS turned off, but I can try it
killsom3thing is offline   Reply With Quote
Old 04-08-2007, 03:57 AM   #4 (permalink)
Forum Expert
 
killsom3thing's Avatar
 
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
Default

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.
killsom3thing is offline   Reply With Quote
Old 04-08-2007, 04:08 AM   #5 (permalink)
Forum Novice
 
Join Date: May 2005
Age: 27
Posts: 118
Default

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 );
			}
		}
	}
}
EvilGrin369 is offline   Reply With Quote
Old 04-08-2007, 12:55 PM   #6 (permalink)
Forum Expert
 
killsom3thing's Avatar
 
Join Date: Feb 2006
Location: Colorado
Age: 20
Posts: 310
Default

Thanks a ton evil, your solution worked ^^

and thanks for trying Makaar, but your solution didnt work and I had to delete those files.

+karma
killsom3thing 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