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

Fixed Prism of Light alter issue

Discussion in 'Archived Bug Reports' started by Tasanar, Jul 16, 2017.

  1. Tasanar
    Online

    Platinum Donator

    Joined:
    Oct 16, 2014
    Messages:
    2,353
    Likes Received:
    70
    Code (C#):
    1. public override Type[] Keys
    2.         {
    3.             get
    4.             {
    5.                 return new Type[]
    6.                 {
    7.                     typeof(CrushedCrystals), typeof(BrokenCrystals), typeof(PiecesOfCrystal),
    8.                     typeof(JaggedCrystals), typeof(ScatteredCrystals), typeof(ShatteredCrystals)
    9.                 };
    10.             }
    11.         }
    I need to check which two again but two of these have the wrong color. Their color is supposed to match up to what pillar they go in, black or white. Two of the colors are off. One black one is white, and one white one goes in the black

    Players were turning in the keys and it just reset half way into turning them in. They paged me a few times and I checked it out myself. They are currently doing it right now, after I gave the entrance key.

    Where is the timer in the code? That resets these? I have trouble finding it. PrismOfLightAltar.cs Also where does each pillar decide what crystal it wants?
    SHow.png
     
  2. argalep
    Offline

    argalep Active Member

    Joined:
    Aug 18, 2014
    Messages:
    502
    Likes Received:
    27
    PeerlessAltar.cs

    Code (C#):
    1. public override bool OnDragDrop(Mobile from, Item dropped)
    2.         {
    3.             if (Activated)
    4.             {
    5.                 from.SendLocalizedMessage(1075213); // The master of this realm has already been summoned and is engaged in combat.  Your opportunity will come after he has squashed the current batch of intruders!
    6.                 return false;
    7.             }
    8.  
    9.             if (!IsKey(dropped))
    10.             {
    11.                 from.SendLocalizedMessage(1072682); // This is not the proper key.
    12.                 return false;
    13.             }
    14.  
    15.             if (Items.Count + 1 == Keys.Length)
    16.             {
    17.                 from.SendLocalizedMessage(1072680); // You have been given the key to the boss.
    18.  
    19.                 for (int i = 0; i < KeyCount; i++)
    20.                 {
    21.                     MasterKey key = MasterKey;
    22.  
    23.                     if (key != null)
    24.                     {
    25.                         key.Altar = this;
    26.  
    27.                         if (!from.AddToBackpack(key))
    28.                             key.MoveToWorld(from.Location, from.Map);
    29.  
    30.                         m_MasterKeys.Add(key);
    31.                     }
    32.                 }
    33.  
    34.                 dropped.Delete();
    35.                 ClearContainer();
    36.                 StopKeyTimer();
    37.             }
    38.             else
    39.                 StartTimer(from);
    40.  
    41.             return base.OnDragDrop(from, dropped);
    42.         }
     
  3. Tasanar
    Online

    Platinum Donator

    Joined:
    Oct 16, 2014
    Messages:
    2,353
    Likes Received:
    70
    But where is the actual time saved? Players get confused since the colors do not all match up and it resets on them, thus losing their keys.
     
  4. Dexter_Lexia
    Offline

    Moderator ServUO Developer

    Joined:
    Jul 3, 2014
    Messages:
    1,782
    Likes Received:
    89
    Timer is found in BasePeerlessAltar:

    Code (C#):
    1.  
    2. public virtual void StartTimer(Mobile from)
    3.         {
    4.             if (m_KeyTimer != null)
    5.                 m_KeyTimer.Stop();
    6.  
    7.             m_KeyTimer = Timer.DelayCall(TimeSpan.FromMinutes(1), new TimerStateCallback(KeyTimeout_Callback), from);
    8.         }
     
Similar Threads: Prism Light
Forum Title Date
Archived Bug Reports Arcane Circle - Used to only be level 6 in Prism of Light but now also Britain bank Jul 14, 2017
Archived Bug Reports Prism of Light CrystalFieldTele Oct 28, 2016
Archived Bug Reports Prism of Light Arcane cirlce Sep 14, 2016
Archived Bug Reports PrismaticLenses bug Sep 15, 2016
Archived Bug Reports Big Fish max weight is slightly off. Jul 4, 2017
ServUO Discussion Light cannonballs Jun 29, 2017
Archived Bug Reports Light Cannonballs Jun 26, 2017