IanSmellios

Member
I am trying to use Tresdni's PvM Points and it all works except the board resets when the server resets. Can I change that somewhere?

Thanks
IanE
 
Could you please upload or post the code in code tags so we can see what you are working with, Thanks.
 
haha Sorry about that. here is my toppvmplayersboard.cs
Code:
using System;
using Server;
using Server.Gumps;
using Server.Engines.XmlSpawner2;

namespace Server.Items
{
    [Flipable( 0x1E5E, 0x1E5F )]
    public class TopPvmPlayersBoard : Item
  {

        public TopPvmPlayersBoard( Serial serial ) : base( serial )
        {
        }

        [Constructable]
        public TopPvmPlayersBoard() : base( 0x1e5e )
        {
            Movable = false;
            Name = "Top PvM Players Board";
        }
       
        public override void OnDoubleClick( Mobile from )
        {

            from.SendGump( new XmlPvmPoints.TopPvmPlayersGump( XmlAttach.FindAttachment(from,typeof(XmlPvmPoints)) as XmlPvmPoints) );

        }
       
        public override void Serialize( GenericWriter writer )
        {
            base.Serialize( writer );
            writer.Write( (int) 0 ); // version

        }

        public override void Deserialize( GenericReader reader )
        {
            base.Deserialize( reader );

            int version = reader.ReadInt();

        }
    }
}

Let me know if you need anything else.

Thanks
 
Just wanted to throw this out there, though I'm sure Tresdni will have a solution when he logs on.
http://craftuo.com/threads/xml-pvm-points.386/

Also the code you posted is nothing more then an item, which when double clicked displays a gump.
Sorry to be so gloom but it's not possible to help with just that.
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back