jayates

Member
I awoke to this server crash today. can someone make lite of it?
Server Crash Report
===================

RunUO Version 0.5, Build 6221.20320
Operating System: Microsoft Windows NT 6.2.9200.0
.NET Framework: 4.0.30319.42000
Time: 5/8/2018 2:54:29 AM
Mobiles: 7715
Items: 266534
Exception:
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.ParalyzingBlow.OnBeforeSwing(Mobile attacker, Mobile defender)
at Server.Items.BaseWeapon.OnBeforeSwing(Mobile attacker, IDamageable damageable)
at Server.Mobile.CombatTimer.OnTick() in D:\Users\6Core\Downloads\Dragons-Legacy-Alpha-1.0a-master\Dragons-Legacy-Alpha-1.0a-master\Server\Mobile.cs:line 2101
at Server.Timer.Slice() in D:\Users\6Core\Downloads\Dragons-Legacy-Alpha-1.0a-master\Dragons-Legacy-Alpha-1.0a-master\Server\Timer.cs:line 393
at Server.Core.Main(String[] args) in D:\Users\6Core\Downloads\Dragons-Legacy-Alpha-1.0a-master\Dragons-Legacy-Alpha-1.0a-master\Server\Main.cs:line 576
 
Can you post that method? Else, according to ServUO code, the only way that happens if attacker is null, which is near impossible.
 
Can you post that method? Else, according to ServUO code, the only way that happens if attacker is null, which is near impossible.
From ParalyzingBlow?

public override bool OnBeforeSwing(Mobile attacker, Mobile defender)
{
if (defender.Paralyzed)
{
attacker.SendLocalizedMessage(1061923); // The target is already frozen.
return false;
}

return true;
}

From BaseWeapon?

public virtual void OnBeforeSwing(Mobile attacker, IDamageable damageable)
{
Mobile defender = damageable as Mobile;

WeaponAbility a = WeaponAbility.GetCurrentAbility(attacker);

if (a != null && (!a.OnBeforeSwing(attacker, defender) || SkillMasterySpell.CancelWeaponAbility(attacker)))
{
WeaponAbility.ClearCurrentAbility(attacker);
}

SpecialMove move = SpecialMove.GetCurrentMove(attacker);

if (move != null && (!move.OnBeforeSwing(attacker, defender) || SkillMasterySpell.CancelSpecialMove(attacker)))
{
SpecialMove.ClearCurrentMove(attacker);
}
}
 
Last edited:

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back