ScriptUO
Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: Coragin on September 28, 2009, 09:19:38 PM
-
Okay, so if you make oak bows and then unravel them, they yield Magic Residue for training. Actually works with any boards that are colored. So, here is the script I want to write, but since I have been out of the loop for so long, I completely forgot almost everything. But, here is the basic outline...
Bag on ground with Ingots to make fletchers tools, all colored boards to make bows only and where magical residue is deposited.
Uses either unravel bag or unravel from gump.
Grabs boards (450 is what I do by hand)
Checks resources in pack, like tools, boards ect
After each unravel places residue in secure (if using unravel bag).
Checks for weight, when it grabs more boards, also puts residue in secure.
This is the basic outline of the script. Like I said, I have been out of the loop for awhile now, so if anyone can contribute to code here it would be great. This is a script I am sure EVERYONE would enjoy and want. I am pretty sure this can be done with colored ingots too. But as a community, I am sure all the minds here adding stuff this could be done quite quick. I setup I think all the variables needed and the subs to go with them. Feel free to delete, condense or add to. I dont want any credit for this, just would like to get it up and running semi in what I got written here so I can re-learn. Dont have time to work on this tonight, wont be for a few days before I can sit down and play (daughter is 3, so shes a handful).
So, who is willing to help? Below is my basic code and outline with explainations.
set %tinkertools GTL_KTL_JTL
set %backpack ??????
set %magicresidue ??????
set %fletchertools UFG
set %boards TLK
set %boardcount 450
set %ironingots ENK
set %maxfletchertools 10
set %maxtinkertools 10
gosub TargetSecure
MainLoop:
gosub CheckForResources
gosub FindFletcherTool
gosub UseFletcherTool
gosub Unravel
sub CheckForResources
(Check for boards (in pack and secure), Fletcher Tools, Tinker Tools (in pack and secure), if Magic Residue in pack move to secure, move boards to pack, ect)
if %maxfletchertools < 2
gosub MakeFletcherTools
if %maxtinkertools < 2
gosub MakeTinkerTools
if %ironingots < 10
gosub End
if %packboards < 10
gosub GetBoards
gosub CheckPackResidue
if %magicresidue #true
gosub MoveResidue
return
sub FindFletcherTool
(find the fletcher tools duh lol)
return
sub UseFletcherTool
(make a bow)
return
sub Unravel
(use imbuing gump to unravel bow and move residue into secure)
return
sub TargetSecure
(I have no idea how to do this, but it will open a target cursor and recorde your secure container with boards, ingots and tinker tools ect)
return
sub MakeFletcherTools
(make tools)
return
sub MakeTinkerTools
(make tools)
return
sub GetBoards
(Check secure for boards, if it has some, move to pack, if not gosub end)
return
sub End
(ending the script due to lack of resources)
end
sub GetBoards
(Get Boards from Secure, move to pack)
return
sub CheckPackResidue
(check backpack for magic residue, if yes, return #true
return
sub MoveResidue
(move magic residue from pack to secure)
return
-
set %tinkertools GTL_KTL_JTL
set %backpack ??????
set %magicresidue ??????
set %fletchertools UFG
set %boards TLK
set %boardcount 450
set %ironingots ENK
set %maxfletchertools 10
set %maxtinkertools 10
gosub TargetSecure
MainLoop:
gosub CheckForResources
gosub FindFletcherTool
gosub UseFletcherTool
gosub Unravel
sub CheckForResources
(Check for boards (in pack and secure), Fletcher Tools, Tinker Tools (in pack and secure), if Magic Residue in pack move to secure, move boards to pack, ect)
if %maxfletchertools < 2
gosub MakeFletcherTools
if %maxtinkertools < 2
gosub MakeTinkerTools
if %ironingots < 10
gosub GETMOREINGOTSFROMSECURE
if %packboards < 10 ;might want to put back remaining
gosub GetBoards ;after crafting and grab set amount
gosub CheckPackResidue
if %magicresidue #true
gosub MoveResidueTOSECURE
return
sub FindFletcherTool
(find the fletcher tools duh lol)
return
sub UseFletcherTool
(make a bow)
return
sub Unravel
(use imbuing gump to unravel bow and move residue into secure)
return
sub TargetSecure
(I have no idea how to do this, but it will open a target cursor and recorde your secure container with boards, ingots and tinker tools ect)
return
sub MakeFletcherTools
(make tools)
return
sub MakeTinkerTools
(make tools)
return
sub GetBoards AND INGOTS
(Check secure for boards, if it has some, move to pack, if not gosub end)
return
sub End
(ending the script due to lack of resources)
end
sub CheckPackResidue
(check backpack for magic residue, if yes, return #true
return
sub MoveResidue
(move magic residue from pack to secure)
return
-
Actually works with any boards that are colored.
Not true, ASH does not work for some reason. OAK, YEW and the rest seems to work. Did not test FROSTWOOD though.
-
I will test ash and frost and give some feedback on them. I am also working on the same project coragin. So to help out i will look over what you have and try to repost some more script today if i can get my work for my job done first :)
-
Thanks for the reply guys. I actually dont mind if someone already makes one, I will scrap this as I am way rusty and someone else could probably do much better and faster.
-
I can also confirm that ASH doesn't work. Pity. I have about 1.5M ASH boards that didn't go into the chipper (donator).
:)
-
HEARTWOOD also does not always work, cause of random property.
Anyone tested FROSTWOOD yet, i am out long time now :)
-
Frostwood does work. but it doesn't give any more residue than oak.
-
OK frostwood wil give residue and ash will not unless made with a runic, but frost wood is not worth it for the cost. Check out the below link. It is my working script of the above idea.
http://www.scriptuo.com/index.php?topic=2787.0