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

Not A Bug Jaacar quest, no barrel.

Discussion in 'Archived Bug Reports' started by Hammerhand, Jan 13, 2014.

  1. Hammerhand
    Offline

    Hammerhand Active Member

    Joined:
    Mar 26, 2013
    Messages:
    795
    Likes Received:
    77
    The recipe quest (Bad Company) part works fine. The 2nd quest (A Tangled Web) does not. Jaacar is apparently supposed to give the player a barrel to fill, but there is nothing there. No barrel, no *places barrel in players pack*, nothing.. From publish 54
    Code (C#):
    1. /*                                                            .---.
    2. /  .  \
    3. |\_/|  |
    4. |  |  /|
    5. .----------------------------------------------------------------' |
    6. /  .-.                                                              |
    7. |  /  \        Contribute To The Orbsydia SA Project              |
    8. | |\_.  |                                                            |
    9. |\|  | /|                        By Lotar84                          |
    10. | `---' |                                                            |
    11. |      |      (Orbanised by Orb SA Core Development Team)          |
    12. |      |                                                          /
    13. |      |----------------------------------------------------------'
    14. \      |
    15. \    /
    16. `---'
    17. */
    18. using System;
    19. using Server.Items;
    20. using Server.Mobiles;
    21.  
    22. namespace Server.Engines.Quests
    23. {
    24.     public class ATangledWeb : BaseQuest
    25.     {
    26.         public ATangledWeb()
    27.             : base()
    28.         {
    29.             this.AddObjective(new BloodCreaturesObjective(typeof(IBloodCreature), "blood creatures", 12));
    30.  
    31.             this.AddReward(new BaseReward(typeof(LargeTreasureBag), 1072706));
    32.         }
    33.  
    34.         /*A Tangled Web*/
    35.         public override object Title
    36.         {
    37.             get
    38.             {
    39.                 return 1095032;
    40.             }
    41.         }
    42.         /*Kill Bloodworms and Blood Elementals to fill Jaacar's barrel.
    43.         Return to Jaacar with the filled barrel for your reward
    44.         Will friend help Jaacar with small errand for big friend?
    45.         Jaacar need big barrel full of blood.  Can friend do that?
    46.         Best place to get blood is blood elementals and bloodworms nearby.
    47.         If you do, Jaacar give to you special present!  More special than favorite recipe!*/
    48.         public override object Description
    49.         {
    50.             get
    51.             {
    52.                 return 1095034;
    53.             }
    54.         }
    55.         /*Filling barrel not gross!  Filling barrel helps friend!  You think and then come back and help.  Yes, friend is big help!*/
    56.         public override object Refuse
    57.         {
    58.             get
    59.             {
    60.                 return 1095035;
    61.             }
    62.         }
    63.         /*Jaacar need barrel filled all the way to the top!  Good friend, go fill the barrel for Jaacar.*/
    64.         public override object Uncomplete
    65.         {
    66.             get
    67.             {
    68.                 return 1095036;
    69.             }
    70.         }
    71.         public override void OnCompleted()
    72.         {
    73.             this.Owner.SendLocalizedMessage(1095038, null, 0x23); // Jaacar's barrel is completely full. Return to Jaacar for your reward.                          
    74.             this.Owner.PlaySound(this.CompleteSound);
    75.         }
    76.  
    77.         public override void Serialize(GenericWriter writer)
    78.         {
    79.             base.Serialize(writer);
    80.  
    81.             writer.Write((int)0); // version
    82.         }
    83.  
    84.         public override void Deserialize(GenericReader reader)
    85.         {
    86.             base.Deserialize(reader);
    87.  
    88.             int version = reader.ReadInt();
    89.         }
    90.  
    91.         private class BloodCreaturesObjective : SlayObjective
    92.         {
    93.             public BloodCreaturesObjective(Type creature, string name, int amount)
    94.                 : base(creature, name, amount)
    95.             {
    96.             }
    97.  
    98.             public override void OnKill(Mobile killed)
    99.             {
    100.                 base.OnKill(killed);
    101.  
    102.                 if (!this.Completed)
    103.                     this.Quest.Owner.SendLocalizedMessage(1095037); // Blood from the creature goes into Jaacar’s barrel.
    104.             }
    105.  
    106.             public override void Serialize(GenericWriter writer)
    107.             {
    108.                 base.Serialize(writer);
    109.  
    110.                 writer.Write((int)0); // version
    111.             }
    112.  
    113.             public override void Deserialize(GenericReader reader)
    114.             {
    115.                 base.Deserialize(reader);
    116.  
    117.                 int version = reader.ReadInt();
    118.             }
    119.         }
    120.     }
    121. }
     
  2. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,536
    Likes Received:
    389
    I'm not seeing any numbers which actually give a barrel plus you would think a code would be needed or cliloc for mobile.AddToBackpack and one to remove the item when the quest is finished? The barrel would need a method where the blood could be added to it?
     
  3. Hammerhand
    Offline

    Hammerhand Active Member

    Joined:
    Mar 26, 2013
    Messages:
    795
    Likes Received:
    77
    Not exactly sure what I did, but its working fine now. The barrel isnt physical, just assumed. The mobs are now turning blue when attacked & automagically add the blood to the assumed barrel.. the large bag of treasure however..... is crap. lol wimpy weapons & armor. lol But when I tried it earlier, it wouldnt work at all. Mobs didnt turn blue, just the standard attacked hue. I had just finished adding the entire SA quest system to a RunUO 2.3 server that I previously added the ML quests system into.
     
  4. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,536
    Likes Received:
    389
    Awesome problem solved :) Never heard of this one before when there is no actual quest item but it is there any ways :)
     
  5. RedBeard
    Offline

    RedBeard Active Member

    Joined:
    May 19, 2013
    Messages:
    365
    Likes Received:
    72
    Here is what I have:

    Code (C#):
    1.   public ATangledWeb()
    2.             : base()
    3.         {
    4.             // AddObjective(new BloodCreaturesObjective(typeof(IBloodCreature), "blood creatures", 12));    //Not used
    5.             AddObjective(new ObtainObjective(typeof(FullBarrelOfBlood), "Full Barrel Of Blood", 1, 0xFAE));   //Obtain Objective
    6.  
    7.             AddReward(new BaseReward(typeof(LargeTreasureBag), 1072706));
    8.         }
    9.  
    10.         public override void OnAccept()
    11.         {
    12.             base.OnAccept();
    13.  
    14.             Owner.AddToBackpack(new BloodBarrel());   //adds the empty barrel to PM's pack
    15.         }
    16.  
    17.         public override void OnCompleted()
    18.         {
    19.             Owner.SendLocalizedMessage(1095038, null, 0x23); // Jaacar's barrel is completely full. Return to Jaacar for your reward.                      
    20.             Owner.PlaySound(CompleteSound);
    21.         }
    I don't use the IBloodCreature portion but instead a real barrel to turn in. Look at my Blood Barrel script for the method in collecting the blood

    I use the same method for the acid jar quest also. I believe it should be obtain objective, otherwise there wouldn't be barrels or jars involved.
     

    Attached Files:

    #5 RedBeard, Jan 13, 2014
    Last edited: Jan 13, 2014
    • Like Like x 1
    • Two Thumbs Up Two Thumbs Up x 1
  6. Milva
    Offline

    Admin Moderator

    Joined:
    Mar 3, 2013
    Messages:
    3,536
    Likes Received:
    389
    RedBeard I would say having this quest set up the way you have it would be much much better. Any one who accepts this quest would be looking for a barrel in their pack to fill :) Thanks for this information!
     
  7. Hank
    Offline

    Hank Active Member

    Joined:
    Nov 14, 2013
    Messages:
    972
    Likes Received:
    152
    I'd page staff if i didn't find a barrel! Thanks for the hard work RedBeard.
     
  8. Toriad
    Offline

    Toriad Shard Owner

    Joined:
    Mar 4, 2013
    Messages:
    86
    Likes Received:
    35
    So I'm going to mark this as Not a bug since it is OSI behavior, however I copied the post with the problem and the post with the release to the Custom Releases forum, so that people can use this cool feature. Good job RedBeard.
     
  9. ruaduck
    Offline

    ruaduck Member

    Joined:
    Feb 15, 2014
    Messages:
    74
    Likes Received:
    3
    Confirmed on OSI. There is no barrel that is given. The quest objective says slay 12 Bloodworms or Blood Elementals. So it is a virtual barrel. You will never see it in your pack. I agree the text of the quest is a bit misleading, but you do it without the use of a barrel.

    Information was given to Toriad in IRC.
     
Similar Threads: Jaacar quest
Forum Title Date
Custom Releases Jaacar quest, no barrel. Jan 13, 2014
Archived Bug Reports Professional Fish Quests Reward Thursday at 9:12 AM
Script Support Questions about levelable/customizable weapons Tuesday at 6:09 PM
General Discussion Thanksgiving 2009 Quest Oct 6, 2017
Script Support Request of a extra feature in Scripts/Multis/BaseCamp.cs Sep 21, 2017
Script Support Armor Activator Script Question Sep 13, 2017
General Discussion VPS Questions Sep 13, 2017