Argalep

Member
Dragon Peacemaking Server Crash ..

Code:
Exception:
System.InvalidCastException: Unable to cast object of type 'Server.Mobiles.PlayerMobile' to type 'Server.Mobiles.BaseCreature'.
   at Server.SkillHandlers.Peacemaking.InternalTarget.OnTarget(Mobile from, Object targeted)
   at Server.Targeting.Target.Invoke(Mobile from, Object targeted) in ...\Server\Targeting\Target.cs:line 269
   at Server.Network.PacketHandlers.TargetResponse(NetState state, PacketReader pvSrc) in ..\Server\Network\PacketHandlers.cs:line 1401
   at Server.Network.MessagePump.HandleReceive(NetState ns) in ..\Server\Network\MessagePump.cs:line 314
   at Server.Network.MessagePump.Slice() in ...\Server\Network\MessagePump.cs:line 121
   at Server.Core.Main(String[] args) in ...Server\Main.cs:line 624
 
Last edited:
Do you know the situation causing the crash? At a glance from what you've provided, somewhere in the Peacemaking script a PlayerMobile is being cast (cast like being used as, not like spell cast) onto a BaseCreature object, which can't be done (since it crashed). Maybe post your peacemaking script, as it looks like the error is happening in there somewhere. :)
 
base servuo peacemaking.cs

Code:
QuestHelper.CheckCalm((PlayerMobile)from, (BaseCreature)targ);

I think the problem is that
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back