ScriptUO

Scripting Resources & Utilities => Stealth Client => Stealth scripts => Topic started by: unisharp on May 09, 2015, 12:16:21 PM

Title: [C#, ScriptSDK] EggFarmer
Post by: unisharp on May 09, 2015, 12:16:21 PM
SOURCE: https://github.com/unisharpUO/EggFarmer

What:
EggFarmer is a 100% AFKable script.  I split the nest areas into 5 different regions, each has their own rail.  Your character will walk around, and stop when it finds BOTH a snake and a nest, and then will proceed to use your charmer flute on it.  You must have Stealth (the skill.... and the program, of course.)  If you get revealed, there are no methods of defense setup - you will die.  Area 5 is notorious for this because of the Horrors around (they reveal you) but I've also died in other areas as well. - added method for smoke bombs.  Make sure you have plenty of snake charmer flutes in your inventory and also make sure they are insured. 

UPDATE 3-5-2020:
I removed the ClickOnce signing.  I'll figure out something eventually for people who don't want to compile from source.  For now, you must compile from source.  That means downloading Visual Studio 2019, cloning the source repo posted above, adding ScriptSDK as a reference and compiling it yourself.

Requirements:
https://github.com/Crome696/ScriptSDK

Instructions:
Step 1: Fire up Stealth (the application, not the skill)
Step 2: Connect a profile
Step 3: Run EggFarmer
Step 4: Click "Show Areas" to see where you need to start it at, and select it from the Drop Down Box
Step 5: Run to the "Start Here" location for the area you chose
Step 6: Click Start
Step 7: Go make a pizza


Statistics:
I watched it collect as much as 20 eggs in 30 minutes, and as little as 5 eggs in 1 hour.  It's complete RNG.  In about 3 hours I had 20 runs.
EDIT: 100 eggs in 8hrs

EDIT: 3/8/20, 5 runs collected in 2hrs (20 eggs) - area 3
44 eggs in roughly 3-4hrs

UPDATE 3/8/20: Optimizations made, dramatically increased rate of persuading snakes which will lead to increased eggs over time.
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: Crome969 on May 09, 2015, 11:28:09 PM
Awesome Contribution :)
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: manwinc on May 10, 2015, 10:44:23 AM
OooOOo might have to give it a shot and stop using mad hax to send the snakes to the nests with EUO
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: unisharp on May 10, 2015, 07:02:09 PM
Thanks guys :)

OK feedback from 2 users using the same version I am using.  Using EggFarmer via setup/installation deployment.  Both users got an error after pressing Start.  Something about an incompatibility with Stealth, which confuses the hell out of me.  I wish I was at their PCs lol.

Someone with Stealth experience could help me in diagnosing this problem, as it works flawlessly for me and I am unsure what to do.

Possible that the deployment didn't include ScriptAPI or ScriptDotNet2?  Not sure...

EDIT: Also, these 2 users are completely new to Stealth
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: manwinc on May 10, 2015, 07:10:30 PM
Get them to download team viewer and allow temporary access to see what's happening.

Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: unisharp on May 10, 2015, 07:40:34 PM
Ah yes didn't think of that :)

(http://i.imgur.com/ESQupT2.jpg?1)

That's the error they are getting, still lost =/

Tomorrow morning, probably just gonna switch to another PC install Stealth and EggFarmer and go from there


EDIT: Also, I noticed why I'm dying so much :)  the snakes can reveal you too, extremely rare, but they do...  So I'm going to be adding in a smoke bomb method and it'll pop one once revealed.
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: manwinc on May 10, 2015, 08:04:17 PM
Oh its not as rare as you think.... One of the snakes (Either coral or lava) will reveal you like crazy. Especially as more and more pop out of the holes. I wound up using smoke bombs and Shadow Strike to combat this.
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: Crome969 on May 10, 2015, 10:58:16 PM
Ah yes didn't think of that :)

(http://i.imgur.com/ESQupT2.jpg?1)

That's the error they are getting, still lost =/

Tomorrow morning, probably just gonna switch to another PC install Stealth and EggFarmer and go from there


EDIT: Also, I noticed why I'm dying so much :)  the snakes can reveal you too, extremely rare, but they do...  So I'm going to be adding in a smoke bomb method and it'll pop one once revealed.

This is a correction by dll, dll only works with correct revision. I could send you a new revision and the latest build of stealth (with EC support :O ) once iam home.
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: unisharp on May 11, 2015, 04:53:56 AM
EC SUPPORT!?  I want! :)

(http://i.giphy.com/100OSA3Yoqo9TG.gif)

That's funny I was taking a crack at LUA last night....  It seems that the default user interface that comes with Enhanced Client, has a ton of errors in it.  So I began working on that, and by working on it I mean I just started commenting stuff out lol ;)


manwinc: ahHA!  I knew one of those bastards were revealing me.  Good call on Shadow Strike, didn't think of that.  Only thing I'm thinking now is how to deal with being poisoned.  Considering picking up Necro to stay in Vampiric Embrace... not sure though.  Trying to come up with something better than chugging a Greater Cure Pot.
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: gimlet on May 11, 2015, 06:00:32 AM
I love that picture!
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: manwinc on May 11, 2015, 08:47:30 AM
Sadly vampiric embrace isn't always enough to combat it, so make sure you slap hpr on their suits. I think you would have to go stone form just to be 100% Poison proof, but that is too much of a skill investment for an already crunched character.
Title: Re: [V6, C#] Egg Farmer - 100% AFKable (NEED BETA TESTERS!)
Post by: unisharp on May 11, 2015, 02:05:57 PM
Tx to Crome969 this problem is resolved.  The issue was incompatible versions between ScriptDotNet2 and Stealth.  I sent them the version of Stealth I was using and voila, success.

I posted a link to the version of Stealth I built EggFarmer with.

Again, good to go people! :)

Enjoy.
Title: Re: [V6, C#] Egg Farmer - v1.0 (stable)
Post by: unisharp on May 12, 2015, 08:30:37 AM
Release: EggFarmer 1.0.0.10

Changes:
*Added support for Smoke Bombs, carry them in your main backpack
Title: Re: [V6, C#] Egg Farmer - v1.0.0.10 (stable)
Post by: Crome969 on May 12, 2015, 09:15:26 AM
i love it, how you are total into it !
Title: Re: [V6, C#] Egg Farmer - v1.0.0.10 (stable)
Post by: unisharp on May 12, 2015, 10:12:31 AM
i love it, how you are total into it !

 ;D  having so much fun!
Title: Re: [V6, C#] Egg Farmer - v1.0.0.10 (stable)
Post by: unisharp on May 12, 2015, 03:16:08 PM
Release 1.0.0.15

*Added delay after moving to an egg and before picking it up.  Caught an instance where we would get revealed walking to an egg, smoke bomb and try to pick up the egg at the same time, resulting in the program forever-waiting to move the egg.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ketchup on May 23, 2015, 12:39:55 AM
my god I wish I could even attempt to write a script, let alone write one like this!
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on May 23, 2015, 05:50:23 AM
my god I wish I could even attempt to write a script, let alone write one like this!

That's nice of you to say thank you :)
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ultimafreak77 on May 23, 2015, 05:46:47 PM
Thanks for the script, I need to learn how to use the stealth client now.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on May 27, 2015, 03:01:31 PM
for setting up stealth
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ultimafreak77 on June 01, 2015, 03:17:36 PM
for setting up stealth

Thanks Sibble! I watched the tutorial and got stealth set up. I am going to try the Egg Farmer tonight.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ultimafreak77 on June 01, 2015, 04:57:17 PM
I downloaded Egg Farmer and ran the setup. I selected my area, clicked start and received (Not Responding). This was with stealth open and the client started. I use windows 7 64-bit OS. Any help would be appreciated.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ultimafreak77 on June 04, 2015, 03:14:32 PM
Sibble, I still haven't been able to get your egg farmer to work. On a side note I figure anyone collecting lots of eggs is going to need gorgon lens?.. Does anyone have a good method to collect crystals/dust for making gorgon lens?
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: onlyindreams on June 04, 2015, 03:21:13 PM
Sibble, I still haven't been able to get your egg farmer to work. On a side note I figure anyone collecting lots of eggs is going to need gorgon lens?.. Does anyone have a good method to collect crystals/dust for making gorgon lens?

Back when I use to farm Medusa a lot, I'd go to the Prism of Light in Nujelm. Costs 10k to get in. Kill the Crystal Daemon and loot the Scattered Crystals they drop. You can use those to make the Crystal Dust.

I recommend a script to loot them as it's impossible to keep up with looting with the spawn rate. I take a sampire and never have any issues.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ultimafreak77 on June 04, 2015, 06:36:30 PM
Sibble, I still haven't been able to get your egg farmer to work. On a side note I figure anyone collecting lots of eggs is going to need gorgon lens?.. Does anyone have a good method to collect crystals/dust for making gorgon lens?

Back when I use to farm Medusa a lot, I'd go to the Prism of Light in Nujelm. Costs 10k to get in. Kill the Crystal Daemon and loot the Scattered Crystals they drop. You can use those to make the Crystal Dust.

I recommend a script to loot them as it's impossible to keep up with looting with the spawn rate. I take a sampire and never have any issues.

Thanks! I took my Sampire and got a bag full pretty quick. I am pretty sure I didn't loot all the crystals because of all the dead bodies. Ill try to make a script to loot the crystals.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on June 07, 2015, 06:35:35 AM
I downloaded Egg Farmer and ran the setup. I selected my area, clicked start and received (Not Responding). This was with stealth open and the client started. I use windows 7 64-bit OS. Any help would be appreciated.

Sorry been busy lately just caught this...  I will get back to you ASAP!
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: The Ghost on September 04, 2015, 01:17:16 PM
I'm blind or  unisharp  forget to post the link
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: bendel on September 04, 2015, 05:11:32 PM
Can't wait for it  8)
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on September 07, 2015, 06:38:11 AM
Download link updated!

https://gitlab.com/unisharp/EggFarmer

Let me know if there's any problems, I haven't use it since new Stealth release.  It still should work fine.
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on September 07, 2015, 06:51:06 AM
Yea... no lol..

I need to do some changes real quick, I'll post when it's done!
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: bendel on September 07, 2015, 08:06:07 AM
Thanks for taking you'r time to fix it :)

Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on September 07, 2015, 10:22:19 AM
Update published, application should self-update.

Also updated source @ GitLab (link in first post)
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: Ketchup on September 08, 2015, 04:16:17 AM
any chance you could update the "how to run" section please, I have downloaded the files and cannot do anything with them
Title: Re: [V6, C#] Egg Farmer - v1.0.0.15 (stable)
Post by: unisharp on September 11, 2015, 09:51:29 AM
Updated!

http://downloads.uostealth.com/eggfarmer/


or, compile from source at:
https://gitlab.com/unisharp/EggFarmer
If you do it this way, you'll also need to download https://sourceforge.net/projects/scriptsdk/
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Dread385 on September 11, 2015, 01:26:09 PM
I downloaded the .net framework but when I click the "launch" link to DL your newest version I get this... http://snag.gy/9097V.jpg (http://snag.gy/9097V.jpg)
I had your version before this and it was working fine a few days ago.  Since yesterday or the day before it would run one cycle then stop and display 3 "complete" windows and  I would have to manually restart the script.  This wasnt the case before.  I uninstalled it hoping to get the newest version but that's where I'm stuck.  I hope you can help me!  I only used this for about a week or more and I miss it already.  Thanks!
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 14, 2015, 04:02:56 AM
I downloaded the .net framework but when I click the "launch" link to DL your newest version I get this... http://snag.gy/9097V.jpg (http://snag.gy/9097V.jpg)
I had your version before this and it was working fine a few days ago.  Since yesterday or the day before it would run one cycle then stop and display 3 "complete" windows and  I would have to manually restart the script.  This wasnt the case before.  I uninstalled it hoping to get the newest version but that's where I'm stuck.  I hope you can help me!  I only used this for about a week or more and I miss it already.  Thanks!

There's nothing worse than having working software that, one day, decides to stop working for whatever reason :(  sorry!

Control  Panel -> Add/Remove Program, Remove EggFarmer.

If you are sure that:

...then reinstall @ download link and let me know if you're getting the same thing
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 14, 2015, 10:43:14 AM
Also, make sure you are using latest version of Stealth and ScriptSDK!

http://sourceforge.net/projects/scriptsdk/files/Releases%20%5BAlpha%5D/
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Dread385 on September 14, 2015, 01:01:42 PM
I downloaded the .net framework but when I click the "launch" link to DL your newest version I get this... http://snag.gy/9097V.jpg (http://snag.gy/9097V.jpg)
I had your version before this and it was working fine a few days ago.  Since yesterday or the day before it would run one cycle then stop and display 3 "complete" windows and  I would have to manually restart the script.  This wasnt the case before.  I uninstalled it hoping to get the newest version but that's where I'm stuck.  I hope you can help me!  I only used this for about a week or more and I miss it already.  Thanks!

There's nothing worse than having working software that, one day, decides to stop working for whatever reason :(  sorry!

Control  Panel -> Add/Remove Program, Remove EggFarmer.

If you are sure that:
  • Your framework is not corrupt - did you recently install a new version?
  • In Internet Explorer, there is a security setting: Open files based on content, not file extension.  This should be turned off.
  • Anti-Virus is not removing the program.  Be sure to check your security history.

...then reinstall @ download link and let me know if you're getting the same thing

I got the framework again by going to microsoft's site, and after the install and restart I got the same screen when using the "install" button.  I went to the site I downloaded from the first time and got a "setup" file.  When running that I got this error:  http://snag.gy/6COIX.jpg (http://snag.gy/6COIX.jpg) I dont use IE I use Chrome, and currently I'm not running an anti-virus.  I also got the latest Stealth client v.6. but I'm not having any luck reinstalling your program =[.
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 14, 2015, 01:22:16 PM
That website is the wrong link, did it automatically take you there?

Use the updated link in the first post

http://downloads.uostealth.com/eggfarmer/

EDIT: Also, you tried removing eggfarmer from control panel?
(http://i.imgur.com/M84U7Of.png?1)
(http://i.imgur.com/SbTMpak.png)

If not, remove from control panel *first*, then visit the download link
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Dread385 on September 14, 2015, 02:34:41 PM
Yes I removed it using control panel and using that site you linked gives me the error window that says "Application cannot be started.  Contact the application vendor."  There is a details button that gives this info:

PLATFORM VERSION INFO
   Windows          : 6.2.9200.0 (Win32NT)
   Common Language Runtime    : 4.0.30319.34209
   System.Deployment.dll       : 4.0.30319.34243 built by: FX452RTMGDR
   clr.dll          : 4.0.30319.34209 built by: FX452RTMGDR
   dfdll.dll          : 4.0.30319.34243 built by: FX452RTMGDR
   dfshim.dll          : 6.3.9600.16384 (winblue_rtm.130821-1623)

SOURCES
   Deployment url         : http://downloads.uostealth.com/eggfarmer/EggFarmer.application

ERROR SUMMARY
   Below is a summary of the errors, details of these errors are listed later in the log.
   * Activation of http://downloads.uostealth.com/eggfarmer/EggFarmer.application resulted in exception. Following failure messages were detected:
      + The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)

COMPONENT STORE TRANSACTION FAILURE SUMMARY
   No transaction error was detected.

WARNINGS
   There were no warnings during this operation.

OPERATION PROGRESS STATUS
   * [9/14/2015 6:31:39 PM] : Activation of http://downloads.uostealth.com/eggfarmer/EggFarmer.application has started.

ERROR DETAILS
   Following errors were detected during this operation.
   * [9/14/2015 6:31:40 PM] System.Runtime.InteropServices.COMException
      - The referenced assembly is not installed on your system. (Exception from HRESULT: 0x800736B3)
      - Source: System.Deployment
      - Stack trace:
         at System.Deployment.Internal.Isolation.IStore.GetAssemblyInformation(UInt32 Flags, IDefinitionIdentity DefinitionIdentity, Guid& riid)
         at System.Deployment.Application.ComponentStore.GetAssemblyManifest(DefinitionIdentity asmId)
         at System.Deployment.Application.ComponentStore.GetSubscriptionStateInternal(DefinitionIdentity subId)
         at System.Deployment.Application.SubscriptionStore.GetSubscriptionStateInternal(SubscriptionState subState)
         at System.Deployment.Application.SubscriptionState.Validate()
         at System.Deployment.Application.SubscriptionStore.CheckAndReferenceApplication(SubscriptionState subState, DefinitionAppId appId, Int64 transactionId)
         at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestDirectBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options, ServerInformation& serverInformation)
         at System.Deployment.Application.DownloadManager.DownloadDeploymentManifestBypass(SubscriptionStore subStore, Uri& sourceUri, TempFile& tempFile, SubscriptionState& subState, IDownloadNotification notification, DownloadOptions options)
         at System.Deployment.Application.ApplicationActivator.PerformDeploymentActivation(Uri activationUri, Boolean isShortcut, String textualSubId, String deploymentProviderUrlFromExtension, BrowserSettings browserSettings, String& errorPageUrl)
         at System.Deployment.Application.ApplicationActivator.ActivateDeploymentWorker(Object state)

COMPONENT STORE TRANSACTION DETAILS
   No transaction information is available.

Thanks for trying to help me out with this.  I'm sure I'm doing something foolish
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 14, 2015, 04:03:41 PM
Ahh.. I see...

http://stackoverflow.com/questions/702101/installation-problems-of-c-sharp-deployment

#1 Answer

You may need to delete that registry key.  This will uninstall any Click-Once applications you have installed on your system.  So if you've installed any applications in the same manner as this installation, they will get uninstalled.  Basically, you'd know it if you had any.  There aren't any system-dependent hidden click-once applications you'd be unaware of.

Sorry, I don't like suggesting to anyone to muck with their registry...  but it looks like this is the only way.
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Ketchup on September 15, 2015, 08:33:21 AM
I uninstalled my old egg farmer and installed the new one, now I have some serious issues opening it and running it, clicking it on my start icon does nothing and it's not even on my desktop anymore....
thanks for trying to update it and writing it but I cannot get it to work anymore
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 15, 2015, 08:36:24 AM
It's not easy trying to fix something that works for a few users and doesn't for others.  "It's not working" isn't helpful either but I understand that there is no other information that can be given to me.

It's just going to take time to identify the problem and I'm extremely busy with real life problems at the moment.

So with that being said, I'm taking the download link back down until I can actually really look at this project.
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Ketchup on September 15, 2015, 08:59:48 AM
sorry I can't be much more help and thanks
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Crome969 on September 15, 2015, 10:09:51 AM
catch me tomorrow or thursday (you know my timing) then i look via Remote :)
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Dread385 on September 15, 2015, 01:02:22 PM
It's not easy trying to fix something that works for a few users and doesn't for others.  "It's not working" isn't helpful either but I understand that there is no other information that can be given to me.

It's just going to take time to identify the problem and I'm extremely busy with real life problems at the moment.

So with that being said, I'm taking the download link back down until I can actually really look at this project.

Oh no Uni!  I hope I didn't influence your decision to take it down again!  :'(  I was going to fix the registry issue today and give it another whirl.  Good luck with all your RL stuff and hopefully we'll get access to it again.
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 15, 2015, 08:35:53 PM
My car needs to get off the street this week or it will be impounded.

So, I need to:  Oil Change, Insurance, Registration, Drivers License

Before Monday.
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: Crome969 on September 16, 2015, 12:41:15 AM
My car needs to get off the street this week or it will be impounded.

So, I need to:  Oil Change, Insurance, Registration, Drivers License

Before Monday.

Trust me Uni would code more if he could :)
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: The Ghost on September 16, 2015, 05:08:52 AM
If you remove the link, it will be hard for us to help you Unisharp. 
 
Trust me Uni, it hard to get more negative reply then positive but atlease someone else are finding the issue.  Sometime it just a timing issue ( incease wait), if it work fine on your machine.  Happen with a friend that his builded was working fine for him and never workfor me on my machine. My connection was just a little bit slower. I have to add a few wait time to ensure the proper flow.   

So fell free the leave the link up and just add a note that a the moment support will be at a minimun.  We all have higher priority and UO is not one of them sometime.

As for me, I'm glad to have an exemple that work for you.
Title: Re: [V6, C#] Egg Farmer - v2.0.0.3 (stable)
Post by: unisharp on September 18, 2015, 03:25:08 AM
I added the install link and and source back in
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Morphe on December 10, 2015, 03:17:06 PM
Hi, Looks like a great script, did you take down the download and stop support?
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: bendel on December 10, 2015, 11:49:57 PM
Hi, Looks like a great script, did you take down the download and stop support?

Hi Morphe,

Here is the link : https://gitlab.com/unisharp/EggFarmer/tree/e3c47823c2b744400a58210a02c776fe29dd8af3

there are a few changes to make to get it working, but it's working.

Have a nice day.
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Morphe on December 11, 2015, 02:21:04 AM


Hi Morphe,

Here is the link : https://gitlab.com/unisharp/EggFarmer/tree/e3c47823c2b744400a58210a02c776fe29dd8af3

there are a few changes to make to get it working, but it's working.

Have a nice day.
[/quote]
Thanks for the help, its working now after a few hours of thinking and changing a few things, im a virgin to VS but the script os amazing and id like to thank Unisharp for creating something so awesome! so hats off to you sir :-]
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Crome969 on December 11, 2015, 04:28:30 AM
Wait until i break his scripts with new API SDK *gg*
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: bendel on December 11, 2015, 05:53:35 AM
Pleaaaaase...     :'(
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: TrailMyx on December 11, 2015, 06:44:21 AM
Wait until i break his scripts with new API SDK *gg*

I was waiting for that shoe to drop.  :p
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Tidus on December 14, 2015, 12:17:20 PM
Wait until i break his scripts with new API SDK *gg*

oh great, now my scripts will break too.
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Ketchup on January 21, 2016, 03:46:14 AM
does this still work anymore?
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Dan123The123Man on February 10, 2016, 01:06:16 AM
Yes any info would be great. PS, anyone developed a Medusa killing script yet?
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: lisaandmike on March 20, 2016, 03:10:06 PM
The download link for the exe file appears broken.  The source files have an error when I try to re-build the file.  Anybody have an updated version they can post?
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Crome969 on March 21, 2016, 05:04:38 AM
What Error do you get? I know unisharp is taking an uo break but i can try to help out a bit :)
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: lisaandmike on March 21, 2016, 11:37:15 AM
When I download the installer from the main page, the website simple states Pageok (http://downloads.uostealth.com/eggfarmer)

When I download the source, there is no .exe build included in the zipped package.  (https://gitlab.com/unisharp/EggFarmer).  When I open this in VS (EggFarmer.csproj) and then click build eggfarmer, I get 20 errors. 

The first two is the namespace API does not exist in the namespace ScriptSDK

The third error is namespace name Buff_DebuffSystemEventArgs

The other 17 are all "the name stealth does not exist in the current context

The one warning is that the certificate is not in the certificate store but this one I can fix by unchecking the option to sign.
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Tidus on March 21, 2016, 12:04:59 PM
You need to make sure you are referencing the DLL file with the VS project in order to be able to see the named references of Stealth and ScriptSDK.
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: lisaandmike on March 21, 2016, 01:51:44 PM
I think that I have them correctly in the Reference section and I double checked to ensure the DLL was in the correct folder.  As an example, I have:

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.5\Libraries\ScriptSDK.dll

If I compile it and run the exe, I get an error at opening it.  I debug it and try common fixes for the items but new errors pop up each time.  I am not familiar with VS enough to fix this apparently.  I guess in the past year too many things have changed.  It would be nice if his install package was able to be downloaded but it looks like he took it down perhaps.

Maybe we will be lucky and when someone has free time, they can update and post for the community   ;)
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Crome969 on March 22, 2016, 01:13:50 AM
I think that I have them correctly in the Reference section and I double checked to ensure the DLL was in the correct folder.  As an example, I have:

C:\Program Files (x86)\Microsoft SDKs\Expression\Blend\.NETFramework\v4.5\Libraries\ScriptSDK.dll

If I compile it and run the exe, I get an error at opening it.  I debug it and try common fixes for the items but new errors pop up each time.  I am not familiar with VS enough to fix this apparently.  I guess in the past year too many things have changed.  It would be nice if his install package was able to be downloaded but it looks like he took it down perhaps.

Maybe we will be lucky and when someone has free time, they can update and post for the community   ;)

ScriptSDK is a standalone non Microsoft library written by me. If you add reference to ScriptSDK.dll you should also make sure that the executing exe has a ScriptSDK.dll in the folder.

Try to drop the dll where your exe has been compiled, and perform the exe as admin. Then it should work.
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: lisaandmike on March 23, 2016, 03:21:35 AM
Chrome, thank you for the quick response.  I have the .dll file in place and run as admin.  I get the below error as soon as I open the file:

Problem Event Name:   CLR20r3
  Problem Signature 01:   EggFarmer.exe
  Problem Signature 02:   1.0.0.0
  Problem Signature 03:   56f06b04
  Problem Signature 04:   System
  Problem Signature 05:   4.6.1055.0
  Problem Signature 06:   563c0ff8
  Problem Signature 07:   204b
  Problem Signature 08:   74
  Problem Signature 09:   System.Net.Sockets.Socket
  OS Version:   6.1.7601.2.1.0.256.48
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Crome969 on March 23, 2016, 04:38:31 AM
Do you use the Stealth Client? this sounds like the api connector try to search for a Stealth Client for Communication and fail ...
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: lisaandmike on March 29, 2016, 04:16:05 PM
that fixed it, It was as simple as I didn't have the Stealth client running at the time.  I keep getting random errors but overall, it works.

Post Merge: March 30, 2016, 11:59:11 AM
So I keep getting two errors, that may be related.  The problem seems to be that the script looks for a flute and doesn't find it after the last one breaks.  I have about 10 of them in my bag.  The error below is the most common one I get.
Index was out of range. Must be non-negative and less than the size of the collection parameter name:index
system.throwhelper.throwargumentoutofrangeexception (line 246 in eggfarmer.cs)

The other error is that the program says I am out of flutes and just pops up the three ok boxes like it does when you exit. 

The error would imply that the below first line isn't correct? The error of line 246 is the last sentence below (Flutes[0].DoubleClick();)

 for (int _i = 0; _i < Snakes.Count; _i++)
                    {
                        lock (WorkLocker)
                        {
                            if (Nests[0].Distance > 9)
                            {
                                MoveNextSpot();
                                break;
                            }

                            if (_i == 3)
                                break;

                            workerFluteRoutine.ReportProgress(0, "Trying to persuede snakes...");
                            Stealth.Client.CancelWaitTarget();
                            Stealth.Client.CancelTarget();

                            while (true)
                            {
                                StopWatch = DateTime.Now;
                               
                                Flutes[0].DoubleClick();
                               
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: Papang- on December 22, 2017, 03:43:55 PM
The project that unisharp offered us is gold, It shows us how to work with Paths.

With a little more time (for me) next week, I really want to create a "Champ Checker "(Move character to all champions spawn and give the state).
I think there is already enough information to build this. it just remains the part for "Recall" and "Write on an interface" to gather the information.
Title: Re: [V6,ScriptSDK] Egg Farmer - v2.0.0.3 (stable)
Post by: bendel on March 25, 2018, 02:10:39 PM
Still not able to get it work.

have an error after looting the first egg

(https://i.imgur.com/PznkcVz.png)

Anyone can help ?
Thanks :)
Title: Re: [C#, ScriptSDK] Egg Farmer - updated 030520
Post by: unisharp on March 05, 2020, 05:38:41 AM
Updated
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 07, 2020, 12:19:46 PM
Updated 3/7/20
- fixed packet error
- added type to bamboo flutes

Known issues:
Looks like the program was working for like 5 minutes and then randomly stopped.  Looking into issue.

EDIT: Been running 20 minutes now with 2 collected already.  I won't be able to fix this issue if I can't reproduce the error.  I believe it may have been due to lack of snakes.  When you get it running, additional snakes will be pop'd so I think that's why it's running now.

EDIT2: After an hour I got the exception again https://github.com/unisharpUO/EggFarmer/blob/master/EggFarmer/EggFarmer.cs line 241 which makes no sense because I only have 1 flute in my backpack and it hasn't been used up yet.  The type of error I got is when you reference an index in an array and it doesn't exist.  Flutes is a list of objects found in your main backpack.  Each time Flutes is referenced, a search is redone via ScriptSDK Scanner Engine to fill that list of flutes in your main backpack.  Why, after an hour, did it not find the same flute it was using in my backpack?  I have no idea yet.

Code: [Select]
private List<SnakeCharmerFlute> Flutes
{
    get { return Scanner.Find<SnakeCharmerFlute>(Self.Backpack.Serial.Value, false); }
}

Basically any time I reference Flutes[0] this should reference the first flute found in my backpack.  Again, this error happened while I only had 1 flute in my backpack and it was the same one I was using for an hour, which is why I'm kinda stuck on this.  I may change the way this is handled.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 08, 2020, 03:38:51 AM
OK well we're mostly functioning over here...

EggFarmer.cs line 136 - currently commented out.
Code: [Select]
Stealth.Client.Buff_DebuffSystem += onBuff;

This line causes an exception "Error, packet parsed incorrectly!" - Unfortunately this means ScriptSDK needs to be updated, which I'm capable of doing, but not knowledgeable enough to figure out how to fix.

As of right now, there is no method to cure yourself if you're poisoned.

I spoke with Vizit0r, he may be helping me out later this evening!
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 08, 2020, 03:50:05 AM
Temporary change - pushed to github 3/8/20 7:48AM est
Under the Combat worker thread, I added a journal check for poison which will then chug a pot.

This is temporary till the Debuff system in ScriptSDK is working again.

The timers may be off, I still got a lot of testing to do but overall the program is working correctly.

EDIT: Also updating main post with new egg stats.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 08, 2020, 01:47:08 PM
After testing all day today, I've come to the conclusion that using the Scanner engine in ScriptSDK concurrently in multiple threads may result in failed searches.

I'm going to have to move blocks of code around to test this... had enough for the day.  Will get back to this tomorrow.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 09, 2020, 04:59:22 AM
github push 3/9/20:
- The egg finder worker thread is disabled and copied into the flute routine
- Scans for greater cures and smoke bombs are only done once at initialization
- Added 250ms delays after every scan to ensure accuracy - this should be way more than needed because it takes around 2 seconds to search and parse 50 items in a container.

It appears after moving the methods that use the FindType function to one thread has fixed the nil index errors which means that this function most likely cannot be used concurrently in multiple threads.  Stat reports to follow...

EDIT: 13 eggs in about an hour
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: bendel on March 14, 2020, 10:06:44 AM
Nice to see you back again !!

Thanks for updating the script :)
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: Oracle on March 15, 2020, 12:46:13 PM
OK -- I am ready to test this again. Where is the new updated version? If I am looking in the correct spot, then do I need to download all those files and keep them in the EasyUO file folder?
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: Tidus on March 16, 2020, 04:32:52 AM
OK -- I am ready to test this again. Where is the new updated version? If I am looking in the correct spot, then do I need to download all those files and keep them in the EasyUO file folder?

This is a Stealth script, not a EUO script.  You will need Stealth, and ScriptSDK Dll files to be able to run the program.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 16, 2020, 04:35:12 AM
Hello,

This is completely unrelated to EasyUO

1.  You'll need to first get familiar with the StealthUO client which can be downloaded here: http://stealth.od.ua/Site/Downloads (currently Stealth 8.10.1)
If you have trouble with this client I can come up with a short tutorial on how to set it up.

2.  Then you'll need to download and install Visual Studio 2019 Community Edition https://visualstudio.microsoft.com/downloads/

3.  After you install VS2019 and run it, the first window will ask if you want to create a new project or clone an existing one.  We'll need to compile the ScriptSDK library first and import it to the EggFarmer project.

4.  Choose to clone a project and put in this URL: https://github.com/Crome696/ScriptSDK.git

5.  After it's cloned, the right side will have 2 panels - Solution Explorer and Team Explorer - make sure you click on Solution Explorer.

6.  Double click ScriptSDK.sln - this is the solution file.

7.  Select "Build" from the top menu and click on Rebuild.  This will compile your solution and build the library file needed to import into EggFarmer.

8.  We're done with the ScriptSDK project, select "File" from the top menu and close solution.

9.  Choose to clone and put in this URL: https://github.com/unisharpUO/EggFarmer.git

10.  Again, once cloned you should have 2 tabs on the right side that say Solution Explorer and Team Explorer - click on Solution Explorer and double click EggFarmer.sln - this is the solution file.

11.  Now that you have the solution open, click the arrow next to references - we'll need to add one.

12.  Right-click on References, select Add Reference, select the Browse button on the bottom and find the ScriptSDK.dll we just built... it'll be in the folder you cloned it to and then drill down to ScriptSDK/bin/debug/ScriptSDK.dll

13.  Once the ScriptSDK reference has been added to EggFarmer, you can then build the EggFarmer application by selecting "Build" from the top menu and then select Rebuild.

14.  At this point, you can either just hit the Start button at the top with the green arrow, or open File Explorer and drill down to where we just created EggFarmer.exe - EggFarmer/bin/debug/EggFarmer.exe

Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 16, 2020, 05:31:36 AM
Nice to see you back again !!

Thanks for updating the script :)

Great to be back! :)
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on March 16, 2020, 08:20:11 AM
3/16/20 Update pushed
- fixed cross-threading error
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: Oracle on March 16, 2020, 11:05:33 AM
Thank you for continuing to work and update this script. I know I appreciate it. Egg Farming is a pain. Actually all farming is a pain. I was hoping to find the Ant Farming Script that was on here a while ago. See what happens when you leave the Script Community for a little while. Everything changes on you.

Title: Re: [C#, ScriptSDK] EggFarmer
Post by: daymorn on August 27, 2020, 12:36:08 PM
Chips ahoy,

Stealth_v8.10.2
EggFarmer latest git
Windows 10


I'm new to this, but I'm fairly certain I got everything in place and I'm still getting the error:
Error, Packet parsed incorrectly! Last Method id is 12

I used VS2019 to build ScriptSDK.dll
I added ScriptSDK.dll reference to EggFarmer. Built without error
I launch stealth with admin privs.
Character gets logged in, I load the built exe from file and when I push play is when the error pops up.

Am I doing something wrong or is this a code problem with current stealth version?

Thank you for all your work.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: Tidus on August 27, 2020, 02:54:13 PM
Chips ahoy,

Stealth_v8.10.2
EggFarmer latest git
Windows 10


I'm new to this, but I'm fairly certain I got everything in place and I'm still getting the error:
Error, Packet parsed incorrectly! Last Method id is 12


I used VS2019 to build ScriptSDK.dll
I added ScriptSDK.dll reference to EggFarmer. Built without error
I launch stealth with admin privs.
Character gets logged in, I load the built exe from file and when I push play is when the error pops up.

Am I doing something wrong or is this a code problem with current stealth version?

Thank you for all your work.

Most recent update to 10.8.2 broke some packet parsing in ScriptSDK. I haven't had a chance to look to see what it is yet. I know Maxwell was working on it for his C# wrapper. So once he updates i can see the difference and see whether i can apply it to scriptsdk.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: daymorn on August 27, 2020, 05:39:58 PM
Thank you for letting me know.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on August 31, 2020, 08:26:40 AM
I don't mind re-writing this in python gimme like a week or two I have to find motiviation :P
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: daymorn on September 03, 2020, 03:44:44 PM
This just made me really stoked to learn this again. Thank you.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on September 21, 2020, 06:54:58 AM
Progress: https://github.com/unisharpUO/StealthUO-Scripts/blob/master/EggFarmer.py

Untested, will create new thread when complete.
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: ZeroDX on September 25, 2020, 10:06:28 AM
It is preferable to use tuples instead lists if the arrays will not be edited.
There is no need to use global operator if your variables will not be reassigned (OnClilocSpeech function).
There is a wrong using SetFindDistance and SetFindVertical functions. They are functions.

I hope you continue to write python scripts, cause this script is a good one. If you will, there is some styling conventions PEP-8 (https://www.python.org/dev/peps/pep-0008/).
Title: Re: [C#, ScriptSDK] EggFarmer
Post by: unisharp on October 01, 2020, 07:36:57 AM
It is preferable to use tuples instead lists if the arrays will not be edited.
There is no need to use global operator if your variables will not be reassigned (OnClilocSpeech function).
There is a wrong using SetFindDistance and SetFindVertical functions. They are functions.

I hope you continue to write python scripts, cause this script is a good one. If you will, there is some styling conventions PEP-8 (https://www.python.org/dev/peps/pep-0008/).

Thank you!  -Updated 10/01/20

More optimizations to come...