1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XmlPvMPoints board resetting

Discussion in 'Script Support' started by IanE, Jan 16, 2014.

  1. IanE
    Offline

    IanE Member

    Joined:
    Dec 27, 2013
    Messages:
    220
    Likes Received:
    16
    Publish Number:
    54
    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
     
  2. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    Could you please upload or post the code in code tags so we can see what you are working with, Thanks.
     
  3. IanE
    Offline

    IanE Member

    Joined:
    Dec 27, 2013
    Messages:
    220
    Likes Received:
    16
    haha Sorry about that. here is my toppvmplayersboard.cs
    Code (C#):
    1. using System;
    2. using Server;
    3. using Server.Gumps;
    4. using Server.Engines.XmlSpawner2;
    5.  
    6. namespace Server.Items
    7. {
    8.     [Flipable( 0x1E5E, 0x1E5F )]
    9.     public class TopPvmPlayersBoard : Item
    10.   {
    11.  
    12.         public TopPvmPlayersBoard( Serial serial ) : base( serial )
    13.         {
    14.         }
    15.  
    16.         [Constructable]
    17.         public TopPvmPlayersBoard() : base( 0x1e5e )
    18.         {
    19.             Movable = false;
    20.             Name = "Top PvM Players Board";
    21.         }
    22.        
    23.         public override void OnDoubleClick( Mobile from )
    24.         {
    25.  
    26.             from.SendGump( new XmlPvmPoints.TopPvmPlayersGump( XmlAttach.FindAttachment(from,typeof(XmlPvmPoints)) as XmlPvmPoints) );
    27.  
    28.         }
    29.        
    30.         public override void Serialize( GenericWriter writer )
    31.         {
    32.             base.Serialize( writer );
    33.             writer.Write( (int) 0 ); // version
    34.  
    35.         }
    36.  
    37.         public override void Deserialize( GenericReader reader )
    38.         {
    39.             base.Deserialize( reader );
    40.  
    41.             int version = reader.ReadInt();
    42.  
    43.         }
    44.     }
    45. }
    46.  
    Let me know if you need anything else.

    Thanks
     
  4. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    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.
     
  5. IanE
    Offline

    IanE Member

    Joined:
    Dec 27, 2013
    Messages:
    220
    Likes Received:
    16
    That is the system I am using, I have done everything it says to do also.
     
Similar Threads: XmlPvMPoints board
Forum Title Date
Archived Bug Reports Enhanced Client Bulletin board bug Aug 12, 2017
Custom Releases Auction board Jun 27, 2017
Script Support Crafting with Custom Boards Jun 25, 2017
Documentation Set Crafting to Count and allow Use of Logs and Boards May 18, 2017
Script Support BulletinBoard and PlayerProfile text hues on dark Apr 1, 2017
Discussion XmlPoints and Top Players Board Feb 9, 2017
Script Support Bulletin board that shows playervendor location Nov 9, 2016