ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Crafting => Topic started by: rana70 on August 29, 2009, 01:02:46 PM

Title: OSA Ore Smelt Assistant
Post by: rana70 on August 29, 2009, 01:02:46 PM
Rana's OSA Ore Smelt Assistant
Code: [Select]
;==============================================================================
; Script Name: OSA Ore Smelt Assistant
; Author: Rana
; Version: Check %Ver
; Client Tested with: 6.0.12.x
; EUO version tested with: 1.5 (Build 147)
; Shard OSI / FS: OSI
; Revision Date: 08/14/2009
; Public Release: 02/22/2009
; Thanks to all the testers !
;==============================================================================

Display
(http://brsdjq.blu.livefilestore.com/y1p_ChElYhM5aoUf6BgnXw7Aec8aS6H_yo_5P6DfHr681IaqC7mgd3wA4A3uXhIndAlu9_h65ybhGl7TdDZTci_Kw/Display.jpg)

Example
(http://brsdjq.blu.livefilestore.com/y1pVcXc_NokK4EzV76AuO_IZDaSsxVBQHavkzkVgBrpfgQ6cihELqkgcfP1C_KDqzgJs3Vo430IP_6Jhr5_4z8PMQ/Feature%20Align%20Mining%20Goods.jpg)

Purpose
Assistant to smelt down all your Ore and Count it
you can use a skillbased Mode to get the most Ingots
out of your Ore, or you can select your own SmeltPlan
to use it as a trainer for your Mining Skill.

Features
Move to Stock Container
Align Mining Goods
Fillup 60k Stacks

History
08/14/2009 Version 1.2c
-CHG Updated a few Help Texts

06/15/2009 Version 1.2b
-FIX SETUP Broken Entry of Plan C - Drag Amount  (Reported by _C2_)

03/11/2009 Version 1.2
-ADD SETUP Menu for Container Data
-ADD HELP I hope this will to setup the Script
-FIX Info Display _
-CHG Default Value of the Amount to Smelt to 4 (automatic Smeltplan)

02/25/2009 Version 1.1
-ADD Feature Move to Stock OPTION for Ingots/Ore/Granit/Blackrock
-ADD Featuer Fillup Stacks
-ADD Feature Align Mining Goods
-FIX HideChar was always one

02/23/2009 Version 1.01
-ADD Failsafe Check to ignore Locked Ingots/Ore

Title: Re: OSA Ore Smelt Assistant
Post by: TrailMyx on August 29, 2009, 02:50:05 PM
Rana, I just love your UIs!
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on September 01, 2009, 11:42:37 PM
This is a great Script.   It is teaching me Patience.  As it gets to Verite and Valorite it slows way down and I have to stop myself from smelting those two ore types as one big pile. 

I use my Commodity Box to put all of the Ingot Types in, because after I run this Script, I turn all of the Ingots into Commodity Deeds.  -- I would love to see this go the one step further and after smelting or as it finishes smelting each type of Ore into Ingots, the Script puts the ingots into Deeds... The blank deeds can be kept in the Commodity Deed Box.  What good Miner does not have a Commodity Deed Box?
Title: Re: OSA Ore Smelt Assistant
Post by: rana70 on September 02, 2009, 10:54:09 AM
This is a great Script.   It is teaching me Patience.  As it gets to Verite and Valorite it slows way down and I have to stop myself from smelting those two ore types as one big pile. 

I use my Commodity Box to put all of the Ingot Types in, because after I run this Script, I turn all of the Ingots into Commodity Deeds.  -- I would love to see this go the one step further and after smelting or as it finishes smelting each type of Ore into Ingots, the Script puts the ingots into Deeds... The blank deeds can be kept in the Commodity Deed Box.  What good Miner does not have a Commodity Deed Box?


Hi,
good idea I will get one of those boxes and check it out ...
so far you can just select always the same box to put the ingots into
your green commodity box.

cu
 
Title: Re: OSA Ore Smelt Assistant
Post by: rana70 on September 03, 2009, 08:27:53 PM
Hi to all Miners around,

I started to add the Commodity Box feature and since I never used those
I would like to ask for your opinion.

So far I plan an extra Option Button "Fill Deeds"
(http://brsdjq.blu.livefilestore.com/y1pyfpjkuh67E8O65Z4EuNQpeOLcMb6DSnNE4NmpKsxvh5Pq6WhKeRhV0hGMHIL03TzDXKdY0yHqFlY7PxWEK0Nsrhbp-3jxVqE/Display12d.jpg)

The option will:
-> search your Commodity Box
-> make sure it is in Range (2 Tiles) for Item manipulation
-> Form as many full stacks (60k) of whatever Mining Goods is in there
-> Search Empty Commodity Deeds
-> Load Empty Commodity Deeds with full 60k stacks

My question is now .. what should be done with the filled Deeds ?
Just leave them in the Box ... eg move to a corner position of the box to find them easier
or move them into your backpack ?

Any ideas about this option are very welcome ...

Thx
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on September 03, 2009, 10:53:03 PM
The Commodity Deeds are "Blessed", so they can go into the Miner's backpack without worrying whether they will get lost or not.  I place my unfilled ones in the lower right corner of the box and the filled ones in the lower left corner of the box.  It will hold up to 125 items, but my box does not nearly get that full as I only keep about 25-30 blank deeds in there at a time. 

On the higher ore types (such as Agapite, Verite, and Valorite) and maybe some other ore types, I think you should set them to deed at 10k and 25k increments.  It will take a long time to mine and smelt 60k in Valorite and I like to sell mine in 10k and 25k Ingot Deeds to keep the gold comiing in. 
Title: Re: OSA Ore Smelt Assistant
Post by: Endless Night on September 04, 2009, 07:24:05 AM
I think the deeded Amount should be selectable.  As everyone makes a diff quantity for diff ores.. When i sold then i would be 60k, 10k 5k and 1k... depending on the type and how much of it i had.

Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on September 04, 2009, 09:38:09 AM
That is also a good idea!  Players that do "Bods" often hunger to buy small amounts of Ingots as well (which I price higher than buying a larger quantity) and those that craft armor also want a small amount of certain ingots as well.

Hopefully, since Stygian Abyss is being released on September 8th, that will include the ability to deed Granite.  There probably will be an initial rush to purchase Granite to make some of the new items and weapons.  Currently there is not an easy way to sell Granite other than putting stacks of 100 of each type on a Vender!?

Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on September 07, 2009, 04:32:52 PM
Ran this today after 3 days of mining.  I left all of the values at default.  It is set at skill based and my Miner has 105 with the mining gloves.  Question or Problem I have, is that it has been running for over 1 hour and 53 minutes and it is still going... Down to a little over 2600 of Verite and 2500 Valorite Ore left.  Is this normal?  The script is not stuck in a loop as I see all of the ore levels going down and the backpack is emptying of ingots.  Is this a Script that you run just before you go to sleep at night?  Perhaps I have a setting turned off?

Title: Re: OSA Ore Smelt Assistant
Post by: rana70 on September 07, 2009, 10:30:27 PM
Hi,

this is kind of "normal" because of the amount of Ore I use for the
two highest Oretypes (4).
If you like to speed it up ..
just switch to manual smeltplan and use smeltplan C and
set the amount of ore you like to use each time.

cu
Title: Re: OSA Ore Smelt Assistant
Post by: _C2_ on September 08, 2009, 05:21:12 AM
Hi,

this is kind of "normal" because of the amount of Ore I use for the
two highest Oretypes (4).
If you like to speed it up ..
just switch to manual smeltplan and use smeltplan C and
set the amount of ore you like to use each time.

cu

That still doesn't work for me.. it is like the script resets it  :-[  I didn't have time to figure it out.
Title: Re: OSA Ore Smelt Assistant
Post by: cgeorgemo on September 08, 2009, 05:52:01 AM
Well I don't mind the script slowing down as long as I don't have to do all the clicking to drag piles of 4 myself. I hate losing ore because I fail on the smelt attempt.
The only thing I've found that seems odd is when I use the OSA to organize my blackrock it puts it in a line across the top of the crate instead of in columns and rows like in the picture.....not really that worried about it though.
Title: Re: OSA Ore Smelt Assistant
Post by: cgeorgemo on September 08, 2009, 06:20:54 AM
Would a screen capture of what is happening with the blackrock help? I will post one if you'd like just let me know.
Title: Re: OSA Ore Smelt Assistant
Post by: rana70 on September 08, 2009, 06:58:17 AM
Would a screen capture of what is happening with the blackrock help? I will post one if you'd like just let me know.

Hi,
just post a picture please and let me know the containertype you used ...
I will have a look.
Title: Re: OSA Ore Smelt Assistant
Post by: cgeorgemo on September 08, 2009, 08:23:53 AM
Picture later tonight but I have a feeling you are looking for a code for the container type not the name.
How can I get the info you are needing.
What tool would I use to get the containertype for you?
Is there a script that I can run that will let me click something and tell me the information about that object?
********Edit********
Wow I ask a lot of questions...
Title: Re: OSA Ore Smelt Assistant
Post by: rana70 on September 09, 2009, 05:06:04 AM
Picture later tonight but I have a feeling you are looking for a code for the container type not the name.
How can I get the info you are needing.
What tool would I use to get the containertype for you?
Is there a script that I can run that will let me click something and tell me the information about that object?
********Edit********
Wow I ask a lot of questions...

There are a few ItemType scripts around ....just look into the Libary...
For the BoxType you would just need this:

Code: [Select]
Display Get ID and Type $$ Target your Item/Monster
Set #targcurs 1
Target
Repeat
{
}
Until #TargCurs = 0
FindItem #LTargetID
Display TargetType: #FindType $ TargetID: #LTargetID $

halt
Title: Re: OSA Ore Smelt Assistant
Post by: cgeorgemo on September 10, 2009, 06:09:44 AM
I will get you the info as soon as everything gets patched.
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on October 25, 2009, 02:05:37 PM
Rana,

I have my 'unfilled' Commodity Deeds all ready to go inside my Commodity Deed Box...!   :D

Are you adding Mining Gems, Normal Gems, and Crystalline Blackrock to your Smelt Assistant?
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on December 30, 2009, 05:28:31 PM
Was just wondering how this works if a Gargoyle smelts the Ore as they cannot wear the Mining gloves?  Plus it only currently ids a Human or an Elf...

Title: Re: OSA Ore Smelt Assistant
Post by: NObama on December 30, 2009, 05:42:28 PM
Can't you 'convert' the mining gloves for gargoyle use?  I haven't tried, but I think you can...

 :)
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on December 30, 2009, 05:44:24 PM
I actually tried to alter them to a Gargoyle item and it did not work for me -- any one else have any luck?

Title: Re: OSA Ore Smelt Assistant
Post by: NObama on December 30, 2009, 06:18:44 PM
Let me dig around and see if I can find a pair to try.

 :)

Wait - nevermind.  I don't have a gargoyle.  Only gargs can convert, I believe...were you trying on a garg character?
Title: Re: OSA Ore Smelt Assistant
Post by: _C2_ on December 30, 2009, 06:57:04 PM
I still can not get this to smelt the new amount i set for valorite or verite.  i go to the other menu set it and something resets it in the script to the small default amount every time.
Title: Re: OSA Ore Smelt Assistant
Post by: rana70 on December 30, 2009, 09:54:49 PM
I still can not get this to smelt the new amount i set for valorite or verite.  i go to the other menu set it and something resets it in the script to the small default amount every time.

Hi C2,

I am very sorry that you still have this trouble with my script.
unfortunatly I am clueless right now what causes this trouble for you.

I took a few screenpix to give you an idea how I think it should
save the smelplan setting.
It would be great if you can check it out ..the stored value is
written to the registry and plz keep in mind it is char related !

The last value in the stored *SMELTPLAN String it the amount for type C (given Amount)

(http://590mfg.blu.livefilestore.com/y1pPPgjEGeufvBTqhSEKs-My4IfcwYZVRx8UdnxiaN_XLHCu__fbihc3PzUCnXJbjiVyMLH-aqDgbfgIZBo8JgyIRU8d_CSW4_i/SetupRoutine.jpg)

thx
Title: Re: OSA Ore Smelt Assistant
Post by: _C2_ on December 31, 2009, 09:07:37 AM
cool.. super appreciate the screenies.  I will give it another go soon.  I think I followed those exact steps but maybe i did something diff.  I will also make sure that I had it in the same folder just in case i spaced it.  I am usually good about that stuff.
Title: Re: OSA Ore Smelt Assistant
Post by: NObama on December 31, 2009, 10:38:34 AM
Screenshots FTW.  What a splendid fellow you are to do that!  That's what I call script support.

 :)
Title: Re: OSA Ore Smelt Assistant
Post by: madatu on August 21, 2012, 06:01:19 AM
This is working perfectly. At first when i was trying to set the containers it wasn't giving me an target icon. But when i started the script it took me through a set up and it did give me a target. This worked flawlessly. Thanks for the great script.
Title: Re: OSA Ore Smelt Assistant
Post by: cherrios on October 09, 2012, 01:42:01 PM
Awsome script my fingers thank you
Title: Re: OSA Ore Smelt Assistant
Post by: Nalco on July 06, 2014, 10:57:58 PM
This is this only smelter that I have have used that actually works, and I have tried them all. I just wished I had tried this one first.

Works perfectly on my RunUO shard.

Thanks!!!
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on April 04, 2020, 01:58:29 AM
In the past, I used this script a lot. Now when I try it on an OSI Shard, it immediately crashes the script and the client as soon as I hit setup or an individual menu button. Does anyone still use this script with any luck? Is there a modification that needs to be done according to any new updates?

Title: Re: OSA Ore Smelt Assistant
Post by: Gaderian on April 04, 2020, 03:07:05 AM
It does need an update to the interface for the buttons. Each time a button is selected, it changes the function that was in that button's place with a new button by the same name but with new text.

I have never used it, but just downloaded to see what it looks like. Code looks clean, but there are a lot of places that need modifications. Also for my old eyes, the font needs to be bigger. LOL

I wrote up how to recode for the old logic that used the delete and recreate logic to recreate buttons.

I have only been experiencing the lockup of the UO client that you describe when starting Easyuo after the client has been started. Sometimes it takes me 3 cycles to get easuo and a client working together once it happens. I suspect there is something residual in memory - because every so often I can't clear the issue until I reboot. What you are describing may or may not be related to this script as much as Easyuo behavior under 1.6.334.

Gaderian
Title: Re: OSA Ore Smelt Assistant
Post by: The Ghost on April 04, 2020, 10:46:51 AM
ORACLE,   75% of the script have menu issue, so the first place is to look their.  Alot of build was done using the short cut of just replacing the button or menu,  now we need to delete the old  button and remake it with new value or name.    I will suggest that you start looking a menu build.
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on April 04, 2020, 11:04:08 AM
Thanks, Ghost! It does need a menu to rebuild. Gaderian also has the issue of the font being too small. I have old eyes too.

 
Title: Re: OSA Ore Smelt Assistant
Post by: The Ghost on April 04, 2020, 12:23:19 PM
a base line : Since 10 Apr 2014 ( build 253)  you can expect issue with menu.
Title: Re: OSA Ore Smelt Assistant
Post by: Oracle on April 04, 2020, 12:25:19 PM
For fun....I tried it three times...the third time I restarted laptop and everything afterward and it is working...

Odd, but I will take it...I hate smelting by hand...


Title: Re: OSA Ore Smelt Assistant
Post by: copag on July 21, 2020, 03:45:32 PM
Great  :)