ScriptUO
Official ScriptUO EasyUO Scripts => Script Library => Crafting => Topic started by: The Ghost on May 13, 2015, 06:33:06 PM
-
;===================================================================
; Script Name: TG Crafting Factory
; Author: The Ghost
; Version: 2.8
; Client Tested with: 7.0.79.1
; EUO version tested with: 1.5 (version 334)
; Shard OSI / FS: OSI
; Release Date: 13 May 15
; Revision Date: 15 Oct 2019
; Purpose:
; Craft Wood Pulps ,Blank Scroll, Arrow, Lockpick, Aids, Empty Bottles
; Dough ; Sack Flour, Ethereal Soulbinder Until no supply left.
; ========================================
; _____________ ______________ _____
___ __/__ /______ __ ____/__ /________________ /_
__ / __ __ \ _ \ _ / __ __ __ \ __ \_ ___/ __/
_ / _ / / / __/ / /_/ / _ / / / /_/ /(__ )/ /_
/_/ /_/ /_/\___/ \____/ /_/ /_/\____//____/ \__/
; ====================================
; ================== Variable that can be change by User ==========
Set %HideWhileWorking #true ; Set to #false if you don't Want to hide.
Set %ToolBag #true ; set to true to use Grab tool for bag
set %None_Stack #true ; set to true to set Drop not stack item bag
set %grabtool #false
set %Supply_Drag_Amount 80 ; <-------- Enter the Number of Supply Item you want.
set %ingot_Drag_Amount 50 ; <--------- Enter the Number of Ingot
set %wood_Drag_Amount 100
set %Fletching_Drag_Amount 2 ; Number of Arror to make
set %Cloth_Drag_Amount 500 ; <--------- Enter the Number of Cloth
set %Sand_Drag_Amount 1500 ; <--------- Enter the Number of Sand
set %EtherealSand_Drag_Amount 300 ; <--------- Enter the Number of Sand
; ==================== End Variable that can be change by User ==========
Special Thanks:
- Manwinc for used of his crafting subs
- Crisis for used of sub container
- TrailMyx for used Back pack sub
- Cush for testing
- Nobama for the coking suggestion
Requirements:
- You need to have a secure with appropriated supply needed (Bark Fragment, Wood Pulp Wood, Feather and
iron ingots) inside it and within reach. Only have regular supply, no colours ingots or woods
- Must have 29 tinker to craft tool and at least one tinker tool in your backpack.
- ( This option is not working right now) If you have no tinker skill, fill up your Resource bag with
appropriated tools.
- It assume that you use an endless Decanter of Water to make Wood Pulp.
Revisions: Ver 1.0 First release
Ver 1.4 Change the menu
Ver 1.5 Add wait time to look for tinker tool.
Ver 1.6 Add fletching (Arrow ) and Hiding Option
Ver 1.7 Move Restock location and separate pause from Check Menu
Ver 1.8 Add the FindCol so we don't use colour resources.
Ver 1.9 Change sub status Box . Fine tune colour protection
Ver 2.1 Add Bottle making (15 ept 15)
Ver 2.2 Remove Bottle and add Lockpick (14 Apr 16)
Ver 2.3 Add Aids Maker ( 1 May 16)
Ver 2.4 Add Bottle making (20 Jan 17)
Ver 2.5 Add Dough (21 Jan 17) . It only move Sack of Flour, not open Sack
Ver 2.6 Add Sack Flour (16 Feb 17)
Ver 2.7 Add Sweet Dough in 2 stage( make dough and after make Sweet dough) 20 Feb 17).
; Fix the auto refil tool from a container. Add a Check box Bottle will auto setup.
; Add auto detect to make Rolking pin if low tinker and Skillet if higher Tinker.
; Ver 2.8 Add Soulbinder Bottle (14 Oct 2019) With capability to store them in a own bag.
TO DO: Fix the Status update. Not dispplay the update properly when less words use.
Might add a weight Max & timer
Fix the Resources bag tool.
Add Regular water pitcher.
Future Updates:
Who know what I will be adding next?
Comment
Choose the type of items you desire to crafting and this Script will craft it for you until he can't find any supply.
I have spend a great effort to make this friendly and easy to used.
This should be a good support script for Crisis Fill Spellbook. http://www.scriptuo.com/index.php?topic=13136.0
-
Looks good Ghost! I will give a workout tomorrow, running low on scrolls working on my Legendary Scribe script.
-
Nice, me too.
-
for the two person that download it.
at Line 545. the tinker skill read 50 and it should be 500. thx.
-
I'll need to get you some more updated crafting subs of mine that make the tools for you if you are low. Super useful.
-
I'll need to get you some more updated crafting subs of mine that make the tools for you if you are low. Super useful.
I heart your crafting subs :)
-
So any problem from the people who try it.
-
Hope to try it in the next day or 2!
-
Works good, you may want to add in EN's sub for filling pitchers from a water trough in case users do not have an endless decanter. :)
http://www.scriptuo.com/index.php?topic=2454.msg64243#msg64243
-
I rebuild one of my oldest build. After seening what you got, I had to get my hand busy again with something light. I will see how to add EN's sub.
-
I will run this in the next couple days for you. I have a TON of bark and need blank scrolls. The current script I use takes forever.
Stay Tuned
-
I have created about 75K scrolls so far the script has been running great.
Every once in awhile it hangs up and the status bar says getting more wood pulp. Plenty in the bin and a couple in the backpack. I have to shut down and restart the script at that point.
-
Glad it work for you. Thx for the testing.
-
Ok I have run another 50K scrolls.
It will run for about 18K or so when first started then it seems to glitch.
I gets stuck at Restocking Wood Pulp. Currently there is over 180K of woodpulp in the resource bin.
I hit the scroll button and it runs another 2K scrolls and stops again with the same
-
Ver 1.7 posted
Cush that should work better now.
-
Ok I have run another 50K scrolls.
It will run for about 18K or so when first started then it seems to glitch.
I gets stuck at Restocking Wood Pulp. Currently there is over 180K of woodpulp in the resource bin.
I hit the scroll button and it runs another 2K scrolls and stops again with the same
Do you ever use F7 to step through it and see where it is stuck in the script? Or is the script completely stopped?
-
For some reason after it had make the 4 crafting tools, it return to the beginning loop.
Line 359 gosub GetMoreTools, when it return from their it make it jump to
while #true
{
gosub CheckMenu
}
I need to figure how ManWinc sub work before I can fix it.
I just load up with 40 craft tools and didn't have any issue.
-
Sorry been out backpacking for a few weeks and I leave again in the morning.
I will run it all day today and note at what point it stops and use the F7 for you.
Stay tuned.
-
First run made 2600 scrolls
and stopped here on if #menubutton = EUOButton2
sub CheckMenu
if #menubutton = EUOButton1
gosub Button_CraftPulp
if #menubutton = EUOButton2
gosub Button_CraftScroll
if #menubutton = EUOButton3
gosub PauseCraft
return
-
This run stopped at 2900 scrolls
Status says "restocking Wood Pulps"
Hung up on Return
sub CheckMenu
if #menubutton = EUOButton1
gosub Button_CraftPulp
if #menubutton = EUOButton2
gosub Button_CraftScroll
if #menubutton = EUOButton3
gosub PauseCraft
return
-
Thx Crush.
I figure that one out too. If you hit the make pulp buttun it will start making now.
I had 50 pens and made 64900 scrolls. The issue is that when it exit crafting tool it reset the menue button.
I will see if I can scan another place to make the tool.
-
I did load my backpack up with scribe pens and it ran about 70K scrolls non stop.
For sure it seems to be something in the pen creation process that creates the hang up.
It would be nice to not have to hit the scroll button again to get it going.
-
it just a tinny problem, I'm working on it. This build is in early contruction. I need to get more supply to proceed with more testing.
-
Just let me know what you need done for further testing. I am around all day
-
Need to figure why it jump to the crafting button and not returning properly. I think MWinc have a fix in is new build. I'm just trying work around the issue.
-
Cush, Find out that after I finish making the new tools, it seen that the timer to menu been gone to long and exit me from the crating sub. I'm working on changing the menu selection, so I don't use button.
-
Sounds good. I have 25K pulp left to finish converting to scrolls then I will try out the pulp making side of this.
-
If you don't run out of tools in ur pack, you will be fine I have make over 73K scroll so far. with 3 re-start. ( had lot of pens)
-
this run is 218K but I had to reload my pack with pens a couple of times. ;D
I think I have done about a million with your script in testing
-
I got the update almost done. Manage to get loop 4 times. I will seed you a copy soon. kept some supply
-
Works good, you may want to add in EN's sub for filling pitchers from a water trough in case users do not have an endless decanter. :)
http://www.scriptuo.com/index.php?topic=2454.msg64243#msg64243
You reviewed this sub and I err corrected it I added one line of code "set %waterTroughRange %1" Otherwise if you passed a range it wouldnt use it !!! oops... Not sure if you used the sub but just incase.
-
OK I made it through 5 pen creations just fine however it did not see the fact that there was only five charges on the tool kit.
Once the tool kit expired it hung up the script waiting for another tool kit. I dropped one in my backpack and it made a pen and continued.
need this to make a toolkit
-
Version 1.4
Confirmed this again. Did not create another toolkit before the charges on the toolkit ran out.
I am going to move over to making pulp now
-
Thx Cush, I will have a look at the tool kits.
-
1.5 has been running fine all day on Pulp. I will switch to Scrolls in the morning.
-
Ran Scrolls all day yesterday with no issues. I think you have this worked out and are ready for the next phase.
Great Job!
-
Thx Crush for your assistance and testing. Great timing on my part to get this build release.
-
Update to Ver 1.6.
Fix issue with making more tool,
Upgrade the menu to allow better loop.
add few new option.
Go ahead and enjoy.
-
VEr 1.6
When making scrolls it will pull the pulp into the pack, make a scroll then pull more pulp into the pack creating a situation where you are overloaded and the scrolls start dropping to the ground.
It is like it is not checking to see if it already has pulp in the pack.
-
Ok I see the Problem Cush,
Ver 1.7 Posted.
-
I worked on 1.6 yesterday making arrows. Here are a few items.
1. My resource box had everytype of wood in it. and started with regular wood in my backpack. When it was done with the boards in my pack it pulled bloodwood boards from my resource box instead of regular boards. I switched the resource box to a different one and just put boards in and it ran fine.
2. When it finishes a stack of boards in the resource box it stops and says out of resources even though there are several stacks in the box.
3. Ran out of feathers and the script said I was out of boards.
-
That my bad Cush, I didn`t add a colour check and forget to add a warring. My apologie for that.
Not seeing the other stack is new one. let see what I can do.
Cush Did you try ver 1.7
-
I worked on 1.6 yesterday making arrows. Here are a few items.
1. My resource box had everytype of wood in it. and started with regular wood in my backpack. When it was done with the boards in my pack it pulled bloodwood boards from my resource box instead of regular boards. I switched the resource box to a different one and just put boards in and it ran fine.
2. When it finishes a stack of boards in the resource box it stops and says out of resources even though there are several stacks in the box.
3. Ran out of feathers and the script said I was out of boards.
Maybe your feathers were really stiff.
-
Fired up 1.7 yesterday and today.
Made a million arrows. The script till does not distinguish wood types when I use my main wood bin it pulls the bloodwood. I switched to a different box with just feathers and wood in it. Seems to run fine that way.
-
I haven't add any safety precaution. Just for you and your precious woods, I will attempts to add that ability.
I glad to heard that the build is stable.
-
Ran another 2 million arrows through the system seems to be working fine except it doesn't distinguish wood type
When you run out of feathers it states you are out of wood.
-
In line 316 chance word wood for Feather :)
-
Ver 1.8 had been posted.
If some can help me and see what I'm doing wrong is my sub StatusBox. The sub work but so some reason, when I'm asking gosub StatusBox Making Arrow the box show Making Arrow 540_240. Those the way I build the StatuxBox sub is correct, can't seen to find out why it not showing what I want properly.
-
Something to think about......
gosub TestSub this is a test
sub TestSub
set %text
for %i 1 %0
{
set %temp % . %i
set %text %text , %temp , #SPC
}
display ok %text
return
-
Thx, work great
-
Why don't you add crossbow bolts to this. Since you have arrows it shouldn't be that big of an update?
-
If you look in the sub MakeArrow you will notice a quicknote at line 323. Bolt < just turn this one on to make Bolt I wil look at making it more friendly. For now that how it is.
This will make Arrow
[code]
gosub MWCraft fletching N/A 2 1 1 ; Arrow
; gosub MWCraft fletching N/A 2 1 2 ; Bolt < just turn this one on to make Bolt
gosub CheckPause
This will make Bolt
code]
; gosub MWCraft fletching N/A 2 1 1 ; Arrow
gosub MWCraft fletching N/A 2 1 2 ; Bolt < just turn this one on to make Bolt
gosub CheckPause
[/code]
-
Ver 2.3 had been posted, it now will make aids for you. For now it only use cloth. I will the both to cloth soon.
This was a kindle request.
-
I am happy to test this some more. What should I be looking for?
-
I just put the sub together to help a friend, I need a find a better flow, it seen a bit slow but it stable. I will take stable any day. If you need aids, just test the aids menu :)
-
With the new BoD, I receive a request from Nobama.
TG Crafting Factory Ver 2.4 include making Empty bottle.
-
Includes dough in this version 2.5.
Strangely, it spams 'Dough'...I must have fat-fingered something.
-
Awesome script. I just used the Arrow and Dough maker with no problems. I also changed the %swait, %mwait and the wait times, and it made the items with no problems an fast. Thanks so much for letting me use this script.
-
Some who use the setup as intended :)
We all have different connection, so by changing those few wait u can adjust the speed as u want.
Glad you like it.
-
Just curious, would it be hard to change it to make arrows from Shafts instead of using the wood to make the shaft then the arrow or the bolt. Awhile back, at an IDOC, I picked up a couple hundred thousand Shafts in deed form. Thanks
-
Not tested bu this is were I will start :)
in the sub MakeArrow
replace finditem %Wood C_ , #BackPackID
by finditem SLK C_ , #BackPackID ; shaft
replace gosub TG_Restock %Resource_Secure %Wood %Fletching_Drag_Amount
by gosub TG_Restock %Resource_Secure SLK %Fletching_Drag_Amount
remove
gosub MWCraft fletching N/A 1 1 2 ; Shaft
wait %sWait
-
Hi, Ghost. I added Sacks of Flour:
set %Sack PGG
set %Wheat FTL
;=========================== Making Sack ==============================
; Gosub MWCraft (Tool) (Type) (Category) (Page) (Selection)
sub MakeSack
gosub StatusBox Making Sacks of Flour ...
gosub MWCraft Cooking N/A 1 1 1
repeat
{
gosub StatusBox Sacks of Flour ...
finditem %Wheat C_ , #BackPackID
if #findkind = -1
{
gosub TG_ClearPack PGG %Resource_Secure
wait %sWait
gosub TG_Restock %Resource_Secure %Wheat %Supply_Drag_Amount
if #RESULT = #FALSE
{
Display You seem to be out of Wheat. Please restock and Resume. Script Pausing!
gosub PauseCraft
}
}
gosub StatusBox Making Sacks of Flour ...
gosub MWCraft Cooking MakeLast
gosub CheckPause
}
until #findkind = -1
wait %sWait
Return
; ---------------------------------------------------------------------
-
New Version had been posted. Now support Making Sack of flour.
Just make you you are seating near a Flour Mill.
Thx Nobama.
-
I will give it a go this morning
-
You know, we could probably modify this pretty easily to fill BODs as it goes...hmm...
-
I just made a ton of wood pulp and Exceptional Flour with no problems at all. Thanks for letting us use your script.
-
Ghost, I changed the lines in script to what you had told me above. I finally tried making arrows from shafts. I had my secure open and I was standing next to secure. I had a fletching tool in my backpack and about 60,000 Shafts in the secure. Script would not pull shafts from my secure. It said " You don't have any Arrow Shafts. However, When I put 100 shafts in my backpack and it made 100 arrows from the shafts.
-
Ghost, due you have time to meet me in Luna on Pac?
-
Hey Ghost,
First of all Thank You for this script. Works beautifully.
This is my first attempt at coding/messing with scripts. I do a lot of cooking and making ALL the cooking items is a must for filling the BODs. I saw your script as the best option for making the items I needed. I added some subs to this script to make the following.
Sweet Dough, Cake Mix, Cookie Mix, unbaked quiche, unbaked meat pie, uncooked sausage pizza, uncooked cheese pizza, unbaked fruit pie, unbaked peach cobbler, unbaked apple pie and unbaked pumpkin pie.
However, two subs I cannot figure out. MakeCakeMix and MakeCookieMix.
1. For the cake mix I used the makedough sub and added in a restock for %SweetDough (LGG which is the same for Dough) right after the sub to open sack of flour. It grabs the sack of flour good but skips the restock for the SweetDough.
2. For the cookie mix the sub has a find item %SweetDough then has two gosub for restocking SweetDough and Honey. Again it will not pull the SweetDough.
Any help with this and to better help me understand how the code works would be greatly appreciated. Would love to email you what I have so far to see if you would like to add any of it or to let me know what I've done wrong for those two subs.
Again HUGE THANK YOU!!!!!!
CoachCraig
-
Coach,
I upload Ver 2.7 that have sweet dough support. Look how I done it. Insert the same sub , I perform the task in two step.
-
Coach,
I upload Ver 2.7 that have sweet dough support. Look how I done it. Insert the same sub , I perform the task in two step.
Nice! Ok so looking at this I could add one more gosub after
gosub MWCraft Cooking N/A 1 1 3 ; Sweet Dough
to make cake mix and/or cooking mix since there's already an open sack of flour. The line I'm thinking would be
gosub MWCraft Cooking N/A 1 1 4 ; Cake Mix
or
gosub MWCraft Cooking N/A 1 1 5 ; Cookie Mix
Is that right or am I completely wrong.
And thanks again for the super fast response. Amazing script btw.
-
I stop getting into cooking because that was getting a headache. To be honest I haven't touch cooking since Feb. If I recall I was planning of make a lot of resource and add the sub of what I need to do.
Without doing testing, you seen to be on the right track Just add an wait %sWait between. Let me know if if work
-
It makes cake mix and cookie mix now. That's all I did was add that one line with a wait in between.
sub MakeCookieMix
gosub StatusBox Making Cookie Mix ...
repeat
{
gosub StatusBox Making Cookie Mix ...
finditem SGG C_ , #BackPackID ; Open Sack of Flour
if #findkind = -1
{
gosub TG_ClearPack NGG %Resource_Secure
wait %sWait
finditem %Sack_Flour C_ , #BackPackID ; Sack of Flour
if #findkind = -1
{
gosub TG_Restock %Resource_Secure %Sack_Flour 3
if #RESULT = #FALSE
{
Display You seem to be out of Flour. Please restock and Resume. Script Pausing!
gosub PauseCraft
}
}
wait %sWait
gosub OpenFLour
}
gosub MWCraft Cooking N/A 1 1 2 ; dough
wait %sWait
finditem KRD C_ , #BackPackID ;Honey
if #findkind = -1
{
gosub TG_Restock %Resource_Secure KRD 20
if #RESULT = #FALSE
{
Display You seem to be out of honey. Please restock and Resume. Script Pausing!
gosub PauseCraft
}
}
gosub MWCraft Cooking N/A 1 1 3 ; Sweet Dough
wait %sWait
gosub MWCraft Cooking N/A 1 1 5 ; Cookie Mix
gosub CheckPause
}
until #findkind = -1
wait %sWait
Return
I've also got it making all the unbaked items too. Below is what I used for that. I set variables for the ingredients needed. Replacing each sub with the different ingredients needed.
sub MakeQuiche
gosub StatusBox Making Unbaked Quiche ...
gosub MWCraft Cooking N/A 2 1 1
repeat
{
gosub StatusBox Making Unbaked Quiche ...
finditem %Dough C_ , #BackPackID
if #findkind = -1
{
gosub TG_ClearPack CCG %Resource_Secure
wait %sWait
gosub TG_Restock %Resource_Secure %Dough %Supply_Drag_Amount
if #RESULT = #FALSE
{
Display You seem to be out of Dough. Please restock and Resume. Script Pausing!
gosub PauseCraft
}
wait %mWait
gosub TG_Restock %Resource_Secure %Eggs %Supply_Drag_Amount
if #RESULT = #FALSE
{
Display You seem to be out of Eggs. Please restock and Resume. Script Pausing!
gosub PauseCraft
}
wait %mWait
}
gosub StatusBox Making Unbaked Quiche ...
gosub MWCraft Cooking MakeLast
; gosub CheckPause
}
until #findkind = -1
wait %sWait
Return
Thanks again Ghost! You're so awesome!
-
Funny to see my Pulp maker and Arrow maker, growing to be a cook at this moment. Once you have the base sown solid, it easy to add sub to make what you need. Glad you find other use for it.
Coach, Can you put you code in bracket using the # on top.
-
hehe I learn something new every day!
-
Sorry to revive this post,
I make a updated to kept up with new craft able You can now make Ethereal Soulbinder Bottle.
Enjoy
-
I ran this for a few hours this evening. Very impressive. I happened to pick making lockpicks because I had the resources. Ran smoothly.
Gaderian
-
It will make anything you select until you run out of resources.