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

Fixed SA Imbuing Resources Dropping

Discussion in 'Archived Bug Reports' started by Omni, Feb 22, 2014.

  1. Omni
    Offline

    Omni Member

    Joined:
    Dec 22, 2013
    Messages:
    165
    Likes Received:
    24
    Ok as per Osi Renowned don't actually drop Imbuing Resources.

    Info Here http://www.uoguide.com/Fire_Daemon_Renowned

    Servuo FireDaemonRenowned.cs

    Code (C#):
    1. this.PackItem(new EssencePassion());
    2.         }
    3.  
    4.         public FireDaemonRenowned(Serial serial)
    5.             : base(serial)
    6.         {
    Osi actually uses regions within the dungeons to drop the resources.
    This means that in certain regions the resources will drop in certain regions dispite being the same mobile.

    Example

    http://www.uoguide.com/Fire_Daemon

    Code (C#):
    1. using System;
    2. using Server.Items;
    3.  
    4. namespace Server.Mobiles
    5. {
    6.     [CorpseName("an fire daemon corpse")]
    7.     public class FireDaemon : BaseCreature
    8.     {
    9.         [Constructable]
    10.         public FireDaemon()
    11.             : base(AIType.AI_Mage, FightMode.Closest, 10, 1, 0.2, 0.4)
    12.         {
    13.             this.Name = "an fire daemon";
    14.             this.Body = 40;//correct body value
    15.             this.BaseSoundID = 0x47D;
    16.  
    17.             this.SetStr(549, 1199);
    18.             this.SetDex(136, 206);
    19.             this.SetInt(202, 336);
    20.  
    21.             this.SetHits(1111, 1478);
    22.  
    23.             this.SetDamage(22, 29);
    24.  
    25.             this.SetDamageType(ResistanceType.Physical, 50);
    26.             this.SetDamageType(ResistanceType.Fire, 25);
    27.             this.SetDamageType(ResistanceType.Energy, 25);
    28.  
    29.             this.SetResistance(ResistanceType.Physical, 48, 93);
    30.             this.SetResistance(ResistanceType.Fire, 60, 100);
    31.             this.SetResistance(ResistanceType.Cold, -8, 57);
    32.             this.SetResistance(ResistanceType.Poison, 30, 100);
    33.             this.SetResistance(ResistanceType.Energy, 37, 50);
    34.  
    35.             this.SetSkill(SkillName.MagicResist, 98.1, 132.6);
    36.             this.SetSkill(SkillName.Tactics, 86.9, 95.5);
    37.             this.SetSkill(SkillName.Wrestling, 42.2, 98.8);
    38.             this.SetSkill(SkillName.Magery, 97.1, 100.8);
    39.             this.SetSkill(SkillName.EvalInt, 91.1, 91.8);
    40.             this.SetSkill(SkillName.Meditation, 45.4, 94.1);
    41.  
    42.             this.Fame = 7000;
    43.             this.Karma = -10000;
    44.  
    45.             this.VirtualArmor = 55;
    46.         }
    47.  
    48.         public FireDaemon(Serial serial)
    49.             : base(serial)
    50.         {
    51.         }
    52.  
    53.         public override Poison PoisonImmune
    54.         {
    55.             get
    56.             {
    57.                 return Poison.Deadly;
    58.             }
    59.         }
    60.         public override WeaponAbility GetWeaponAbility()
    61.         {
    62.             return WeaponAbility.ConcussionBlow;
    63.         }
    64.  
    65.         public override void GenerateLoot()
    66.         {
    67.             this.AddLoot(LootPack.Average, 2);
    68.         }
    69.  
    70.         public override void OnDeath(Container c)
    71.         {
    72.             base.OnDeath(c);
    73.             Region reg = Region.Find(c.GetWorldLocation(), c.Map);
    74.             if (1.0 > Utility.RandomDouble() && reg.Name == "Fire Temple Ruins")
    75.             {
    76.               if (Utility.RandomDouble() < 0.6)
    77.                 c.DropItem(new EssenceOrder());
    78.                 if (Utility.RandomDouble() < 0.6)              
    79.                 c.DropItem(new DaemonClaw());
    80.                 }
    81.             }
    82.        
    83.         public override void Serialize(GenericWriter writer)
    84.         {
    85.             base.Serialize(writer);
    86.             writer.Write((int)0);
    87.         }
    88.  
    89.         public override void Deserialize(GenericReader reader)
    90.         {
    91.             base.Deserialize(reader);
    92.             int version = reader.ReadInt();
    93.         }
    94.     }
    95. }
    This is only a test code but its a example of how it works.

    In Data Regions.xml

    Find
    Code (C#):
    1. <region type="StygianAbyssRegion" priority="50" name="Waterfall Point">
    2.   <rect x="635" y="2862" width="96" height="64" />
    3.   <go x="661" y="2894" z="39" />
    4.   </region>
    5.  
    Below Add

    Code (C#):
    1. <region />
    2. - <region type="StygianAbyssRegion" priority="50" name="Fire Temple Ruins">
    3.   <rune name="Fire Temple Ruins" />
    4.   <rect x="510" y="736" width="44" height="37" />
    5.   <go x="526" y="766" z="-92" />
    6.   </region>
    7.  
    As i said early this is only a bit of test code but it does work..

    Ill look into a more final version of this once i add all of the regions.
    Ill also look at what happens when the same mobile is used in more than 1 area (Fireant)

    I also notice that it has the wrong body value should be this.Body = 40; instead of this.Body = 0x310;
     
    • Two Thumbs Up Two Thumbs Up x 2
    • Like Like x 1
  2. RedBeard
    Offline

    RedBeard Active Member

    Joined:
    May 19, 2013
    Messages:
    365
    Likes Received:
    72
    I do like this idea, plus the defined regions is always a good thing.
     
  3. Omni
    Offline

    Omni Member

    Joined:
    Dec 22, 2013
    Messages:
    165
    Likes Received:
    24
    This way is actually correct if you was trying to make it 100% osi like..

    I am not that good with Regions etc that why i thought i'd release this code incase anyone want to finish this project off for me lol
     
  4. RedBeard
    Offline

    RedBeard Active Member

    Joined:
    May 19, 2013
    Messages:
    365
    Likes Received:
    72
    Here are the Stygian Abyss Dungeon Regions. They can be added to the end of Region.Xml.

    All regions tested.

    Code (C#):
    1.  
    2. <region type="StygianAbyssRegion" priority="50" name="Abyssal Lair">
    3.   <rect x="931" y="314" width="100" height="140" />
    4.   <go x="985" y="366" z="-11" />
    5.   </region>
    6.   <region type="StygianAbyssRegion" priority="50" name="Cavern of the Discarded">
    7.   <rect x="887" y="475" width="113" height="100"/>
    8.   <rect x="926" y="533" width="45" height="20" />
    9.   <rect x="928" y="543" width="42" height="30"/>
    10.   <rect x="929" y="536" width="41" height="28" />
    11.   <rect x="936" y="559" width="36" height="14" />
    12.   <rect x="938" y="541" width="20" height="31" />
    13.   <rect x="961" y="527" width="22" height="32" />
    14.   <go x="912" y="501" z="-12" />
    15.   </region>
    16.   <region type="StygianAbyssRegion" priority="50" name="Chamber of Virtue">
    17.   <rect x="739" y="465" width="21" height="21" />
    18.   <go x="747" y="474" z="-17" />
    19.   </region>
    20.   <region type="StygianAbyssRegion" priority="50" name="Crimson Veins">
    21.   <rect x="931" y="135" width="65" height="65" />
    22.   <go x="974" y="164" z="-11" />
    23.   </region>
    24.   <region type="StygianAbyssRegion" priority="50" name="Enslaved Goblins">
    25.   <rect x="538" y="806" width="75" height="50" />
    26.   <rect x="539" y="790" width="75" height="50" />
    27.   <rect x="553" y="791" width="60" height="50" />
    28.   <rect x="560" y="796" width="21" height="21" />
    29.   <rect x="570" y="773" width="43" height="84" />
    30.   <rect x="571" y="788" width="25" height="25" />
    31.   <go x="581" y="815" z="-45" />
    32.   </region>
    33.   <region type="StygianAbyssRegion" priority="50" name="Fairy Dragon Lair">
    34.   <rect x="849" y="254" width="67" height="43" />
    35.   <go x="888" y="277" z="3" />
    36.   </region>
    37.   <region type="StygianAbyssRegion" priority="50" name="Fire Temple Ruins">
    38.   <rect x="474" y="766" width="89" height="23" />
    39.   <rect x="485" y="760" width="68" height="29" />
    40.   <rect x="495" y="750" width="65" height="29" />
    41.   <rect x="506" y="750" width="66" height="32" />
    42.   <rect x="520" y="739" width="64" height="32" />
    43.   <go x="519" y="765" z="-92" />
    44.   </region>
    45.   <region type="StygianAbyssRegion" priority="50" name="Fractured City">
    46.   <rect x="664" y="439" width="67" height="88" />
    47.   <rect x="726" y="505" width="45" height="22" />
    48.   <rect x="712" y="402" width="108" height="58" />
    49.   <rect x="720" y="504" width="26" height="23" />
    50.   <rect x="771" y="460" width="39" height="58" />
    51.   <rect x="808" y="480" width="12" height="32" />
    52.   <go x="780" y="445" z="-15" />
    53.   </region>
    54.   <region type="StygianAbyssRegion" priority="50" name="Lands of the Lich">
    55.   <rect x="499" y="575" width="71" height="120" />
    56.   <rect x="554" y="600" width="74" height="42" />
    57.   <go x="538" y="656" z="8" />
    58.   </region>
    59.   <region type="StygianAbyssRegion" priority="50" name="Lava Caldera">
    60.   <rect x="553" y="860" width="86" height="88" />
    61.   <go x="587" y="895" z="-73" />
    62.   </region>
    63.   <region type="StygianAbyssRegion" priority="50" name="Passage of Tears">
    64.   <rect x="638" y="530" width="100" height="105" />
    65.   <go x="685" y="579" z="-15" />
    66.   </region>
    67.   <region type="StygianAbyssRegion" priority="50" name="Secret Garden">
    68.   <rect x="413" y="678" width="76" height="71" />
    69.   <go x="462" y="719" z="22" />
    70.   </region>
    71.   <region type="StygianAbyssRegion" priority="50" name="Serpents Lair">
    72.   <rect x="681" y="679" width="168" height="111" />
    73.   <rect x="703" y="656" width="147" height="133" />
    74.   <rect x="785" y="640" width="65" height="135" />
    75.   <go x="711" y="720" z="-11" />
    76.   </region>
    77.   <region type="StygianAbyssRegion" priority="50" name="Silver Sapling">
    78.   <rect x="311" y="582" width="68" height="68" />
    79.   <go x="341" y="619" z="26" />
    80.   </region>
    81. <region type="StygianAbyssRegion"priority="50" name="Skeletal Dragon">
    82. <rect x="643"y="809"width="55"height="63" />
    83. <go x="675"y="828"z="-109" />
    84. </region>
    85.   <region type="StygianAbyssRegion" priority="50" name="Sutek the Mage">
    86.   <rect x="901" y="574" width="53" height="40" />
    87.   <go x="924" y="595" z="-14" />
    88.   </region>
    89.  
    [Updated]
    Added Skeletal Dragon Region
     

    Attached Files:

    #4 RedBeard, Feb 24, 2014
    Last edited: Feb 25, 2014
    • Two Thumbs Up Two Thumbs Up x 4
  5. Omni
    Offline

    Omni Member

    Joined:
    Dec 22, 2013
    Messages:
    165
    Likes Received:
    24
    Sweet Thanks Redbeard..

    Ill get to work on updating all the mobiles so they drop it regional like the firedaemon above..
     
  6. Mr Garrison
    Offline

    Mr Garrison Member

    Joined:
    Jul 24, 2014
    Messages:
    43
    Likes Received:
    3
    I Copied this from :
    http://uo2.stratics.com/skill-guides/skills-and-professions/imbuing/imbuing-ingredients-table
    the only drop rates listed are the ones for the boura as Milva so kindly posted :)
    but these are where the imbuing ingredients are supposed to drop and from what they are supposed to drop, still testing which ones dont drop but it seems most monsters dont drop anything they are supposed to and the essences drop everywhere instead of only in ter mur. I seen Omni noticed this and started to work on it, just trying to relight the fire.

    http://www.servuo.com/threads/sa-imbuing-resources-dropping.870/


    Imbuing Ingredients Table
    Armor PropertiesBasic IngredientsHigh Intensity Ingredients & Source
    Hit Point RegenEssenceTourmalineSeed of RenewalCavern of the Discarded Ratmen & 5% of Harvested Plant Seeds
    Mana RegenEssenceSapphireSeed of RenewalCavern of the Discarded Ratmen & 5% of Harvested Plant Seeds
    Stamina RegenEssenceDiamondSeed of RenewalCavern of the Discarded Ratmen & 5% of Harvested Plant Seeds
    Hit Point IncreaseEssenceRubyLuminescent FungiLumberjack
    Mana IncreaseEssenceSapphireLuminescent FungiLumberjack
    Stamina IncreaseEssenceDiamondLuminescent FungiLumberjack
    LuckResidueCitrineChaga MushroomTomb of Kings Cave Area, Paths to Primeval Lich, Abyssal Infernal Champ Spawns
    Night SightResidueTourmalineBottle of IchorWolf Spider, Trapdoor Spider, Sentinel Spider
    Reflect Physical DamageResidueCitrineReflective Wolf EyeClan Scratch Savage Wolf, Leather Wolves
    Lower Mana CostFragmentTourmalineEssence of OrderFire Temple Ruins mini-champ (South of Silver Sapling)
    Lower Reagent CostResidueAmberFaery DustFairy Dragons and Secret Garden mini-champ (Silver Sapling Area)
    Mage Armor Removed: Armor can be converted to and from Mage Armor, subject to the armor not having more than four properties or not being an artifact. by paying a Mage guild master 250,000 gold. Has an imbuing weight of zero.
    Physical ResistResidueDiamondBoura PeltAll Boura Types (Highland Boura 100%)
    Fire ResistResidueRubyBoura PeltAll Boura Types (Highland Boura 100%)
    Cold ResistResidueSapphireBoura PeltAll Boura Types (Highland Boura 100%)
    Poison ResistResidueEmeraldBoura PeltAll Boura Types (Highland Boura 100%)
    Energy ResistResidueAmethystBoura PeltAll Boura Types (Highland Boura 100%)
    Weapon Properties
    Damage IncreaseEssenceCitrineCrystal ShardsCavern of the Discarded mini-champ, Lumberjacking in Ter-Mur
    Defense Chance Increase (melee)FragmentTourmalineEssence of SingularityPassage of Tears mini-champ
    DCI (Ranged) (1-25)FragmentTourmalineBrilliant AmberLumberjack, Cavern of the Discard Chieftains
    Hit Chance Increase(melee)FragmentAmberEssence of PrecisionCrimson Veins mini-champ
    HCI (Ranged) (1-25)FragmentAmberLuminescent
    Fungi
    Lumberjack, Cavern of the Discard Chieftains
    Swing Speed IncreaseFragmentTourmalineEssence of ControlEnslaved Goblin mini-champ
    Luck(melee)ResidueCitrineChaga MushroomTomb of Kings Cave Area, Paths to Primeval Lich, Abyssal Infernal Champ Spawns
    Luck (Ranged) (1-120)EssenceCitrineChaga MushroomTomb of Kings Cave Area, Paths to Primeval Lich, Abyssal Infernal Champ Spawns
    Use Best Weapon SkillEssenceAmberDelicate ScalesCavern of the Discarded Ratmen, Fishing for S.O.S’
    Faster CastingFragmentRubyEssence of AchievementAbyssal Lair Entrance mini-champ
    Mage WeaponEssenceEmeraldArcanic Rune StoneCavern of the Discarded Ratmen, Tinker Craftable
    Spell ChannelingResidueDiamondSilver Snake Skin“Silver Serpent” (Tomb of Kings)
    Balanced +FragmentAmberEssence of BalanceCavern of the Discarded Ratmen
    Velocity +FragmentTourmalineEssence of DirectionLands of the Lich mini-champ
    Hit Lower DefenseEssenceTourmalineParasitic PlantLumberjack, Cavern of the Discard Chieftains
    Hit Lower AttackEssenceEmeraldParasitic PlantLumberjack, Cavern of the Discard Chieftains
    Hit Life LeechResidueRubyVoid OrbVoid Creatures, Ter Mur, Unbound Energy Vortex
    Hit Mana LeechResidueSapphireVoid OrbVoid Creatures, Ter Mur, Unbound Energy Vortex
    Hit Stamina LeechResidueDiamondVoid OrbVoid Creatures, Ter Mur, Unbound Energy Vortex
    Hit DispelResidueAmberSlith TongueSlith
    Hit FireballEssenceRubyFire RubyMining, Clay Golem
    Hit HarmEssenceEmeraldParasitic PlantLumberjack, Cavern of the Discard Chieftains
    Hit LightningFragmentAmethystEssence of PassionLava Caldera mini-champ
    Hit Magic ArrowFragmentAmberEssence of FeelingSecret Garden mini-champ
    Hit Physical AreaResidueDiamondRaptor TeethRaptor
    Hit Fire AreaResidueRubyRaptor TeethRaptor
    Hit Cold AreaResidueSapphireRaptor TeethRaptor
    Hit Poison AreaResidueEmeraldRaptor TeethRaptor
    Hit Energy AreaResidueAmethystRaptor TeethRaptor
    Physical Resist(melee)ResidueDiamondBoura PeltAll Boura Types (Highland Boura 100%)
    Fire Resist(melee)ResidueRubyBoura PeltAll Boura Types (Highland Boura 100%)
    Cold Resist(melee)ResidueSapphireBoura PeltAll Boura Types (Highland Boura 100%)
    Poison Resist(melee)ResidueEmeraldBoura PeltAll Boura Types (Highland Boura 100%)
    Energy Resist(melee)ResidueAmethystBoura PeltAll Boura Types (Highland Boura 100%)
    Physical Resist (Ranged)(0-18)EssenceDiamondBoura PeltAll Boura Types (Highland Boura 100%)
    Fire Resist(Ranged)(0-18)EssenceRubyBoura PeltAll Boura Types (Highland Boura 100%)
    Cold Resist(Ranged)(0-18)EssenceSapphireBoura PeltAll Boura Types (Highland Boura 100%)
    Poison Resist(Ranged)(0-18)EssenceEmeraldBoura PeltAll Boura Types (Highland Boura 100%)
    Energy Resist(Ranged)(0-18)EssenceAmethystBoura PeltAll Boura Types (Highland Boura 100%)
    Arachnid SlayerFragmentRubySpider CarapaceNavery Night-eyes,Trapdoor Spider
    Demon SlayerFragmentRubyDaemon ClawFire Daemon
    Elemental SlayerFragmentRubyVial of VitriolAcid Slugs, Unbound Energy Vortex
    Repond SlayerFragmentRubyGoblin BloodGoblin
    Reptile SlayerFragmentRubyLava Serpent CrustLava Elemental
    Undead SlayerFragmentRubyUndying FleshUndead Guardians, Niporallem
    Dragon SlayerEssenceEmeraldWhite PearlFishing, Cavern of the Discard Chieftains
    *All Other SlayersResidueEmeraldWhite PearlFishing, Cavern of the Discard Chieftains
    Jewelry Properties
    Damage IncreaseEssenceCitrineCrystal ShardsCavern of the Discarded mini-champ, Lumberjacking in Ter-Mur
    Defense Chance IncreaseFragmentTourmalineEssence of SingularityPassage of tears mini-champ
    Hit Chance IncreaseFragmentAmberEssence of PrecisionCrimson Veins mini-champ
    Dexterity BonusEssenceRubyBlue DiamondMining, Cavern of the Discard Chieftains, Clay Golem
    Intelligence BonusEssenceTourmalineTurquoiseMining, Cavern of the Discard Chieftains, Clay Golem
    Strength BonusEssenceDiamondFire RubyMining, Cavern of the Discard Chieftains, Clay Golem
    Faster CastFragmentRubyEssence of AchievementAbyssal Lair Entrance mini-champ
    Faster Cast RecoveryFragmentAmethystEssence of DilegenceStygian Dragon Lair Entrance mini-champ
    Lower Mana CostFragmentTourmalineEssence of OrderFire Temple Ruins mini-champ
    Lower Reagent CostResidueAmberFaery DustFairy Dragon
    Spell Damage IncreaseEssenceEmeraldCrystal ShardsCavern of the Discarded mini-champ, Lumberjacking in Ter-Mur
    Enhance PotionsEssenceCitrineCrushed GlassCavern of the Discarded mini-champ, Blacksmith Craftable
    LuckResidueCitrineChaga MushroomTomb of Kings Cave Area, Paths to Primeval Lich, Abyssal Infernal Champ Spawns
    Night SightResidueTourmalineBottle of IchorWolf Spider, Trapdoor Spider, Sentinel Spider, Alchemy Craftable
    Physical ResistResidueDiamondBoura PeltAll Boura Types
    Fire ResistResidueRubyBoura PeltAll Boura Types
    Cold ResistResidueSapphireBoura PeltAll Boura Types
    Poison ResistResidueEmeraldBoura PeltAll Boura Types
    Energy ResistResidueAmethystBoura PeltAll Boura Types
    Plus SkillEssenceStar SapphireCrystalline BlackrockCavern of the Discarded mini-champ, Mining in Ter-Mur, Ore Elementals (any type)
    Shield Properties
    DurabilityEssenceDiamondPowdered IronCavern of the Discarded mini-champ, Blacksmith Craftable
    Lower RequirementsEssenceAmethystElven FletchingCavern of the Discarded mini-champ, Bowyer Craftable
    Spell ChannelingResidueDiamondSilver Snake Skin“Silver Serpent” (Tomb of Kings)
    Faster CastFragmentRubyEssence of AchievementAbyssal Lair mini-champ
    Defense Chance IncreaseFragmentTourmalineEssence of SingularityPassage of Tears mini-champ
    Reflect Physical DamageResidueCitrineReflective Wolf EyeClan Scratch Savage Wolf, Leather Wolves
     
  7. Mr Garrison
    Offline

    Mr Garrison Member

    Joined:
    Jul 24, 2014
    Messages:
    43
    Likes Received:
    3
    im a bit new to this whole scripting thing but i had an idea... could it be possible to add an "if" variable in to the basecreature.cs script so that IF they are in ter mur they have a chance to drop? or on the items themselves like IF it is in this region and if it is a silver serpent then it has a chance to drop silversnakeskin?
    like i said im new to this and dont know much but i figured it couldnt hurt.
     
  8. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,104
    Likes Received:
    117
    It can not be done in the item itself, but it can be done on the actual creature script by region or map. Would not be a good idea to do it in basecreature as all creatures inherit basecreature and would therefore require a ton of IF statements to catch the right circumstances (region and type of creature). As much as its a pain, it will be best to do this by the individual creatures unless there are any resources that drop on ALL creatures.

    Either way, I will wait and see if anyone has some of this done and if not I will start to tackle it.
     
  9. Mr Garrison
    Offline

    Mr Garrison Member

    Joined:
    Jul 24, 2014
    Messages:
    43
    Likes Received:
    3
    Omni started and i already have the bouras done. lol and see like i said im a bit new to this, but i thought it might work but i guess not. Let me know if you need anything!
     
  10. Ravenwolfe
    Offline

    Moderator ServUO Developer

    Joined:
    Sep 7, 2013
    Messages:
    1,104
    Likes Received:
    117
    Fixed in Repo, thanks Omni.
     
Similar Threads: Imbuing Resources
Forum Title Date
Archived Bug Reports Imbuing resist is different from OSI Jul 23, 2017
Archived Bug Reports Max total imbuing weight of double handed weapons should be 600 Jun 2, 2017
Archived Bug Reports Imbuing weight goes up for 100% elemental damage weapons Mar 5, 2017
Archived Bug Reports Imbuing bug after last patch Feb 10, 2017
Archived Bug Reports Imbuing wrong quest reward Feb 5, 2017
Archived Bug Reports Imbuing system counts Brittle as item property Feb 3, 2017
Script Support Imbuing max properties and weight Jan 31, 2017