Mobile Help

ion

Active Member
Mar 20, 2013
41
1
35
Shard Name
Bane
I have these cannon guards that are supposed to work as guards for the city system. I have them where they can be spawned in game now however they do not attack or do anything. When a player attacks the cannon guard the server crashes. Any help would be greatly appreciated. Here is the script and server crash log.
C#:
ServUO Version 0.5, Build 7217.34674
Operating System: Microsoft Windows NT 6.2.9200.0
.NET Framework: 4.0.30319.42000
Time: 11/29/2019 1:53:34 AM
Mobiles: 43089
Items: 227559
Exception:
System.NotImplementedException: The method or operation is not implemented.
   at Server.Mobiles.BaseCannonGuard.FireCanon(IDamageable Combatant)
   at Server.Mobiles.BaseCannonGuard.OnCombatantChange()
   at Server.Mobile.set_Combatant(IDamageable value)
   at Server.Mobiles.BaseCreature.set_Combatant(IDamageable value)
   at Server.Mobile.AggressiveAction(Mobile aggressor, Boolean criminal)
   at Server.Mobiles.BaseCreature.AggressiveAction(Mobile aggressor, Boolean criminal)
   at Server.Mobile.DoHarmful(IDamageable target, Boolean indirect)
   at Server.Mobiles.PlayerMobile.DoHarmful(IDamageable damageable, Boolean indirect)
   at Server.Mobile.set_Combatant(IDamageable value)
   at Server.Mobile.Attack(IDamageable e)
   at Server.Network.PacketHandlers.AttackReq(NetState state, PacketReader pvSrc)
   at Server.Network.MessagePump.HandleReceive(NetState ns)
   at Server.Network.MessagePump.Slice()
   at Server.Core.Main(String[] args)
 

Attachments

The Real Keith

Well-Known Member
Feb 5, 2015
93
28
uorevealed.com
Shard Name
UO Revealed
Donate
Donate money to this user
Your fire cannon event throws an error on purpose it looks like.

Line 30
C#:
        private void FireCanon(IDamageable Combatant)
        {
            throw new NotImplementedException();
        }
Additionally, your Combatant remains unused, so when it's called later on line 97, it can't do anything I think

C#:
FireCanon(Combatant);