ScriptUO
Scripting Resources & Utilities => OpenEUO Scripts => OEUO => Scripting tools => Topic started by: TrailMyx on October 26, 2010, 10:34:38 PM
-
---------------------------------------------------------------
-- Script Name: TrailMyx's CraftMenu control for OEUO
-- Author: TrailMyx
-- Version: v3
-- Shard OSI / FS: unk
-- Revision Date: 10/25/2010
-- Purpose: Collection of routines to help the scripter automate UO
--
-- TM_CraftMenu
-- Arg1 = expected gump size
-- Arg2 = tool findtype
-- Arg3 = receipe string
-- Example: TM_CraftMenu("530_497", "HAG", "c10-s1-m1-p1-x") -- gumpsize, tool, receipe
-- HAG = sewing kit, gump size = 530_497
-- Receipe = c10 (category) = Female Armor
-- s1 (Selections) = leather shorts
-- m1 = 1st material selection (normal leather)
-- p1 = 1st page (doesn't press next page)
-- x = close craft gump after creation
-- l = makes last selection
--
-- Special Thanks:
--
---------------------------------------------------------------
I haven't tested these very much, but if you'd like to give these a try, feel free.
Please note these subs require tm_subs_collection9.lua
-
Question:
What does TM_CraftMenu return?
Answer:
true = error occurred, false = no error
-----------------------
Question:
Can I use OEUO-style Findtype?
Answer:
Yes, my TM_FindItem sub accepts either strings separated by "_" i.e. "KAG_EAT" or tables i.e. {2345,5645}
-----------------------
Question:
What are the recipe string possible values
Answer:
From the original EUO version:
; C = category
; S = selection
; M = material
; P = page
; L = make last
; X = close
-----------------------
Question:
Does the recipe string need to be formatted in any special way?
Answer:
no, you can format it however you want, i.e. c10-s1-m1-p1-x is the same as s1-p1-x-m1-c10. The separator needs to be a "-" though. The script parses this before the recipe is run.
-----------------------
-
Very cool. I am going to be using this a lot I think.
-
These are pretty easy to use. They are much like the CraftItem subs from Machine and the ones we use in the Quester.