Author Topic: TrailMyx's CraftMenu Sub  (Read 7228 times)

0 Members and 1 Guest are viewing this topic.

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
TrailMyx's CraftMenu Sub
« on: October 26, 2010, 10:34:38 PM »
0
Code: [Select]
---------------------------------------------------------------
-- 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

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
tm_craftitem3.lua
« Last Edit: October 26, 2010, 10:45:51 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: TrailMyx's CraftMenu Sub
« Reply #1 on: October 26, 2010, 10:35:07 PM »
0
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:
Quote
; 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.
-----------------------
« Last Edit: October 26, 2010, 10:45:31 PM by TrailMyx »
Please read the ScriptUO site RULES
Come play RIFT with me!

Offline Paulonius

  • Elite
  • *
  • *
  • Posts: 2040
  • Activity:
    0%
  • Reputation Power: 29
  • Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.Paulonius is on the verge of being accepted.
  • Respect: +162
  • Referrals: 1
    • View Profile
Re: TrailMyx's CraftMenu Sub
« Reply #2 on: October 27, 2010, 06:57:49 AM »
0
Very cool. I am going to be using this a lot I think.
This coin declares Caesar is "Dictator for Life." He did serve as Dictator for the remainder of his life, but his life would end only a few weeks after this issue. For Caesar to put his image on coins and essentially declare himself king was too much for Brutus and his republican allies.

"If everything seems under control, you're not going fast enough'
-Mario Andretti

"If everyone is thinking alike, someone isn't thinking."
- General George Patton Jr

Offline TrailMyxTopic starter

  • Officially retired from UO
  • Administrator
  • *
  • *
  • Posts: 13302
  • Activity:
    0.2%
  • Reputation Power: 154
  • TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
  • Gender: Male
  • Viper!
  • Respect: +1349
  • Referrals: 33
    • View Profile
    • ScriptUO
Re: TrailMyx's CraftMenu Sub
« Reply #3 on: October 27, 2010, 08:31:36 AM »
0
These are pretty easy to use.  They are much like the CraftItem subs from Machine and the ones we use in the Quester.
Please read the ScriptUO site RULES
Come play RIFT with me!

Tags: OEUO  TrailMyx