Author Topic: Using the Crafting Stations  (Read 6848 times)

0 Members and 1 Guest are viewing this topic.

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Using the Crafting Stations
« on: May 30, 2021, 03:45:02 PM »
0
Hey guys! Just a quick question. I've been using your terrific scripts for my crafting for a while but now I'm starting to get the benches that store a gazillion charges and I'm wondering how I change the script for that. The writing desk is ID 40938 and the alchemy one is ID 40323. Can anyone tell me what to change in the script?

Thanks in advance!

There are 1 attachment(s) in this post. You must register and post an acceptable introduction to download
Crisis Craft and Fill Spellbook Filler 1.3b_MOD.txt
« Last Edit: November 12, 2023, 02:35:11 PM by CityKitty »
If you ain't the lead dog, the view never changes

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Using the Crafting Stations
« Reply #1 on: May 30, 2021, 09:43:23 PM »
0
Not certain where you got the ID number for the reward, but it will end up being a modification for loading the "use item" action in the script.

Under Easyuo it will be an alphabetic ID, not numeric.
UO Stealth will use numeric references for item ID's.

So it will be different for each script depending on how they use it. Probably easiest to ask in the thread for the specific script you are using.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #2 on: May 31, 2021, 07:16:32 AM »
0
Ack! Those numbers are from the Pinco's UI item ID. I have the find ID script so will try and see if that works.

I will give the "use item" command and see what happens. Thanks for the response.
If you ain't the lead dog, the view never changes

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Using the Crafting Stations
« Reply #3 on: May 31, 2021, 12:52:15 PM »
0
I would guess (but do not know) that Pinco's number may have a good possibility of matching the UOSteam ID method.
EUO needs a conversion, because it uses a right to left mod 26 function.
40938 / 26 = 1574 remainder 14
14 + 1 = 15 = O (letter)
1574 / 26 = 60 remainder 14
14 + 1 = 15 = O
gives us: OO
60 / 26 = 2 remainder 7
7 + 1 = 8 = H
gives us OOH
2 + 1 = 3 = C
gives an EUO id of OOHC (all letters)

So if you need further help with how to change a script, name or link the specific script here for a more specific example/help. :)
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline 12TimesOver

  • Another Day, Another Vendetta
  • Global Moderator
  • *
  • *
  • Posts: 3694
  • Activity:
    0%
  • Reputation Power: 41
  • 12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.12TimesOver is a force to reckon with.
  • Gender: Male
  • Respect: +321
  • Referrals: 2
    • View Profile
Re: Using the Crafting Stations
« Reply #4 on: June 01, 2021, 03:18:55 AM »
0
In my script library there is a script called "XIIxOveR's SuperStuff" which has a click and target option for getting item info if helpful.

X
When they come for me I'll be sitting at my desk
     with a gun in my hand wearing a bulletproof vest
My, my, my how the time does fly
     when you know you're gonna die by the end of the night

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #5 on: June 01, 2021, 07:56:54 PM »
0
So, the guys here pointed me to a script "FindInfo" that allows me to see the item id, type, etc. so let me try again and see if this info makes any sense at all to you. *crosses fingers*

Writing Desk Type: OMIC ID: GDJAJND
Alchemy Station Type: TTHC ID: WVGMKQD

I looked through the scribe and alchemy scripts I have but was just too confused. I can give it another try tho.

I'm feeling quite happy with myself right now tho, since I managed to change another script to let me add something new to it and it worked! First try too! Ok, it wasn't that big a deal but I will look for my kudos where I can find them!  8)

Going to try to attach the scripts too. Thanks in advance for your help!

There are 3 attachment(s) in this post. You must register and post an acceptable introduction to download
!Crisis Craft and Fill Spellbook Filler 1.3b.txt
!Crisis Spellbook Filler.txt
Guadahs Alchemists Assistant 1.2.1.euo
If you ain't the lead dog, the view never changes

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Using the Crafting Stations
« Reply #6 on: June 01, 2021, 11:56:40 PM »
0
I only have fletching station, sewing machine and the smithing press to test with. I am assuming the other stations have the same description:
"Uses Remaining:" and then the number at the end of the description when you hover over with the mouse.

So for the Crisis Craft and Fill Spellbook script, the changes would happen in:
MWCraft
(set some variables here like the TYPE for the craft station)
This is the focal point where the logic would have to be changed.
I would do a fall back to the crafting tool (the script keeps 2 in your main backpack... which is acceptable), in the event that the crafting station is out of charges.

Maybe a new script idea is born from a script to replenish crafting stations until full...

Here is up the point where the change is required.
This routine would need to be modified to first validate the crafting station and how many charges are left on it.

I would add a variable:
set !ToolStationScribe OMIC
Other types to be added would be for each of the craft skills, but this is a scribe only script.
Other scripts that use this MWCraft routine would benefit from adding more variables for the other crafting stations:
set !ToolStationAlchemy TTHC
set !ToolStationFletching JGHC
set !ToolStationBlacksmithing LQGC
set !ToolStationTailoring BJGC
set !ToolStationTinkering ANJC
There is possibly a different type for the other orientation of the various stations. I do not have that many vet rewards to choose to setup a complete craft area with all the stations, so I would probably ask for you help on the ones you already have.


Code: easyuo
  1. ; Crafting Stuff
  2. Sub MWCraft
  3.  
  4.   ; Gosub Craft (Tool) (Type) (Category) (Page) (Selection)
  5.   Namespace Push
  6.   Namespace Local Mwinc_Craft
  7.   set !Type N/A
  8.   set !Smelt False
  9.   set !MakeLast False
  10.   set !Enhance False
  11.   set !Craftmenu 530_497
  12.   set !Toolfletching UFG
  13.   set !Tooltailoring HAG
  14.   set !Toolalchemy RQF
  15.   set !Tooltinkering JTL
  16.   set !Toolblacksmithing OBG_FBG_TLH
  17.   set !Toolcooking OGG_DND_BCG
  18.   set !Toolcarpentry BIG_AIG_EGG_AGG_ZHG_CGG_CIG_IGG_WFG_KGG
  19.   set !ToolScribe PBG
  20.   set !ToolStationScribe OMIC
  21.   set !ToolStation !ToolStation . %1
  22.   set !Tool !Tool . %1
  23.   set !N_Variable %0
  24.   if %2 <> MakeLast && %2 <> Smelt && %3 <> Enhance
  25.   {
  26.     set !Type %2
  27.     set !Category %3
  28.     set !Page %4 - 1
  29.     set !Selection %5
  30.   }
  31.   if %2 = Smelt
  32.   {
  33.     set !Smelt True
  34.     set !Item %3
  35.   }
  36.   if %2 = Makelast
  37.     set !MakeLast True
  38.   if %3 = Enhance
  39.   {
  40.     set !Enhance True
  41.     set !Item %4
  42.   }
  43.   Finditem !ToolStation G_2
  44.   if #findcnt > 0
  45.    {
  46.    event property #findid
  47.    wait 5
  48.    ; here pick off uses remaining number using str commands on #property or need to find a sub that does that...
  49.    ; so we are going to use a new made up variable called %number_of_uses to hold that value
  50.    event property #findid
  51.    wait 5
  52.    str pos #property remaining:
  53.    set %left #strres + 11
  54.    str len #property
  55.    set %length #strres - %left
  56.    str mid #property %left %length
  57.    set %number_of_uses #strres
  58.    if %number_of_uses < 1
  59.   {
  60.     finditem !Tool C_ , #backpackid
  61.     if #findcnt < 1
  62.     {
  63.       display Out Of %1 Tools
  64.       halt
  65.     }
  66.   }
  67.  
  68.   if #contsize = !Craftmenu
  69.   {
  70.     if !Last_Tool <> !Tool
  71.     {
  72.       gosub Click_Offset 50 50 R
  73.       wait 20
  74.     }
  75.   }
  76.   for #Findindex 1 #Findcnt
  77.   {
  78.     if #Findcol = 0
  79.       Break
  80.   }
  81.   if #findcol <> 0
  82.   {
  83.     display Out Of %1 Tools
  84.     halt
  85.   }

CheckScribe
(add a check for charges on the crafting station)
Even without the test for charges on the crafting station here, it would make 2 tools to sit in the backpack of the character, which is a good fall back. The primary will be to use the crafting station and the secondary would be to use the tool in backpack.
If you do not have tinkering on the character, then it will fail and CheckScribe would need the verification like what was added in MWCraft.

So that is an example on how to modify one of those to handle using the station (writing desk - in this case).
It needs some decisions and debugging/testing, but that is the idea.

If you need more assistance, I can play with and test later in the week.

To really test this out and be useful in all situations, there is probably a different orientation for each of the rewards that would have to be added to the Types above.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #7 on: June 02, 2021, 09:14:05 AM »
0
I only have fletching station, sewing machine and the smithing press to test with. I am assuming the other stations have the same description:
"Uses Remaining:" and then the number at the end of the description when you hover over with the mouse.

         Yes

So for the Crisis Craft and Fill Spellbook script, the changes would happen in:
MWCraft
(set some variables here like the TYPE for the craft station)
This is the focal point where the logic would have to be changed.

         The only place MWCraft is mentoned is in several subs, such as:
sub Makescroll11
    gosub MWCraft Scribe N/A 1 2 1
    wait 10
    Return
       I don't see here I can put the type.

I would do a fall back to the crafting tool (the script keeps 2 in your main backpack... which is acceptable), in the event that the crafting station is out of charges.

      Since not all my chars have tinkering, maybe an idea is to put a message "If you don't have tinkering, be sure to put two tools in the backpack."

Maybe a new script idea is born from a script to replenish crafting stations until full...

       Useful for those who don't use Pinco's in the EC and an organizer to dump the tools into the station.

Here is up the point where the change is required.
This routine would need to be modified to first validate the crafting station and how many charges are left on it.

I would add a variable:
set !ToolStationScribe OMIC
       Doesn't appear to belong anywhere with the other variables but I'm too new to say really.

Other types to be added would be for each of the craft skills, but this is a scribe only script.
Other scripts that use this MWCraft routine would benefit from adding more variables for the other crafting stations:
set !ToolStationAlchemy TTHC
set !ToolStationFletching JGHC
set !ToolStationBlacksmithing LQGC
set !ToolStationTailoring BJGC
set !ToolStationTinkering ANJC
There is possibly a different type for the other orientation of the various stations. I do not have that many vet rewards to choose to setup a complete craft area with all the stations, so I would probably ask for you help on the ones you already have.

     ...Nope, fish out of water here. Can't tell where this should go.

Code: easyuo
  1. ; Crafting Stuff
  2. Sub MWCraft
  3.  
  4.   ; Gosub Craft (Tool) (Type) (Category) (Page) (Selection)
  5.   Namespace Push
  6.   Namespace Local Mwinc_Craft
  7.   set !Type N/A
  8.   set !Smelt False
  9.   set !MakeLast False
  10.   set !Enhance False
  11.   set !Craftmenu 530_497
  12.   set !Toolfletching UFG
  13.   set !Tooltailoring HAG
  14.   set !Toolalchemy RQF
  15.   set !Tooltinkering JTL
  16.   set !Toolblacksmithing OBG_FBG_TLH
  17.   set !Toolcooking OGG_DND_BCG
  18.   set !Toolcarpentry BIG_AIG_EGG_AGG_ZHG_CGG_CIG_IGG_WFG_KGG
  19.   set !ToolScribe PBG
  20.   set !ToolStationScribe OMIC
  21.   set !ToolStation !ToolStation . %1
  22.   set !Tool !Tool . %1
  23.   set !N_Variable %0
  24.   if %2 <> MakeLast && %2 <> Smelt && %3 <> Enhance
  25.   {
  26.     set !Type %2
  27.     set !Category %3
  28.     set !Page %4 - 1
  29.     set !Selection %5
  30.   }
  31.   if %2 = Smelt
  32.   {
  33.     set !Smelt True
  34.     set !Item %3
  35.   }
  36.   if %2 = Makelast
  37.     set !MakeLast True
  38.   if %3 = Enhance
  39.   {
  40.     set !Enhance True
  41.     set !Item %4
  42.   }
  43.   Finditem !ToolStation G_2
  44.   if #findcnt > 0
  45.    {
  46.    event property #findid
  47.    wait 5
  48.    ; here pick off uses remaining number using str commands on #property or need to find a sub that does that...
  49.    ; so we are going to use a new made up variable called %number_of_uses to hold that value
  50.    event property #findid
  51.    wait 5
  52.    str pos #property remaining:
  53.    set %left #strres + 11
  54.    str len #property
  55.    set %length #strres - %left
  56.    str mid #property %left %length
  57.    set %number_of_uses #strres
  58.    if %number_of_uses < 1
  59.   {
  60.     finditem !Tool C_ , #backpackid
  61.     if #findcnt < 1
  62.     {
  63.       display Out Of %1 Tools
  64.       halt
  65.     }
  66.   }
  67.  
  68.   if #contsize = !Craftmenu
  69.   {
  70.     if !Last_Tool <> !Tool
  71.     {
  72.       gosub Click_Offset 50 50 R
  73.       wait 20
  74.     }
  75.   }
  76.   for #Findindex 1 #Findcnt
  77.   {
  78.     if #Findcol = 0
  79.       Break
  80.   }
  81.   if #findcol <> 0
  82.   {
  83.     display Out Of %1 Tools
  84.     halt
  85.   }

CheckScribe
(add a check for charges on the crafting station)
Even without the test for charges on the crafting station here, it would make 2 tools to sit in the backpack of the character, which is a good fall back. The primary will be to use the crafting station and the secondary would be to use the tool in backpack.
If you do not have tinkering on the character, then it will fail and CheckScribe would need the verification like what was added in MWCraft.

So that is an example on how to modify one of those to handle using the station (writing desk - in this case).
It needs some decisions and debugging/testing, but that is the idea.

If you need more assistance, I can play with and test later in the week.

To really test this out and be useful in all situations, there is probably a different orientation for each of the rewards that would have to be added to the Types above.

Yes, I'm sure you're right. I will see if I can change mine and give you the other code. Right now, both of those are for facing south.

Thanks for all the help! I wish I was a lot farther along in my learning to write scripts, but I'm working on it. Happy to test and help out in whatever ways you need. :)
If you ain't the lead dog, the view never changes

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Using the Crafting Stations
« Reply #8 on: June 02, 2021, 07:16:14 PM »
0
I do not have enough vet rewards to get all the craft stations to test out. I do not have access to a writing desk to test the one I was discussing, so some of this becomes a bit of a guess by applying the code generically to the other craft station that I do have. There may be some errors that come out of that kind of programming.
Don't hesitate to ask for help.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #9 on: June 03, 2021, 08:08:48 AM »
0
Thanks so much. I will bumble along and try to apply the things you said. Meanwhile, if there's anything you need to know about the alchemy and scribe stations, I'm here to help.
If you ain't the lead dog, the view never changes

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Using the Crafting Stations
« Reply #10 on: June 06, 2021, 11:09:35 PM »
0
I found east facing writing desk and alchemy stations:

Code: easyuo
  1. set !ToolStationScribe _OMIC_WMIC_
  2. set !ToolStationAlchemy _TTHC_XTHC_

So we can add it to the info.
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #11 on: June 19, 2021, 04:30:35 PM »
0
I found east facing writing desk and alchemy stations:

Code: easyuo
  1. set !ToolStationScribe _OMIC_WMIC_
  2. set !ToolStationAlchemy _TTHC_XTHC_

So we can add it to the info.

Great! I will add those. I haven't had a lot of time but I'm hoping to be able to work on the script for a little bit.
If you ain't the lead dog, the view never changes

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #12 on: December 27, 2021, 08:23:48 AM »
0
Hi!

I'm sorry, I had to be away for a while. Couldn't be helped but I'm back now and wondering where this idea of the crafting stations is at now. Apologies if I was supposed to do something, just let me know and I'll get on it.

My plan is to get all the stations, not just for the crafting, but for decoration in my workshops. Looking forward to getting back on this. Just got the tinker station, so will give you that info if needed.
If you ain't the lead dog, the view never changes

Offline Gaderian

  • Elite
  • *
  • *
  • Posts: 486
  • Activity:
    0%
  • Reputation Power: 10
  • Gaderian barely matters.Gaderian barely matters.
  • Respect: +50
  • Referrals: 3
    • View Profile
Re: Using the Crafting Stations
« Reply #13 on: December 27, 2021, 10:36:11 AM »
0
I am off the next few days, so I have time. Do you need help adjusting the scripts?
"Go ahead ask me: 'Should I use hard waits or timers?'"
You say:"Should I"
Gaderian:"Timers!"
You Say:"use hard waits or timers?"

The serious side of timer use is illustrated here: http://www.scriptuo.com/index.php?topic=12094.msg101926#msg101926

However, every time I go back and look at this [AutoLooter] script, I realize I had wrote it in my zen state of EUO scripting - so it makes my brain hurt.

Offline CityKittyTopic starter

  • Jr. Member
  • **
  • Posts: 77
  • Activity:
    0%
  • Reputation Power: 1
  • CityKitty has no influence.
  • Gender: Female
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: Using the Crafting Stations
« Reply #14 on: December 27, 2021, 07:36:51 PM »
0
Hey! Glad to hear from you.

Yes, what I think I need to know is what the command would be and where to place it for any script I need to change because, after all, I can't ask you to do every one. Did we discover whether the ID stays the same or changes with the direction the station faces?

Ideally, I will want to change all the scripts I use just to add that command, since I plan to have all the stations and I do have all the crafters. Right now, I have the writing table, alchemist's table and tinker table.

Any help at all is much appreciated and thanks in advance.
If you ain't the lead dog, the view never changes

Tags: