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

Jaacar quest, no barrel.

Discussion in 'Custom Releases' started by Hammerhand, Jan 13, 2014.

  1. Hammerhand
    Offline

    Hammerhand Active Member

    Joined:
    Mar 26, 2013
    Messages:
    827
    Likes Received:
    80
    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. 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:

Similar Threads: Jaacar quest
Forum Title Date
Archived Bug Reports Jaacar quest, no barrel. Jan 13, 2014
General Discussion Hi all just a general question Dec 5, 2017
Quests Viking Quest Nov 18, 2017
Script Support RunUO Quests Nov 17, 2017
New Join Forum So this is a newcomer question Nov 9, 2017
Script Support Custom Quest Newbie Quests Nov 7, 2017
Script Support Advanced Archer script questions Nov 7, 2017