Hank

Lost Alchemy - Unique custom potions.

Lost Alchemy By: Tru from runuo forums

Tru said:
Only 2 files were altered BasePotion.cs and Reagent.cs (in the Core folder).
Ancient Mortar and Pestle acts like the Potion Pestle.
I believe I set the skill level to almost GM (editable of course)

The Potions Include:
Asayres Shrink Potion (actually includes the whole system as I changed it to BasePotion)
Tobyjug's Mana Potion (Tobyjug's Mana Potions..also a submission from the...

Read more about this resource...
 
Last edited by a moderator:
Added scripts, crash report:
--------------------------------------------------------------------------------
ServUO - [https://www.servuo.com] Version 0.5, Build 6396.27340
Core: Optimizing for 8 64-bit processors
RandomImpl: CSPRandom (Software)
Core: Loading config...
Scripts: Compiling C# scripts...Failed with: 7 errors, 3 warnings
Warnings:
+ Multis/Boats/BaseBoat.cs:
CS0105: Line 11: The using directive for 'Server.Network' appeared previously in this namespace
+ Customs/[ServUO.com]-LostAlchemy/LostAlchemy/DurabilityTarget.cs:
CS0168: Line 32: The variable 'number' is declared but never used
+ Customs/[ServUO.com]-LostAlchemy/LostAlchemy/RepairTarget.cs:
CS0168: Line 32: The variable 'number' is declared but never used
Errors:
+ Spells/Base/Spell.cs:
CS0117: Line 992: 'Server.Items.PotionEffect' does not contain a definition for 'Urali'
+ Items/Equipment/Talismans/BaseTalisman.cs:
CS0117: Line 1529: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab'
CS0117: Line 1530: 'Server.Items.PotionEffect' does not contain a definition for 'Urali'
+ Items/Consumables/EodonPotions.cs:
CS1061: Line 59: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab' and no extension method 'Barrab' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 60: 'Server.Items.PotionEffect' does not contain a definition for 'Jukari' and no extension method 'Jukari' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 61: 'Server.Items.PotionEffect' does not contain a definition for 'Kurak' and no extension method 'Kurak' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 62: 'Server.Items.PotionEffect' does not contain a definition for 'Barako' and no extension method 'Barako' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 63: 'Server.Items.PotionEffect' does not contain a definition for 'Urali' and no extension method 'Urali' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 64: 'Server.Items.PotionEffect' does not contain a definition for 'Sakkhra' and no extension method 'Sakkhra' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 139: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab' and no extension method 'Barrab' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 141: 'Server.Items.PotionEffect' does not contain a definition for 'Jukari' and no extension method 'Jukari' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 143: 'Server.Items.PotionEffect' does not contain a definition for 'Kurak' and no extension method 'Kurak' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 145: 'Server.Items.PotionEffect' does not contain a definition for 'Barako' and no extension method 'Barako' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 147: 'Server.Items.PotionEffect' does not contain a definition for 'Urali' and no extension method 'Urali' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 149: 'Server.Items.PotionEffect' does not contain a definition for 'Sakkhra' and no extension method 'Sakkhra' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 158: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab' and no extension method 'Barrab' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 160: 'Server.Items.PotionEffect' does not contain a definition for 'Jukari' and no extension method 'Jukari' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 162: 'Server.Items.PotionEffect' does not contain a definition for 'Kurak' and no extension method 'Kurak' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 164: 'Server.Items.PotionEffect' does not contain a definition for 'Barako' and no extension method 'Barako' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 166: 'Server.Items.PotionEffect' does not contain a definition for 'Urali' and no extension method 'Urali' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS1061: Line 168: 'Server.Items.PotionEffect' does not contain a definition for 'Sakkhra' and no extension method 'Sakkhra' accepting a first argument of type 'Server.Items.PotionEffect' could be found (are you missing a using directive or an assembly reference?)
CS0117: Line 295: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab'
CS0117: Line 321: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab'
CS0117: Line 331: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab'
CS0117: Line 364: 'Server.Items.PotionEffect' does not contain a definition for 'Jukari'
CS0117: Line 382: 'Server.Items.PotionEffect' does not contain a definition for 'Jukari'
CS0117: Line 417: 'Server.Items.PotionEffect' does not contain a definition for 'Kurak'
CS0117: Line 448: 'Server.Items.PotionEffect' does not contain a definition for 'Barako'
CS0117: Line 494: 'Server.Items.PotionEffect' does not contain a definition for 'Urali'
CS0117: Line 520: 'Server.Items.PotionEffect' does not contain a definition for 'Urali'
CS0117: Line 553: 'Server.Items.PotionEffect' does not contain a definition for 'Sakkhra'
+ Items/Consumables/ExplodingTarPotion.cs:
CS0117: Line 13: 'Server.Items.PotionEffect' does not contain a definition for 'ExplodingTarPotion'
+ Services/Expansions/Time Of Legends/Myrmidex Invasion/BattleRegion.cs:
CS0117: Line 58: 'Server.Items.PotionEffect' does not contain a definition for 'Kurak'
+ Spells/Mysticism/SpellDefinitions/PurgeMagicSpell.cs:
CS0117: Line 125: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab'
CS0117: Line 129: 'Server.Items.PotionEffect' does not contain a definition for 'Urali'
CS0117: Line 190: 'Server.Items.PotionEffect' does not contain a definition for 'Barrab'
CS0117: Line 193: 'Server.Items.PotionEffect' does not contain a definition for 'Urali'
+ Spells/Reagent.cs:
CS0847: Line 9: An array initializer of length '23' is expected
Scripts: One or more scripts failed to compile or no script files were found.
- Press return to exit, or R to try again.
 
Download works fine for me emptak123, and TwilightRaven it seems like you're version of the emulator doesn't include ToL. ToL comes with a bunch of (not orking last i tried) potions, specifically Barrab, Urali, Kurak, Sakkhra, are all the ones added in ToL. If you don't have ToL you would have to remove every reference to those potions (unless those potions are the one that are being added), at which case it is likely that this plugin attempts to add those potions, and your install having those potions all ready are what are causing the issue.
 
I am trying to get the mana potions to go into kegs. If you try it with no core changes, the potions go into the keg, with no label, and come out Night Sight (the default in the PotionKeg script). I went down to the bottom of the script (line 324) in the "public BasePotion FillBottle()" portion and added this to the list:

#region Mana Potions
case PotionEffect.Mana:
return new ManaPotion();

case PotionEffect.TotalMana:
return new TotalManaPotion();
#endregion

Now, the potion goes into the keg, and comes out in a bottle, labeled correctly. But the keg label still does not work. It just says "Missing String". I looked at the top of the script (line 50) and found a list entry for newer potions, but not the old original potions. They look like like clicloc numbers maybe? I tried just adding labels, and of course it cannot be that easy. Do I need to UOFiddler some clicloc labels? I would really rather not... And where do the old potion kegs get their labels? (strength, night sight etc)

PotionKeg.cs labels:
        public override int LabelNumber
        {
            get
            {
                if (m_Held > 0 && (int)m_Type >= (int)PotionEffect.Conflagration)
                {
                    switch (m_Type)
                    {
                        case PotionEffect.Parasitic: return 1080069;
                        case PotionEffect.Darkglow: return 1080070;
                        case PotionEffect.Invisibility: return 1080071;
                        case PotionEffect.Conflagration: return 1072658;
                        case PotionEffect.ConflagrationGreater: return 1072659;
                        case PotionEffect.ConfusionBlast: return 1072662;
                        case PotionEffect.ConfusionBlastGreater: return 1072663;
                       /* #region Mana Potion
                        case PotionEffect.TotalMana: return TotalManaPotion;
                        case Potioneffect.Mana: return ManaPotion;
                        #endregion */
                    }
                }

                return (m_Held > 0 ? 1041620 + (int)m_Type : 1041641);
            }
        }
 
Last edited:
I am getting an error while trying to load the Lost Alchemy. I made the core changes, to the reagent, and basepotion scripts.

C#:
Errors:
 + Customs/_Testing/LostAlchemy/DefLostAlchemy.cs:
    CS0115: Line 86: 'DefLostAlchemy.CanCraft(Mobile, BaseTool, Type)': no suitable method found to override
    CS0534: Line 6: 'DefLostAlchemy' does not implement inherited abstract member 'CraftSystem.CanCraft(Mobile, ITool, Type)'
Scripts: One or more scripts failed to compile or no script files were found.
 - Press return to exit, or R to try again.
 
@Tukaram

After a few additional edits to the reagent.cs and some other tweaks I got it going, but I did hit same problem you did. I changed the whole "cancraft" in the deflostaclhemy to this:



public override int CanCraft( Mobile from, ITool tool, Type itemType )
{
int num = 0;

if (tool == null || tool.Deleted || tool.UsesRemaining <= 0)
return 1044038; // You have worn out your tool!
else if (!tool.CheckAccessible(from, ref num))
return num; // The tool must be on your person to use.

return 0;
}
 

Active Shards

Donations

Total amount
$0.00
Goal
$1,000.00
Back