ScriptUO

Scripting Resources & Utilities => OEUO => OpenEUO Scripts => Topic started by: Crome969 on August 04, 2011, 09:27:32 AM

Title: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on August 04, 2011, 09:27:32 AM
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on August 06, 2011, 12:56:49 AM
Hello Community,
the Final Version with restock, autoSorting with 4 Options for the different things is done.
I thought and thought if i just should publish it or keep it private.
I deceidet that everyone who want it can write me a PM with the Email.
To keep it Clean for leechers(Edit me TMx if this is forbidden) i dont will just publish it and the minimum Requirements for getting Access to it are 25 Posts in EUO or OpenUO Sections.
Interested? PM me

And for those who just be interested in:
Code: [Select]
--############################################################
--## @ScriptName = Bolts & Blaze
--## @Purpose = Doing Lethal Dart Quest
--## @Author = Crome696
--## @Version = 1.0 Final
--## @ReleaseDate = 08\06\2011
--#####################################################--## @Credits Kal in Ex --> Finditem.Lua
--## Garath  --> ItemEval.Lua          
--#####################################################
--## @Note: If you got this Script from a other Website than
--##        http://www.scriptuo.com , you should check the  
--##        the Code by yourself against Code manipulating.
--#####################################################
--## @Beware: The User\Player use this Script on own
--## Warranty and Risk!
--#####################################################
--## @Requirements: Giant Beetle,Bolts,

Options for Setting it up:
Code: [Select]
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--Options
--@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
--Options about Talismans
ExceptionalTalismans = true
MinimumPercentage = 30 -- 1-30
--Options about Rare Recipes
RareRecipes=true
RarerecipeNames ={"Blight Gripped Longbow","Faerie Fire","Mischief Maker","Silvani's Feywood Bow","The Night Reaper"}
--Options about Using Item Evaluator
LootScore=true
MinimumScore = 0 --0-500 is Possible
--Alternatly Option for a static Securebag for Script
--Note: if SecureID = 0 it will start a small Setuproutine to get the ID
SecureID = 0

Report of my Testusing for about5-10 Minutes using:

Code: [Select]
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!9seconds needet!
Turn Done!6seconds needet!
Turn Done!36seconds needet!
Turn Done!4seconds needet!
Turn Done!4seconds needet!
Turn Done!7seconds needet!
Turn Done!24seconds needet!
Turn Done!4seconds needet!
Turn Done!8seconds needet!
Turn Done!8seconds needet!
Turn Done!18seconds needet!
Turn Done!6seconds needet!
Turn Done!8seconds needet!
Turn Done!11seconds needet!
Turn Done!6seconds needet!
Turn Done!14seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!12seconds needet!
Turn Done!5seconds needet!
Turn Done!8seconds needet!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Turn Done!7seconds needet!
Turn Done!5seconds needet!
Turn Done!6seconds needet!
Turn Done!4seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Turn Done!6seconds needet!
Turn Done!4seconds needet!
Turn Done!7seconds needet!
Turn Done!6seconds needet!
Turn Done!5seconds needet!
Turn Done!7seconds needet!
Turn Done!7seconds needet!
Turn Done!4seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!7seconds needet!
Turn Done!8seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!8seconds needet!
Turn Done!4seconds needet!
Turn Done!7seconds needet!
Turn Done!5seconds needet!
Turn Done!8seconds needet!
Turn Done!5seconds needet!
Turn Done!7seconds needet!
Turn Done!6seconds needet!
Turn Done!7seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!9seconds needet!
Turn Done!6seconds needet!
Turn Done!36seconds needet!
Turn Done!4seconds needet!
Turn Done!4seconds needet!
Turn Done!7seconds needet!
Turn Done!24seconds needet!
Turn Done!4seconds needet!
Turn Done!8seconds needet!
Turn Done!8seconds needet!
Turn Done!18seconds needet!
Turn Done!6seconds needet!
Turn Done!8seconds needet!
Turn Done!11seconds needet!
Turn Done!6seconds needet!
Turn Done!14seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!12seconds needet!
Turn Done!5seconds needet!
Turn Done!8seconds needet!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Turn Done!7seconds needet!
Turn Done!5seconds needet!
Turn Done!6seconds needet!
Turn Done!4seconds needet!
Turn Done!5seconds needet!
Turn Done!10seconds needet!
Turn Done!4seconds needet!
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Turn Done!10seconds needet!
Turn Done!6seconds needet!
Turn Done!4seconds needet!
Turn Done!7seconds needet!
Turn Done!6seconds needet!
Turn Done!5seconds needet!
Turn Done!7seconds needet!
Turn Done!7seconds needet!
Turn Done!4seconds needet!
Turn Done!18seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!7seconds needet!
Turn Done!8seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Turn Done!8seconds needet!
Turn Done!4seconds needet!
Turn Done!7seconds needet!
Turn Done!5seconds needet!
Turn Done!8seconds needet!
Turn Done!5seconds needet!
Turn Done!7seconds needet!
Turn Done!11seconds needet!
Turn Done!6seconds needet!
Turn Done!7seconds needet!
Turn Done!5seconds needet!
Turn Done!156seconds needet!
Turn Done!4seconds needet!
Turn Done!4seconds needet!
Turn Done!8seconds needet!
Turn Done!13seconds needet!
Turn Done!9seconds needet!
Turn Done!9seconds needet!
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Turn Done!7seconds needet!
Turn Done!14seconds needet!
Turn Done!7seconds needet!
Turn Done!4seconds needet!
Turn Done!4seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Bowcraft Runic found!
Rare Recipe found!
Bowcraft Runic found!
Bowcraft Runic found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Turn Done!8seconds needet!
Turn Done!6seconds needet!
Turn Done!12seconds needet!
Turn Done!14seconds needet!
Turn Done!17seconds needet!
Turn Done!10seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!8seconds needet!
Turn Done!7seconds needet!
Turn Done!13seconds needet!
Turn Done!10seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!5seconds needet!
Turn Done!4seconds needet!
Turn Done!9seconds needet!
Turn Done!6seconds needet!
Turn Done!14seconds needet!
Turn Done!9seconds needet!
Turn Done!5seconds needet!
Turn Done!6seconds needet!
Turn Done!10seconds needet!
Turn Done!5seconds needet!
Turn Done!6seconds needet!
Turn Done!4seconds needet!
Turn Done!6seconds needet!
Exceptional Talisman found!
Bowcraft Runic found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
Exceptional Talisman found!
for Times over 10 seconds => i had massive Lagg


Kind regards

Crome
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Goliath on August 06, 2011, 01:07:07 PM
I would love to see this in action but I am still trying to get my characters rebuilt.  I will for sure message you in time but there isn't really any reason for me to bother you with it until it is time for me to use it.  Sounds like you put a lot of work into it.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: TrailMyx on August 06, 2011, 03:57:53 PM
It's up to you Crome if you want to hassle with it.  ;)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on August 07, 2011, 03:32:06 AM
It's up to you Crome if you want to hassle with it.  ;)
Its like Light and Premium difference.
But the Main Problem is my new Version you should know minimum Basics about EUO\OUO.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: TrailMyx on August 07, 2011, 08:52:25 AM
Boy you have been a busy guy in OEUO!
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on August 07, 2011, 11:27:24 AM
Boy you have been a busy guy in OEUO!
Currently i spending too much time in it;);)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 04, 2011, 09:46:49 PM
Hey im having a little trouble getting this to work, it starts up opens paperdoll and then gives me the cursor i select my beetle, and then it cicles thru all the quests and looks part the bolt quest just keeps circling thru em without choosing them. im thinking maybe the quest id is different? how can i find out what the id is to see if thats the problem? sorry im very new with this but i kinda wanna try to learn to how to fix problems so i dont have to bother the scripter gods  :P
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 04, 2011, 10:11:51 PM
Hey im having a little trouble getting this to work, it starts up opens paperdoll and then gives me the cursor i select my beetle, and then it cicles thru all the quests and looks part the bolt quest just keeps circling thru em without choosing them. im thinking maybe the quest id is different? how can i find out what the id is to see if thats the problem? sorry im very new with this but i kinda wanna try to learn to how to fix problems so i dont have to bother the scripter gods  :P
I can tell you this Version works on Raistlins World. I bymyself using it there. Maybe if you can, make some Screenshots about or a small video so i can see what happends at your Side of Computer when u run that Script..
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: TrailMyx on September 04, 2011, 10:17:05 PM
Around here, OSI is the mainstream.  Freeshards are generally very different that OSI.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 05, 2011, 06:14:14 AM
hmm, yea i tried redownloading, tried different packys thought maybe it was getting tied up there but this is what i got, now my screen shot shows the quest but it skips right past it, its as if i have a script running to double click npc on a loop. thats kinda why i thought it just didnt recognize the quest id.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: gimlet on September 05, 2011, 06:34:56 AM
Did you try it without razor?
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 05, 2011, 06:47:39 AM
nah i didnt try it without razor, actually i didnt know i could log onto server without razor.

 
Code: [Select]
function GetQuest()
while(UO.ContSizeX~=507)and(UO.ContSizeY~=496)do
UO.LObjectID = QuestID
UO.Macro(17,0)
wait(400)
end
Gumpsum = 0
XStart = UO.ContPosX + 241
YStart = UO.ContPosY + 71
XEnd = UO.ContPosX + 255
YEnd = UO.ContPosY + 81
for a = XStart,XEnd do
for b = YStart,YEnd do
Gumpsum = Gumpsum + (UO.GetPix(a,b))
end
end
if(Gumpsum~=880767788)then
UO.LObjectID = QuestID
UO.Macro(17,0)
wait(250)
GetQuest()
end
while(UO.ContSizeX==507)and(UO.ContSizeY==496)do
X= UO.ContPosX + 130
Y= UO.ContPosY + 463
UO.Click(X,Y,true,true,true,true)
wait(400)
end
end

is there sopposed to be a variable in GetQuest() maybe thats the problem? im very new at reading let alone trying to edit these but after looking it over that keeps making me wonder where its trying to see what quest to accept.

Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: TrailMyx on September 05, 2011, 06:50:41 AM
On OSI, they changed the position of the text.  So if you are using OCR, it's not in the same spot as freeshards.  Unless Crome can do some debugging on an OSI shard, this script may only work for certain freeshards.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 05, 2011, 06:55:19 AM
i play on the same server as chrome i think, i play on rw i havent been osi since they made it clear they didnt like me  :'(
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: TrailMyx on September 05, 2011, 06:57:42 AM
Ohhhhhhh.  Well is should work.. ;)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 05, 2011, 09:18:14 AM
On OSI, they changed the position of the text.  So if you are using OCR, it's not in the same spot as freeshards.  Unless Crome can do some debugging on an OSI shard, this script may only work for certain freeshards.
I tried it on a OsiClone who clone every change on osi they do and worked.. and i already used it on RWUO as well(Ml Freeshard) .
Question to Monoxide:
do you have anything covered on the questname gump? any other gump can disturb ocr what use On Top pixel scanning.
If you do like i say and it doesnt work either, i will pull up a revisision and try it out. Gimme some more information:)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 05, 2011, 09:20:03 AM
is there sopposed to be a variable in GetQuest() maybe thats the problem? im very new at reading let alone trying to edit these but after looking it over that keeps making me wonder where its trying to see what quest to accept.
add
Code: [Select]
print(Gumpsum) a line before :
Code: [Select]
if(Gumpsum~=880767788)thenand look what number you get. if they really changed the position the number will be different, then change
Code: [Select]
if(Gumpsum~=880767788)thenwith the number u got by the quest and it will recognize again
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 05, 2011, 09:50:52 AM
so i looked in, seems like their were a change of gumps.. Osi have 507_496 as Gumpsize , RWUO have 507_430 as Gumpsize, + Location of Questname is changed and some other small changes.
I fixxed it and uploadet for RWUo in my first post.
Enjoy

Edit:
I will make a small tutorial soon if that happens on other shards,too how you can fix it for your shard in about 2 minutes work. So i hope you can use it as well :)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 05, 2011, 10:05:06 AM
awesome! just tried it out its working great!!!! excellent script!
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 06, 2011, 06:07:34 AM
Just a small Preview, what coming up,soon..
Check Attachment(Runable Menu for New Version)
I want some Feedback, do you like the Design and the Options? Any Suggestions?
Modify:
Addet Running Menu:
Beware this is only the Menu Design with a Debug function. Right now i want just know if you would like such a Menu and functionability
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 07, 2011, 03:31:55 AM
sweet, ill take a look at it after work!
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 08, 2011, 05:46:24 AM
Right now iam Coding the Base Modules. I hope we have some Osi-Playing Participants who would help me gather some GumpInformations for the HW Quest.
I planning Followed Running Structure:

Scan For NPC
If Distance > 2 Move to NPC
Double Click on NPC until Gump is Openend.
Scan Title
If its the Right title Scan for Accept\Close\Refuse Gumps
if Accept is missed it means you already accepted a Quest
then it scans your QuestLog
if The Right Questlog is accepted, then do Quest
else Remove Quest and Start at Scanning NPC again.
Now Quest should be applied, it Scans if he need Ressources from Giant Beetle or can fullfill byhimself
at Tailor\Carp\Tinker\BS he starting Crafting, at Fletcher Toogle the Bolts.
Then Fullfill the Quest Again, Scanning if its possible to fullfill, if not recheck Crafting Sequences and Redo the Finishing.
After Reviving Craftmans Satchel it will be opened.
When Common Recipes are checked then it will loot all Commons
When Rare Recipes are checked then it will loot all Rares
When Runics are checked then it will loot all Runics
When Looteval is checked then it will Check all Non Questitems in Bag and evaluate em.If it hits the minimum Score it will be lootet
When Regular Bonus Talismans are checked and it hits the minimum Score, it will be lootet
When Exceptional Bonus Talismans are checked and it hits the minimum Score, it will be lootet
Throw Bag on the Ground Random(Osi) and Throw in Trashbag on RWUO.
Checking Required Ressources, if you have more than needet Redo Quest, Else stop Script


Want to know what you think about..

Crome
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 09, 2011, 05:06:41 PM
So i looked at the gumps they look awesome! Love the loot options part! but not sure what a rare recipe tailsman is lol, but looks like u got urself some nasty script in the making!
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 09, 2011, 11:20:03 PM
So i looked at the gumps they look awesome! Love the loot options part! but not sure what a rare recipe tailsman is lol, but looks like u got urself some nasty script in the making!
Having some Problems with the live statistics and figured out the "Itemeval" for Openuo on Easyuo.com is such low.. so i need to write my own Version first. so it could be a little bit delayed:)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: MeWonUo on September 10, 2011, 10:45:30 AM
After seeing how great your other quester functioned, I think I'd like to give this a try this afternoon.  

Edit:  Just went down to HW with 1000 bolts to give this a spin.  I seem to be getting the same issue mentioned previously in the thread where it simply cycles through the quests without selecting one.

I attempted to put the "print (gumpsum)" command in as you suggested, but that doesn't seem to be giving me anything to look at so I can compare the gump info.

I apologize in advance if I'm missing something simple.  As you know, I'm brand new to oeuo...but trying. :)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Monoxide on September 10, 2011, 06:27:22 PM
Did you try both versions? the rw and the original? the rw version solved my problem for the circling thru, i think crome was saying something bout the gump size was different on rw. if ur using a completely different server that may be the issue, and Crome i been looking at the items that come in the packs i dont think i found one thing worth saying thru thousands of packs lol unless osi has better items it might not even be worth making an eval.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: MeWonUo on September 10, 2011, 07:08:19 PM
Did you try both versions? the rw and the original? the rw version solved my problem for the circling thru, i think crome was saying something bout the gump size was different on rw. if ur using a completely different server that may be the issue, and Crome i been looking at the items that come in the packs i dont think i found one thing worth saying thru thousands of packs lol unless osi has better items it might not even be worth making an eval.

I did not think to try the RW version because I play on OSI shards.  Guess it never hurts to try. :)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 10, 2011, 09:53:40 PM
Did you try both versions? the rw and the original? the rw version solved my problem for the circling thru, i think crome was saying something bout the gump size was different on rw. if ur using a completely different server that may be the issue, and Crome i been looking at the items that come in the packs i dont think i found one thing worth saying thru thousands of packs lol unless osi has better items it might not even be worth making an eval.

I did not think to try the RW version because I play on OSI shards.  Guess it never hurts to try. :)
As we noticed Osi have complete Different Gumpsizes as other Shards.
If someone would give me the needet informations i would change it for osi, too and\or would show how to chance:)
Edit:
Maybe i will make a Trial account on my holidays then i can check how i can fix it for osi..
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: MeWonUo on September 11, 2011, 02:42:04 AM
I checked the gump sizes that you have on this line here:

Code: [Select]
while(UO.ContSizeX~=507)and(UO.ContSizeY~=496)do

These are correct for OSI.  Is there something else I should be looking for?

Thanks. :)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 11, 2011, 07:31:01 AM
I give you now an example about:
(http://img13.imageshack.us/img13/2614/heartwood.png) (http://imageshack.us/photo/my-images/13/heartwood.png/)
This is the Gump on RWUO as example.In the Code is an OCR location how he must Scan the Gump.Then it returns you a Code(Gumpsum) this code can be different depending on the Location of the Title, and the size of the OCR Scanned Area, if its different, it must be changed.
Then it has a Location for the Accept Button, in BetaCode of mine, i using Closegump as well to prevent lag Problems with gumping:)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Neo on September 11, 2011, 08:17:48 PM
Crome, just tested this, the OCR is properly set for OSI...

The problem is, when you open up the quest gump, it also opens the npc's paperdoll, and that's the contname we get...

So you need to change this somehow, so that it focuses on the quest gump instead...

neo
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 11, 2011, 11:04:11 PM
Crome, just tested this, the OCR is properly set for OSI...

The problem is, when you open up the quest gump, it also opens the npc's paperdoll, and that's the contname we get...

So you need to change this somehow, so that it focuses on the quest gump instead...

neo
Oh  i didnt knowed this, on Freeshards no Paperdoll Gump appear. I will check this and remind this as fix for next Version. I recently rewritet the Scanner a little bit so it should work a bit better in coming Version.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: TrailMyx on September 12, 2011, 09:52:42 AM
I had to make an adjustment for this in the EUO version of the quester also.  I basically have to bring the quest gump back into focus because the vendor gump also pops up afterwards.  Should be really easy with OEUO.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 12, 2011, 10:37:59 PM
I had to make an adjustment for this in the EUO version of the quester also.  I basically have to bring the quest gump back into focus because the vendor gump also pops up afterwards.  Should be really easy with OEUO.
Untested yet but i will try to get it via UO.ContTop(index)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Endless Night on September 26, 2011, 04:52:52 PM
yea i noticed that as well recently... i just close top gump if name = paperdoll, thus refocusing on the quest gump
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 27, 2011, 05:01:24 AM
yea i noticed that as well recently... i just close top gump if name = paperdoll, thus refocusing on the quest gump

Testcode for that Gumping is Already in my TestCode. But it seems like it like to crash often when i check too often for gumps.
In my Testcode i replaced every "If UO.ContsizeX and UO.ContsizeX" with a Container Checking Function. I need more Testcode before i can release a stable new version.
Right now i can give specific Propertys in a CheckCont function. It returns me Open or Close and i can handle the result.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Rodriguez on January 10, 2012, 04:46:33 AM
I play on free shard and there is no delay between quests, if you lucky you can get 2 in a row.

Script works fine except it gets stuck with marking quest item every few quests (mark and unmark) and when it takes something from bag it gets stuck also. Its still good script as i told Crome earlier, wish to try newer version  :).
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: said3 on February 13, 2012, 09:48:59 PM
I have another trouble too, its all about the gump, the macro just keep calling for a quest even lethal darts appear... i tried to fix it myself but i dont know enough about OEUO to solve it, also in my freeshard there is a little delay between quests and i have the message that says "Already queued" the whole time, if  you can gimme some tips to fix it i will really apreciate it, cuz i get stucked just when the macro begins...
Thanks btw =)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 14, 2012, 04:56:52 AM
I have another trouble too, its all about the gump, the macro just keep calling for a quest even lethal darts appear... i tried to fix it myself but i dont know enough about OEUO to solve it, also in my freeshard there is a little delay between quests and i have the message that says "Already queued" the whole time, if  you can gimme some tips to fix it i will really apreciate it, cuz i get stucked just when the macro begins...
Thanks btw =)
Its been a while, since i looked at that code.. Tell me how high the Delay is, and i will look where u need to implement. :)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: said3 on February 14, 2012, 08:29:35 AM
I have another trouble too, its all about the gump, the macro just keep calling for a quest even lethal darts appear... i tried to fix it myself but i dont know enough about OEUO to solve it, also in my freeshard there is a little delay between quests and i have the message that says "Already queued" the whole time, if  you can gimme some tips to fix it i will really apreciate it, cuz i get stucked just when the macro begins...
Thanks btw =)
Its been a while, since i looked at that code.. Tell me how high the Delay is, and i will look where u need to implement. :)
The quest delay its about 1.5 more or less, also if u could tell me how to fix the problem with the quest caller would be awesome, cuz the macro just open quests and never stops even if lethal darts appears as i said, so its useless for my btw, thanks for ur effort ^^
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 14, 2012, 10:05:37 AM
If you want to add Delay after Open Gump -> change Line 121
If you want to add Delay after it Scanned Gump -> Add Wait(Delay) between Line 132 and 133
if you want to add Delay before he repeat Quest -> Change Line 136
if you want to add Delay after he recognized Quest -> Add Wait(Delay) between Line 138 and 139.
Hope you get it working.
Beware : 1.5s means 1500 as Delay
Code: [Select]
Wait(1500)
Good Luck
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: said3 on February 14, 2012, 11:13:46 AM
Well i fixed the timing trouble, but it still doesnt recognizes the quest, and keep gumping till forever without accept quests :S:S
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 14, 2012, 12:05:27 PM
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 14, 2012, 01:07:13 PM
Here is a Small Preview about Stealth Version :


Avaible User Options yet:
Code: [Select]
//xxxxxxxxxxxxx User Options xxxxxxxxxxxxxxxxxxxx
// Setable User Options :
const SecureBag = $40000AB0; //ID where to Save Rewards
const MinTurns = 10 ; // Minimum Amount of Turns before Handle Rewards
const RareRecipes = true; //Enable Rare Recipe Looting
const SlayerTalisman = true; // Enable Slayer Looting
const KillerTalisman = 95 ; // 0 = off , >= 0 = Percentage of Bonus
const ProtectorTalisman = 99 ; // 0 = off , >= 0 :Percentage of Bonus
const Talismanbonus = 10 ; // 0 = off , >= 0 :Percentage of Bonus




Tomorrow is my Girlsfriends Birthday but i hope i can finish it until Weekend..
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 22, 2012, 07:46:18 AM
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: smokinjoe26 on February 22, 2012, 08:31:31 AM
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Casho on February 22, 2012, 08:52:45 AM
Holy sh..! This is freaking fast !

I always use EUO but wanted to give this script a try and damn...
Why is this so fast compared with your EUO script ? Is it the way u wrote the script or rather the code which is used at Openuo ?

Thanks for sharing!
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 22, 2012, 09:14:53 AM
Holy sh..! This is freaking fast !

I always use EUO but wanted to give this script a try and damn...
Why is this so fast compared with your EUO script ? Is it the way u wrote the script or rather the code which is used at Openuo ?

Thanks for sharing!
Easyuo is an interpreted Languange. It needet to be converted in background all the time what slows down the speed. Lua is more flexible in many parts so an addaption is much easyier from easyuo sources to lua.
Easyuo is coded in Delphi, You code there in an own "created" Pseudo Languange..
So you have much more background work what slows down.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Casho on February 22, 2012, 09:25:29 AM
I see.
So I have to learn a bit lua to fit the scripts to my needs.

thanks again
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Kane12 on February 24, 2012, 06:39:32 PM
Thanks Crome and smokinjoe26 for your responses to my messages on helping me try to get this script modified for OSI and functioning. I have spent another hour on it trying to go thru it. I have the wait functions changed and the gump size option areas changed. I am just trying to figure out where to paste the GumpQuest function and the GumpChecker section. I think with Smokinjoe's help I pasted correctly at the gumpquest area....but still not sure where the gumpchecker goes....I managed to eliminate the error I kept getting for a missing gumpquest function...now the script is flying....opening gump quest after gump quest....over and over, not stopping at the quest needed....which makes me think the gumpchecker hasn't found it's home yet in my pasting attempts...

Ugh...this stuff gives me a big headache...I love it...but just still cannot get the mechanics of it to understand it.....sure glad raising children is much easier for me lol....or I would have some starving and deprived children. lol
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: smokinjoe26 on February 25, 2012, 05:38:28 AM
Thanks Crome and smokinjoe26 for your responses to my messages on helping me try to get this script modified for OSI and functioning. I have spent another hour on it trying to go thru it. I have the wait functions changed and the gump size option areas changed. I am just trying to figure out where to paste the GumpQuest function and the GumpChecker section. I think with Smokinjoe's help I pasted correctly at the gumpquest area....but still not sure where the gumpchecker goes....I managed to eliminate the error I kept getting for a missing gumpquest function...now the script is flying....opening gump quest after gump quest....over and over, not stopping at the quest needed....which makes me think the gumpchecker hasn't found it's home yet in my pasting attempts...

Ugh...this stuff gives me a big headache...I love it...but just still cannot get the mechanics of it to understand it.....sure glad raising children is much easier for me lol....or I would have some starving and deprived children. lol

First off if you are modifying this for OSI ... Do yourself a huge favor and go through the entire script and change all your waits to 1000 or more.

A Lua "function" can be called from anywhere.  So, it doesn't matter where you put your function.  You could get some goffy errors if you have duplicate named different functions, I imagine.  You will also want to avoid pasting functions within other functions .... take notice of Crome's "fancy" Function Separations.
--#######################################
 Make it neater that way you can better understand it.  Keep your additional functions amongst the other functions.  Lua doesn't care about blank spaces vertically or horizontally, that being said, space it out best for you to understand it. 

you WILL get there if you keep at it.  Mechanically what you are doing is the following steps:
1.  looking around for a "Bowcrafter" + "Quest Giver" -- sounds like you made it this far
2.  getting a quest from the "QuestID" --sounding like you made it this far also
3.  then the script SHOULD scan the pixels of the gump to look for the quest name "Lethal Darts"
     if your script pulls this quest up and then keeps pulling up other quests ....
     then you need to focus on the pixel scan portion of the script
     a.  Make sure you can see the whole Quest gump

pull up the quest offer then lay out your screen like i have done in the picture.  The two UO.NextCPosX and UO.NextCPosY also the UO.ContPosX and UO.ContPosY variables in the pic do not matter ..... everything else of yours should match up.
(http://img254.imageshack.us/img254/9916/gumpscan.jpg) (http://imageshack.us/photo/my-images/254/gumpscan.jpg/)

here is that little portion of code then hit play :

Code: [Select]
  Gumpsum = 0
  XStart = UO.ContPosX + 150
  YStart = UO.ContPosY + 70
  XEnd = UO.ContPosX + 320
  YEnd = UO.ContPosY + 80
  for a = XStart,XEnd do
    for b = YStart,YEnd do
      Gumpsum = Gumpsum + (UO.GetPix(a,b))
    end
  end
  print(Gumpsum)
  --if(Gumpsum~=7394037874)then -- this commented out for learning purposes

Let me know what you find out Kane
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 25, 2012, 06:38:16 AM
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Kane12 on February 25, 2012, 07:52:23 AM
Spent more time this morning before heading to breakfast with the family. I have all the things in place and working thru the bugs.....

My error now is indicating line 118 with the following error which happens after my toon gets off the beetle.

The error is:

...s\OEUO\runic fletcher quest fixxed rwuo mike fix.lua:118: attempt to call global 'GumpChecker' (a nil value)

line 118 is

local lookAtGump = GumpChecker ()


I checked for double code that I might have accidently posted to create the nil value. I am not sure how values reset in case there is something at the end of the gumchecker section I added that needs to be put on the end to reset a value maybe?

Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 25, 2012, 08:11:45 AM
Just Curious : Did you Pasted the function Gumpchecker below or above of that Condition?
if you Pasted below then lua never can call that function.
I can give you an Example for forced structures in Lua:

Wrong:
Code: [Select]
--##############
function A()
 B()
end
--##############
function B()
print('Test')
end
--##############
A()

Right:
Code: [Select]
--##############
function B()
print('Test')
end
--##############
function A()
 B()
end
--##############
A()

functions, definitions and classes must be declared before executed in Scriptqueue
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: smokinjoe26 on February 25, 2012, 08:59:38 AM

functions, definitions and classes must be declared before executed in Scriptqueue

I stand corrected.  You were 100% correct on that quoted statement.  All apologies.  The function call must be after the function.

Although Crome, I pasted both examples, both yeild the result of printing Test.  Right or wrong they both work. 
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Kane12 on February 25, 2012, 10:13:41 AM
I moved to the bottom of the GetQuest() section.

Now the script is running with no errors and opening up quests and not opening the gump for the quest giver......but it still isn't identifying the lethal dart quest yet to run.

Still working on it...


Thanks for your help with getting me straightened out and in the right direction.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: batotero on December 25, 2012, 05:31:54 AM
I have a problem in my character menu is well

Open Paperdol
Open Backpack
toggle item insurance
Renewing cancel ....
Togle monster ....
Toggle Quest Item
Player Info

the script is not marked "Toggle Quest Item" but he is scoring "Player Info" think "Player Info" is only the server that I play. Can someone help me change this?

PS: the server I play the quest is equal to OSI

sorry for my english
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on December 25, 2012, 10:48:01 AM
Script is not further in development , but i would check this code :
Code: [Select]
wait(500)
X = UO.ContPosX + 70
Y = UO.ContPosY + (UO.ContSizeY - 15)
UO.Click(X,Y,true,true,true,true)
wait(500)
At Line 170 i think. It calculate ContextSize and taking last Entry, so you need to adjust the
Code: [Select]
- 15 to more or less until it fits.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Endless Night on January 24, 2013, 08:32:18 AM
Script move to approved library
Thank you for your submission.


If you feel the script is in the wrong section please send me a pm.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Rup on February 13, 2013, 09:17:55 PM
Does anyone have a working copy of this script for an OSI shard?? I am trying to fix it my self but i am a newbie i think i can figure it out with enough time.  I figured i would ask since it sounds like a few people have got it working.

Thanks
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Ultima on February 14, 2013, 11:00:29 AM
I tried running this awhile back and couldn't get it to work either. If I knew how to fix it I would as we need more scripters in HW! HW Runics are getting harder to come by and they keep going up in price.

TM has his Heartwood Quester and Freddy has a library with a Questor as well that's listed in his signature.

If anyone gets this working I wouldn't mind giving it a whirl myself.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 14, 2013, 10:44:21 PM
I tried running this awhile back and couldn't get it to work either. If I knew how to fix it I would as we need more scripters in HW! HW Runics are getting harder to come by and they keep going up in price.

TM has his Heartwood Quester and Freddy has a library with a Questor as well that's listed in his signature.

If anyone gets this working I wouldn't mind giving it a whirl myself.
Stealth Version of this coming soon. I retired from openuo longer ago:&
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Ultima on February 15, 2013, 12:24:56 AM
Stealth Version of this coming soon. I retired from openuo longer ago:&

I'm going to have to try Stealth then! ;)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Rup on February 15, 2013, 11:00:56 AM
Very cool to hear Crome i can't wait to try it, if you needs some Beta testing let me know. 
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 15, 2013, 10:37:38 PM
I wroted this ages ago on stealth as well, long before i went back on Osi. Due the changes of upcoming Stealth i planning a rewriting of my framework to oop classes and will rescurect my old code..

(http://i.imagebanana.com/img/4p677ntr/thumb/HeartwoodonFire.png) (http://www.imagebanana.com/view/4p677ntr/HeartwoodonFire.png)

Just a small Preview how it could look and work ;)
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Ultima on February 16, 2013, 07:51:31 AM
Geez Louise! Looks like EasyUO on steroids!

I'm going to need the plug N play version. ;)

I don't know if Stealth is for guys like me you don't have any clue how to code. Stealth is for the Big Dogs!
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on February 16, 2013, 12:59:09 PM
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Chops on September 08, 2013, 04:36:09 AM
This script seems very fast, problem is that it doesn't pick the right quest, keeps going through all the quests..
The problem must be because I am using it in a different freeshard, is it hard to make the necessary changes?
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crome969 on September 08, 2013, 04:59:58 AM
This script seems very fast, problem is that it doesn't pick the right quest, keeps going through all the quests..
The problem must be because I am using it in a different freeshard, is it hard to make the necessary changes?

This Script is sooo old i have no clue why i did what back then. You still farm necessary mother?
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Dark Force on July 23, 2014, 08:29:43 AM
Hi There chrom no chance u could icq me or message me i have few questions 667758387
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: bnash232006 on October 27, 2014, 03:27:03 AM
Hi Crome969, I am new to scripting. All I have ever done was using a gold looting script, taming script and skill script via EasyUO. I want to try the Heartwood Runic Kit but I have no clue where to start. I see you said to PM you to ask for the script but I dont know how to do that as I am a new member here. Can Open EUO scripts be used in EasyUO? Please get back with me about this because I just returned to UO after being gone for 4 years and I would really like to try this Heartwood Runic Kit script. My email is bnash232006@yahoo.com. Thank you.
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: hrs024 on April 10, 2015, 04:33:41 PM
Hey im usin the script and it works fine until it finda a reward and when it says its loting it just picks up loot and drops it in packy and keeps redropping it in packy?
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: asdseeapad on August 02, 2015, 01:15:24 PM
cool thx
Title: Re: [OUO] Heartwood Fletcher Runic Farmer by Crome
Post by: Crisis on August 02, 2015, 07:40:43 PM
cool thx

Try the new member section and read the stickies.  :o