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

Problem merging Treasuremap.cs

Discussion in 'Script Support' started by RedBeard, Feb 4, 2014.

  1. RedBeard
    Offline

    RedBeard Active Member

    Joined:
    May 19, 2013
    Messages:
    365
    Likes Received:
    72
    Publish Number:
    54
    This worked on ForkUo. Not sure what it is telling me to do.

    Errors:
    + Items/Maps/TreasureMap.cs:
    CS0029: Line 647: Cannot implicitly convert type 'long' to 'System.DateTime'
    CS0029: Line 648: Cannot implicitly convert type 'long' to 'System.DateTime'
    CS0029: Line 649: Cannot implicitly convert type 'long' to 'System.DateTime'
    CS0029: Line 650: Cannot implicitly convert type 'long' to 'System.DateTime'
    CS0019: Line 672: Operator '!=' cannot be applied to operands of type 'Syste
    m.DateTime' and 'long'
    CS0019: Line 672: Operator '!=' cannot be applied to operands of type 'Syste
    m.DateTime' and 'long'
    CS0019: Line 672: Operator '!=' cannot be applied to operands of type 'Syste
    m.DateTime' and 'long'
    CS0019: Line 678: Operator '!=' cannot be applied to operands of type 'Syste
    m.DateTime' and 'long'

    Code (C#):
    1.  
    2. private class DigTimer : Timer
    3.   {
    4.   private Mobile m_From;
    5.   private TreasureMap m_TreasureMap;
    6.   private Point3D m_Location;
    7.   private Map m_Map;
    8.   private TreasureChestDirt m_Dirt1;
    9.   private TreasureChestDirt m_Dirt2;
    10.   private TreasureMapChest m_Chest;
    11.   private int m_Count;
    12.   private DateTime m_NextSkillTime;
    13.   private DateTime m_NextSpellTime;
    14.   private DateTime m_NextActionTime;
    15.   private DateTime m_LastMoveTime;
    16. public DigTimer( Mobile from, TreasureMap treasureMap, Point3D location, Map map ) : base( TimeSpan.Zero, TimeSpan.FromSeconds( 1.0 ) )
    17.             {
    18.                 m_From = from;
    19.                 m_TreasureMap = treasureMap;
    20.                 m_Location = location;
    21.                 m_Map = map;
    22.                 m_NextSkillTime = from.NextSkillTime;        //line 647
    23.                 m_NextSpellTime = from.NextSpellTime;
    24.                 m_NextActionTime = from.NextActionTime;
    25.                 m_LastMoveTime = from.LastMoveTime;
    26.                 Priority = TimerPriority.TenMS;
    27.             }
    28.             private void Terminate()
    29.             {
    30.                 Stop();
    31.                 m_From.EndAction( typeof( TreasureMap ) );
    32.                 if ( m_Chest != null )
    33.                     m_Chest.Delete();
    34.                 if ( m_Dirt1 != null )
    35.                 {
    36.                     m_Dirt1.Delete();
    37.                     m_Dirt2.Delete();
    38.                 }
    39.             }
    40.             protected override void OnTick()
    41.             {
    42.                 if ( m_NextSkillTime != m_From.NextSkillTime || m_NextSpellTime !=  m_From.NextSpellTime || m_NextActionTime != m_From.NextActionTime ) //line 672
    43.                 {
    44.                     Terminate();
    45.                     return;
    46.                 }
    47.                 if ( m_LastMoveTime != m_From.LastMoveTime )
    48.                 {
    49.                     m_From.SendLocalizedMessage( 503023 ); // You cannot move around while digging up treasure. You will need to start digging anew.
    50.                     Terminate();
    51.                     return;
    52.                 }
    53.  
     

    Attached Files:

    #1 RedBeard, Feb 4, 2014
    Last edited: Feb 4, 2014
  2. RedBeard
    Offline

    RedBeard Active Member

    Joined:
    May 19, 2013
    Messages:
    365
    Likes Received:
    72
    This is the fix For OSI treasure Hunting [Treasuremap.cs]
    Code (C#):
    1.  
    2. private long m_NextSkillTime;
    3. private long m_NextSpellTime;
    4. private long m_NextActionTime;
    5. private long m_LastMoveTime;
    6.  
     
    • Like Like x 1
Similar Threads: Problem merging
Forum Title Date
Bug Reports Problems with Trophy Dec 4, 2017
Bug Reports customize house problem Dec 2, 2017
General Discussion Problem with statics Nov 23, 2017
Script Support Mount problems Nov 10, 2017
Script Support Two problems Nov 5, 2017
3rd Party Support UOFiddler problems Nov 5, 2017
Archived Bug Reports MessageLocalized problem Oct 6, 2017