I'm trying to use a Challenge System (http://www.runuo.com/forums/custom-scri ... 1-1-a.html) with SunUO 0.5.0.
I have no error when the scripts are compiling, but when I challenge my friend (using two player accounts) the script ChallengeStone.cs crash around line 315:
c.StatMods.Clear();
Using runuo I get no errors. This is the exception generated by SunUO:
- Code: Select all
2007-09-14 00:59:26,887 FATAL Exception disarmed in gump response of Server.Gumps.FinalGump
System.NullReferenceException: Object reference not set to an instance of an object.
at Server.Items.ChallengeStone.makeready(Mobile who) in c:\sunuo-0.5.0\Scripts\Misc\PVP\ChallengeStone.cs:line 315
at Server.Gumps.FinalGump.OnResponse(NetState state, RelayInfo info) in c:\sunuo-0.5.0\Scripts\Misc\PVP\FinalGump.cs:line 120
at Server.Network.PacketHandlers.DisplayGumpResponse(NetState state, PacketReader pvSrc) in i:\cygwin\home\max\svn\sunuo\src\Network\PacketHandlers.cs:line 1258
What's wrong?
