Author Topic: [C#, ScriptSDK] EggFarmer  (Read 46931 times)

0 Members and 1 Guest are viewing this topic.

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #75 on: March 09, 2020, 04:59:22 AM »
0
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
« Last Edit: March 09, 2020, 06:16:20 AM by unisharp »

Offline bendel

  • Full Member
  • ***
  • Posts: 215
  • Activity:
    0%
  • Reputation Power: 4
  • bendel has no influence.
  • Respect: +34
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #76 on: March 14, 2020, 10:06:44 AM »
0
Nice to see you back again !!

Thanks for updating the script :)

Offline Oracle

  • Hero Member
  • *
  • Posts: 888
  • Activity:
    0%
  • Reputation Power: 14
  • Oracle barely matters.Oracle barely matters.
  • Gender: Male
  • We always want something that we cannot have...!
  • Respect: +97
  • Referrals: 3
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #77 on: March 15, 2020, 12:46:13 PM »
0
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?
ORACLE
Get me a Straw...because I suck...!
PIXEL CRACK -- Love it! Crave it! Want it! Got to have it!

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: [C#, ScriptSDK] EggFarmer
« Reply #78 on: March 16, 2020, 04:32:52 AM »
0
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.
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #79 on: March 16, 2020, 04:35:12 AM »
0
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


Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #80 on: March 16, 2020, 05:31:36 AM »
0
Nice to see you back again !!

Thanks for updating the script :)

Great to be back! :)

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #81 on: March 16, 2020, 08:20:11 AM »
0
3/16/20 Update pushed
- fixed cross-threading error

Offline Oracle

  • Hero Member
  • *
  • Posts: 888
  • Activity:
    0%
  • Reputation Power: 14
  • Oracle barely matters.Oracle barely matters.
  • Gender: Male
  • We always want something that we cannot have...!
  • Respect: +97
  • Referrals: 3
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #82 on: March 16, 2020, 11:05:33 AM »
+1
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.

ORACLE
Get me a Straw...because I suck...!
PIXEL CRACK -- Love it! Crave it! Want it! Got to have it!

Offline daymorn

  • Jr. Member
  • **
  • Posts: 21
  • Activity:
    0%
  • Reputation Power: 1
  • daymorn has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #83 on: August 27, 2020, 12:36:08 PM »
0
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.

Offline Tidus

  • Lazy
  • Administrator
  • *
  • *
  • Posts: 1291
  • Activity:
    0%
  • Reputation Power: 15
  • Tidus is working their way up.Tidus is working their way up.Tidus is working their way up.
  • Gender: Male
  • Mind Blown
  • Respect: +151
  • Referrals: 2
    • View Profile
    • Ultimate Apparel
Re: [C#, ScriptSDK] EggFarmer
« Reply #84 on: August 27, 2020, 02:54:13 PM »
0
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.
For those who have fought for it, freedom has a taste the protected will never know ~ Anonymous, Vietnam, 1968

Offline daymorn

  • Jr. Member
  • **
  • Posts: 21
  • Activity:
    0%
  • Reputation Power: 1
  • daymorn has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #85 on: August 27, 2020, 05:39:58 PM »
0
Thank you for letting me know.

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #86 on: August 31, 2020, 08:26:40 AM »
0
I don't mind re-writing this in python gimme like a week or two I have to find motiviation :P

Offline daymorn

  • Jr. Member
  • **
  • Posts: 21
  • Activity:
    0%
  • Reputation Power: 1
  • daymorn has no influence.
  • Respect: +3
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #87 on: September 03, 2020, 03:44:44 PM »
0
This just made me really stoked to learn this again. Thank you.

Offline unisharpTopic starter

  • Elite
  • ***
  • *
  • Posts: 196
  • Activity:
    0%
  • Reputation Power: 4
  • unisharp has no influence.
  • Gender: Male
  • Respect: +40
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #88 on: September 21, 2020, 06:54:58 AM »
0
Progress: https://github.com/unisharpUO/StealthUO-Scripts/blob/master/EggFarmer.py

Untested, will create new thread when complete.

Offline ZeroDX

  • Stealth Developer
  • Jr. Member
  • **
  • Posts: 34
  • Activity:
    0%
  • Reputation Power: 1
  • ZeroDX has no influence.
  • Respect: +1
  • Referrals: 0
    • View Profile
Re: [C#, ScriptSDK] EggFarmer
« Reply #89 on: September 25, 2020, 10:06:28 AM »
+1
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.

Tags: