ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Resource Farming => Topic started by: NObama on December 29, 2009, 05:26:41 PM

Title: Luck Shroom Farmer
Post by: NObama on December 29, 2009, 05:26:41 PM
I think Coragin was running low on Shrooms the other day.  This ought to fix that...

UPDATED Apr 2012 to fix rail issues.


You must be on a stealth-capable character
You must be at the north end of the Tomb of Kings passage, just past the serpents.

Code: [Select]
;======================================================================
; Script Name: Shroom Farmer
; Author: NObama
; Version: 0.1 (beta)
; Shard OSI / FS: OSI OK   ; FS not tested
; Revision Date: 12/29/2009
; Purpose: Wander Stygian Abyss to gather Chaga (Luck) Mushrooms
; Globals: None
; Credits: Thanks to Endless Night for teaching me to write rails.
;    The rails you see here are largely of his own devising, which
;    he graciously taught to me when we collaborated on Ant Farm.
;    And, of course, thanks to TM - both for the subs and for SUO.com!
;======================================================================

v1b: Updated rail points, to address certain "stuck" issues.

v0.1: First Beta release, feedback appreciated.

To Do:  
 - Implement BoS
 - Implement a stealth check that actually works
 - Implement rails for the Fel Chaga mushroom spawns
 - Fix everything that you guys point out

 :)
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on December 29, 2009, 05:29:51 PM
Anyone know how to force a character to WALK only?  If your cat bumps the mouse when this is running, you're gonna get et.

 :)
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on December 30, 2009, 06:28:59 PM
Picks up about 150 shrooms an hour.  It would do more if I made the search routine a little more efficient...but how many do you really need?

 :)
Title: Re: For Coragin: Shroom Farmer
Post by: Hoby on December 30, 2009, 07:37:02 PM
Good job!!
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on December 31, 2009, 10:39:52 AM
Thanks!  It's surprisingly non-buggy for a first try.  Most of my stuff fails horribly at the outset.

Either I'm getting a little better, or this was really really easy.  Maybe both?

 :)
Title: Re: For Coragin: Shroom Farmer
Post by: voodoo on February 25, 2010, 02:08:56 PM
i decided to do some work on my luck suit and needed a smack load of shrooms to burn, so i ran this.

i found that i needed the curser RIGHT ontop of my dude or he ran like a mad man.

short of that it worked really good, hehe.

i actually fell asleep and left it going all night and woke up to just under 1k in shrooms.

so ya, it works!
Title: Re: For Coragin: Shroom Farmer
Post by: Hoby on February 25, 2010, 02:34:22 PM
Quote
actually fell asleep and left it going all night and woke up to just under 1k in shrooms.

lol
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on February 25, 2010, 07:33:25 PM
Yeah - I should put in some sort of warning about having your cursor in the middle of the screen, or force the toon to walk.

Otherwise...*CHOMP*
Title: Re: For Coragin: Shroom Farmer
Post by: Endless Night on February 25, 2010, 07:58:29 PM
isnt their a check box in the optiosn .. always run  or something like that .. turn it off.

I see you learnt my mini rail system extremely well :)  .. nice (thanks for the credits)
Title: Re: For Coragin: Shroom Farmer
Post by: manwinc on February 26, 2010, 12:09:52 AM
When Stealthing, ALWAYS ALWAYS ALWAYS ALWAYS ,*Cough* ALWAYS, Use Move.

I Personally Hate move, but when it comes to stealthing pathfinding is just gay.
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on February 26, 2010, 05:41:17 PM
EN, your mini-rail system is the bomb.  I don't use anything else anymore when I'm moving toons from A to B!

 :D
Title: Re: For Coragin: Shroom Farmer
Post by: 12TimesOver on May 23, 2011, 09:17:35 AM
Hey Nobama - I'm looking to clean this SUO script library up since it really isn't applicable any longer. Can you tell me if you would like to move this to Elite, Public, or just remove?

Thanks.

X
Title: Re: For Coragin: Shroom Farmer
Post by: gimlet on May 23, 2011, 01:09:29 PM
heheheh is was actually gonna run this today on seige!
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on May 23, 2011, 07:55:18 PM
Hey Nobama - I'm looking to clean this SUO script library up since it really isn't applicable any longer. Can you tell me if you would like to move this to Elite, Public, or just remove?

Thanks.

X

Whatever you'd like.  It's not that polished, and it's pretty much one-use.  Let's put it up in Public and, if no one downloads it, I'll ask someone to remove it in like 90 days.

Title: Re: For Coragin: Shroom Farmer
Post by: 12TimesOver on May 24, 2011, 02:04:57 AM
Moved to script submissions.

X
Title: Re: For Coragin: Shroom Farmer
Post by: Outlaw Josey Wales on May 24, 2011, 05:54:05 AM
i need to build luck suit so ill give this one a go
Title: Re: For Coragin: Shroom Farmer
Post by: Endless Night on November 02, 2011, 05:18:01 PM
Moved to script library.
Thanks for your submission.
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on November 02, 2011, 05:20:54 PM
Wow.  I actually coded something that is archived somewhere.  Awesome.
Title: Re: For Coragin: Shroom Farmer
Post by: _C2_ on November 06, 2011, 06:01:43 AM
This script doesnt matter if you have a stealther.

it only hides you in the beginning and then runs back and forth on a rail.  it picks up mushrooms perfectly and runs the rail accurately but in run mode even when you have always walk on.  

It does not detect monsters and alter performance to save you if they come to ya.

Not sure if feedback was wanted or the script was still being finished to work with stealthers.

It got me what i needed once i lured monsters off.
Title: Re: For Coragin: Shroom Farmer
Post by: _C2_ on November 06, 2011, 06:05:59 AM
I didnt see the warning in the middle of the thread and only followed the directions.  i see that if i dont play other clients and leave the cursor hovored over my guy, he will walk.  I'd add that to the two red lines at the top of the script.
Title: Re: For Coragin: Shroom Farmer
Post by: _C2_ on November 06, 2011, 06:18:15 AM
okay, it actually worked better when i was not stealthed.  it is getting stuck going back in forth in one section of the cave and not going end to end even if you see a mush room down the hall it just stays in one section no matter where i start it if i do it in stealth.  if i start way at the bottom enterence i even get a l lot of cannot get there messages.  ideas?
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on November 06, 2011, 06:30:29 AM
This was just a 5 minute effort to help our Coragin.  Not sure that I'm going to go back to it and make many changes, but I will try and look at it today and try and remember what I was thinking when I wrote it.
Title: Re: For Coragin: Shroom Farmer
Post by: _C2_ on November 06, 2011, 07:07:38 AM
i added two more locations and it seemed to settle down the cannot get there or over pacing certain areas.  i bet it was more of a wait issue form me and not makign it to a certain location in time.  i got 250 pretty quickly though and would of had more if i didnt crash.

sub SetupShroomLoopValues
  gosub AddShroomloopvalue 36 79 -1
  gosub AddShroomloopvalue 37 74 0
  gosub AddShroomloopvalue 37 71 0
  gosub AddShroomloopvalue 38 72 0
  gosub AddShroomloopvalue 36 60 0
  gosub AddShroomloopvalue 36 56 0
  gosub AddShroomloopvalue 36 57 0
  gosub AddShroomloopvalue 36 59 0
  gosub AddShroomloopvalue 36 52 0
  gosub AddShroomloopvalue 36 41 0
Return
Title: Re: For Coragin: Shroom Farmer
Post by: Endless Night on November 07, 2011, 06:17:21 PM
Nobama .. seems this is  liked script and fills a unique spot.. so maybe you should consider supporting it.  If you choose not to support it please send me  a pm and i will move it into the inactive submissions folder.
Thanks and good luck eitherway.
Title: Re: For Coragin: Shroom Farmer
Post by: _C2_ on November 07, 2011, 06:24:15 PM
some small tweaks to timing and running a rehide script when revealed i have 1.5 k in just a few hours max
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on November 07, 2011, 06:57:41 PM
Nobama .. seems this is  liked script and fills a unique spot.. so maybe you should consider supporting it.  If you choose not to support it please send me  a pm and i will move it into the inactive submissions folder.
Thanks and good luck eitherway.

Alright, alright.  With great power comes great responsibility...and I am green, after all.

I will support this script.  New version posted, to incorporate C2's rail mods.
Title: Re: For Coragin: Shroom Farmer
Post by: NObama on November 07, 2011, 07:08:55 PM
some small tweaks to timing and running a rehide script when revealed i have 1.5 k in just a few hours max


Can you be more specific?  I'll build them in...
Title: Re: Luck Shroom Farmer
Post by: seeriusly on November 14, 2011, 04:16:02 PM
You could just use this to handle the walk only issue...


Code: [Select]
set %walk ON

if %walk = ON
event macro 32 0
wait 10
if now_off IN #SYSMSG
  return
event macro 32 0
return

Or don't even use the variables so it walks automatically for everyone.
Title: Re: Luck Shroom Farmer
Post by: NObama on November 14, 2011, 04:18:36 PM
Splendid recommendation.  I will look to include that in the next release.  I've never actually played with that event macro.
Title: Re: Luck Shroom Farmer
Post by: _C2_ on November 14, 2011, 05:07:14 PM
it is not an issue of always run being on or off.  regarless of it being on or off, the character runs because the pathfinding rail part is too far away and it takes off to get there.
Title: Re: Luck Shroom Farmer
Post by: NObama on November 14, 2011, 05:56:27 PM
it is not an issue of always run being on or off.  regarless of it being on or off, the character runs because the pathfinding rail part is too far away and it takes off to get there.

Ahh.  It all becomes clear to me.
Title: Re: Luck Shroom Farmer
Post by: Khameleon on November 25, 2011, 03:15:23 PM
I love this script! its going to be a huge hit with luck suits being built right now.
I tried to run this script right out of the box, I started to have some issues with I can not reach that spot like some ppl did earlier in the thread, I also sat there and watched the script run for a about an hour, I also backwards engineered it so I knew exactly what you were thinking... its a very well thought out and written script....
I figured out why I was getting the "you can not reach that spot" message my character was moving to far North when you get to the last set of your way points you want him to go all the way back to the begging, and sometimes my character was to far to recognize where the location was, so I added more way points... actually I just took your current way points and made my character walk them backwards so on his way back he would pick up chaga's on his way back to way point 1.

Code: [Select]
;--------------------------------------------------------------
;--------------------------------------------------------------
; This rail is ONLY for the Tomb of the Kings.  I'm using this for test
; purposes.  Later, I'll add in the rail for the Fel champ area(s).

sub SetupShroomLoopValues
  gosub AddShroomloopvalue 36 80 0
  gosub AddShroomloopvalue 37 74 0
  gosub AddShroomloopvalue 37 71 0
  gosub AddShroomloopvalue 38 72 0
  gosub AddShroomloopvalue 36 60 0
  gosub AddShroomloopvalue 36 56 0
  gosub AddShroomloopvalue 36 57 0
  gosub AddShroomloopvalue 36 59 0
  gosub AddShroomloopvalue 36 52 0
  gosub AddShroomloopvalue 36 40 0
  gosub AddShroomloopvalue 36 52 0
  gosub AddShroomloopvalue 36 59 0
  gosub AddShroomloopvalue 36 57 0
  gosub AddShroomloopvalue 36 56 0
  gosub AddShroomloopvalue 36 60 0
  gosub AddShroomloopvalue 36 72 0
  gosub AddShroomloopvalue 36 71 0
  gosub AddShroomloopvalue 36 74 0
Return
;--------------------------------------------------------------
I aslo added this into the code
      Click 400 322 MC N
Right Before the Pathfind code... this will force your Mouse over your character without clicking him.... you might have to change the x and y screen cords depending on your setup....

Title: Re: Luck Shroom Farmer
Post by: NObama on November 26, 2011, 10:51:03 AM
Noted.  However, I am on scripting hiatus until after the holidays.  If I can, I'll test your rail points...but it will be a bit.
Title: Re: Luck Shroom Farmer
Post by: Khameleon on November 26, 2011, 12:17:17 PM
I'm having Client Crashing Issues.... I haven't been able to pin point the reason behind it yet... just wondering if anyone else has this issue?
Title: Re: Luck Shroom Farmer
Post by: black06si on February 12, 2012, 09:24:40 PM
Excuse me Nobama how do i download your script?  or where?
Title: Re: Luck Shroom Farmer
Post by: _C2_ on February 12, 2012, 09:45:36 PM
Excuse me Nobama how do i download your script?  or where?

You are restricted and cannot access scripts at this time.  In your particular case, it looks like you have yet to have a new member introduction approved
Title: Re: Luck Shroom Farmer
Post by: NObama on February 13, 2012, 04:59:29 PM
I'm having Client Crashing Issues.... I haven't been able to pin point the reason behind it yet... just wondering if anyone else has this issue?

You're the first to report it.  I haven't run this since basically the first time I posted it.  Can you be more specific as to when the client is crashing?
Title: Re: Luck Shroom Farmer
Post by: NObama on February 14, 2012, 09:07:29 PM
I just tried to replicate the client crash issue you're having, Kham.  Script works fine for me...if you can call a really inefficient kludge of code "fine."

I ping with a really low latency, though, so it is possible that you're crashing because you're trying to drag the shroom at the same time the script moves you.  Perhaps increase wait times?
Title: Re: Luck Shroom Farmer
Post by: Magier on April 25, 2012, 09:31:44 AM
Just ran this today and it worked great, no problems yet and hopefully none ever.

Yet another awesome script by the script geniuses!

Added in Khams thing and it helped alot in the movement.
Title: Re: Luck Shroom Farmer
Post by: NObama on April 25, 2012, 01:14:23 PM
Glad you liked it, although I certainly wouldn't put this script in the same category as most of the other ones on this board!
Title: Re: Luck Shroom Farmer
Post by: Magier on April 25, 2012, 11:54:39 PM
The first couple runs worked great, but it seems to get glitches in the pathfinding where it just says it can't get there and is near a wall.

this seems to happen about every half hour or less now :( i can't seem to pin point where it does this as it happens at multiple places in the rail.
Title: Re: Luck Shroom Farmer
Post by: NObama on April 26, 2012, 02:44:26 PM
Interesting, particularly given that it worked for you with no problems before.

Potential sources:

1) Lag.  Did your connection suddenly slow?  The wait times in between pathfinds are pretty tight.  If you're getting a lot of "Can't get there" that might be part of the problem
2) EUO shenanagins.  Sometimes a UO and EUO restart solves mysterious problems.
3) Patch.  Did something change in UO since the last time you ran it?  I haven't updated this script in a very long time, but if something has changed I'll try to take a look at it for you this weekend.

Let me know in a post here.
Title: Re: Luck Shroom Farmer
Post by: Khameleon on April 26, 2012, 05:16:25 PM
I had this problem a while back, some mushrooms spawn so far up that the next way point out of sight... I thought I posted my changes...


little disappointed in the research around here....

Click me or Scroll up a few posts. (http://www.scriptuo.com/index.php?topic=3845.msg77432#msg77432)
Title: Re: Luck Shroom Farmer
Post by: NObama on April 28, 2012, 01:39:44 PM
Kham's fixes incorporated.  Thanks!
Title: Re: Luck Shroom Farmer
Post by: Khameleon on April 28, 2012, 04:21:16 PM
heh.. No problem.... (has anyone seen my beer?)
Title: Re: Luck Shroom Farmer
Post by: timewalker on October 14, 2012, 06:26:48 AM

I aslo added this into the code
      Click 400 322 MC N
Right Before the Pathfind code... this will force your Mouse over your character without clicking him.... you might have to change the x and y screen cords depending on your setup....



Great addition to a great little script, however, you have to wait till a shroom is picked up to have a chance to pause or stop the script with your mouse.  Right before Click 400 322 MC N, I added the following so I could pause without moving the mouse.


Code: [Select]
onHotKey insert
      {
      display Paused, press start to continue collecting.
      pause
      }

Now onto making my rails for the fel side...