ScriptUO

Scripting Resources & Utilities => OEUO => OpenEUO Scripts => Topic started by: xetic on November 25, 2012, 10:22:50 PM

Title: [OpenEUO] Automated Runic Reforging
Post by: xetic on November 25, 2012, 10:22:50 PM
Didn't see anything like this anywhere so wrote it. Should work fine. I've tested it as many ways as I can think of.

NOTE: I was drunk while debugging this script so I make no guarantees.

After crafting whatever you want reforged, use your runic and target an item and set up the reforging properties as you want and close the menu then hit play.

Script will attempt to merge all runics of low charge. This process is a bit slow but works great.
If you have a salvage bag, it will sort the junk items into it based on the filters / filter method you specify.
Read below or look at the code if you want to know more.

Code: [Select]
     About:
      Script Name: Reforged
      Author: xetic
      Version: 1.0
      Shard: OSI Compatible - Free Shards Status Unknown
      Revision Date: 11/26/2012
      Purpose: Automatically reforge all items of selected type.
 
Code: [Select]
   
     Setup:
      1. Craft some items and leave them inside your backpack, (no sub containers)
      2. Use the runic tool(s) you will be using for reforging and set the options however you like.
           NOTE: If using more than one type of runic, you must set this up on each.
      3. Close the reforge gump.
      4. Press play!
Code: [Select]
 
     Settings:
      1. craftSkill =  "Carpenter", "Fletching", "Smithing" or "Tailoring"
           Only one skill may be chosen.
      2. reforgeUses = How many charges each reforge attempt costs.
      3. reforgeType = ItemType to be reforged
           If you know the itemType enter the number in place of nil.
           If you don't know the type, you will be prompted to target it.
      4. requirementsAllOrNothing = Item Filter All or Nothing Settings
           The following setting can be: 'true', 'false' or 'nil'
             true  = All conditions in itemRequirements must be met or item gets moved to salvage bag
             false = If any of the properties in itemRequirements are found, the item is left in backpack
             nil   = No items are moved from character backpack  
           NOTES:
                 If no salvage bag is found, items aren't moved.
                 Salvage bag is must be used manually, the script won't salvage items in it.    
      5. itemRequirements = Required mods and values needed to keep an item.
           Example:
             itemRequirements = {
                 {["Name"] = "Luck", ["Value"] = 130},
                 {["Name"] = "Mana Increase", ["Value"] = 10},                    
                 {["Name"] = "Stamina Increase", ["Value"] = 8}                
             }  


Let me know if you have any problems or suggestions for improvements.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: Endless Night on November 26, 2012, 10:17:31 AM
u can post your script now... unrestricted.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: xetic on November 26, 2012, 12:08:27 PM
Thanks, script uploaded.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: Ultima on November 26, 2012, 04:32:52 PM
Two thumbs up Xetic!

Thankyou very much for sharing this will come in very handy. 8)

This was the first OEUO script I've used.

Very nice indeed!

Now I can see what all the hubbub was about regarding OEUO.

Title: Re: [OpenEUO] Automated Runic Reforging
Post by: xetic on November 26, 2012, 05:47:14 PM
Two thumbs up Xetic!
Thankyou very much for sharing this will come in very handy. 8)
[..]
Very nice indeed!

Thanks.

This was the first OEUO script I've used.
[..]
Now I can see what all the hubbub was about regarding OEUO.

I'm surprised more scripters haven't moved over to oeuo yet considering how much more powerful Lua really is. It does take some time to get used to, and I'm still trying to figure out multi-threading with GUIs but it still stomps EUOX.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: TrailMyx on November 26, 2012, 05:50:50 PM
That's the problem; most of the mega-scripters are very heavy into GUIs, and OEUO just hasn't panned out very well for us chickens.  ;)

I can't deny the lure of OEUO; I was once enchanted with it as well.   But I uncovered serious issues with it and those issues prevented me from really feeling comfortable with it.  I needs my UIs.

I think Ximan has figured out some of those issues, but it would be nice for the core to be fixed and not have to rely on patches from outside.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: addicted on December 12, 2012, 01:51:51 PM
Thank you, very usefull script.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: KaliOfLS on December 12, 2012, 02:14:18 PM
That's the problem; most of the mega-scripters are very heavy into GUIs, and OEUO just hasn't panned out very well for us chickens.  ;)

I can't deny the lure of OEUO; I was once enchanted with it as well.   But I uncovered serious issues with it and those issues prevented me from really feeling comfortable with it.  I needs my UIs.

I think Ximan has figured out some of those issues, but it would be nice for the core to be fixed and not have to rely on patches from outside.

Ximan has been an incredible help for me in learning openEUO.  I am starting a new approach to script menus. 
One script simply is a set up script that creates a parameter file.  The second script is the actual guts that loads the save file.  I've written incredibly stable scripts that the menus work for hours and hours, and then I randomly get an overflow even though the menu has been closed and Freed appropriately.  This way, the actual running script never created a delphi TObject.  The last I read though, Cheffe was actively trying to hunt down solutions to the instability of the Object.dll
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: Endless Night on January 24, 2013, 08:32:33 AM
Script move to approved library
Thank you for your submission.


If you feel the script is in the wrong section please send me a pm.
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: madatu on February 11, 2013, 06:18:24 AM
This worked great, saved me alot of clicking.  TY
Title: Re: [OpenEUO] Automated Runic Reforging
Post by: childery on March 02, 2016, 05:57:43 AM
This script is exactly what I have been looking for! It almost worked perfectly right out of the bag. I'm able to get it to go through the motions right up until it actually needs to reforge. It will open the reforge menu, but it won't reforge the item. I've tried adjusting the 'click' location of the gump, but can't seem to get it to work. If I manually click the reforge button, it will reforge the item, but the script will go no further. Any help would be greatly appreciated.