APPROVED: Smelting ore by doubleclick

Locked
User avatar
+Colibri
Administrator
Posts: 3958
Joined: Sat Feb 25, 2006 4:08 pm
Location: static void Main

APPROVED: Smelting ore by doubleclick

Post by +Colibri »

(From my todo list)

When doubleclicking a pile of ore, it first checks your backpack (recursively). If a MobileForge is not found, it also checks GetItemsInRange( range = 1 ), and if there are any items with the ItemID of a forge (there's at least 6 of them i think), or even better, if any of those items is a ForgeAddonComponent (not sure exactly how it's called), it deletes the ore and adds the ingots in the pack.

Note: can only smelt ore if it's this.Movable or this.ChildOf( from.Backpack ). Also be careful when smelting over 30k ore at once since that would produce stacks of iron greater than 60k.
+Colibri, Administrator of UO Excelsior Shard

Don't know what the purpose of your life is? Well then make something up! ;)
(Old Colibrian proverb)
Velius
Journeyman Scribe
Posts: 21
Joined: Sat Sep 05, 2009 1:24 pm
Contact:

Re: APPROVED: Smelting ore by doubleclick

Post by Velius »

so you mean to remove the target cursor altogether?
"No man can hold what the darkness can sow" -Dax Riggs-
kellsar wolf
Journeyman Scribe
Posts: 29
Joined: Tue Dec 01, 2009 4:08 pm
Location: ~KnowsLocation

Re: APPROVED: Smelting ore by doubleclick

Post by kellsar wolf »

Instructions are included with the file, if you choose to edit an existing Ore.cs file.
The file is downloaded, as modified and can replace any RunUO 1.0 distro Ore.cs file.

Ore.cs

--
When you double-click a ore pile with a Mobile Forge in your bag or if a forge is near you, it automatically smelts the ore.
If you are not near a forge, you must target a forge within range.

If implemented, i will have to redo my razor macro 8)
Locked