Sorry for bumping old threads, just had to test this, and i see that if the character doesn't have for example boots on, and he tried to upgrade the boots, it gives error at this line:
Code:
DatabaseItem Di = (DatabaseItem)Database.DatabaseItems[IMan.ToID()];
And in the CMD window: System.NullReferenceException:
Code:
Object reference not set to an instance of an object. at NewestCOServer.PacketHandling.NPCDialog.Handle(GameClient GC, Byte[] Data, UInt32 NPC, Byte Control)