APPROVED: Smelting ore by doubleclick
Posted: Tue Sep 23, 2008 3:33 pm
(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.
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.