Official ScriptUO EasyUO Scripts > Submit your Script

Medusa Egg Farmer Stealth/Ninja

<< < (3/5) > >>

Ghavall:
it works for me. Slow... will mess up if no snakes on screen. ( it just stands there and loops forever). when that starts just have to move yourself to where there is snakes. Other than that works fine.

sumsum:
Thanks, it is slow...Its best if there's snakes there already...if not in time they build up...I get about 30 eggs in an hour an half..It's just easy to run while I watch TV for guild hunts...

Thanks for the feed back!

Oracle:
Just wondering if this type of Script ever got finished...!

sumsum:
I use it. I just uploaded a new copy that I run that I have cut a few seconds of the time it takes to charm the snakes.

Here are the Issues with this type of script:

1. Holes spawn under brush.

2. Snakes Move off the screen as built in the the area of the game

3. Holes spawn on the other side of the rock wall, where you can see but cant pathfind to or under the rock ledge.

4. If you think it would be better, I can change the setup to select the hole on startup? right now it selects the hole based off screen size, but if you move you screen it will NOT select the hole. This can be fixed.

 Other then that if you start the scrip with a bunch of snakes on the screen it runs fine. I will run it for a couple hours and get 40 or 50 eggs and be set for the week of medusa solo runs. I do while I watch TV just in case something happens. I dont think it will get to 100% afk but its pretty good. I would be nice to run in enhanced razor for finding the hole but Pathfinding isnt working so well on that platforum yet.

Gaderian:
I have only examined the latest one.

A few comments on the code:
You have repeat without an until in a few places. These isolated repeat statements do nothing functionally - possibly slow down the code a little if your #LPC setting is low enough.

You should restructure the routines so they have the opportunity to return cleanly. If you need to short cut back to the main loop, then provide a return status to determine the next goto statement instead of directly using a goto out of the sub.

Easyuo has a stack limit (I think it is 1000) for how many blocks it can keep track of. It is possible to get to enough to go over that limit. When that happens, scripts get into a non-responsive state. If you are only collecting for 2 hours with lots of snakes around, you are doing at most 4 per minute (a good cycle has more than 14 seconds of wait time), 240 per hour and 480 in 2 hours - maybe you don't get there. If there is a lack of snakes to charm, then it will take much less time to get to the unresponsive stack overflow state. Without the well structured subs it becomes very hard to read and follow what the script is doing.

Since I do not know the #sysmsg values, I can't figure out what happens after the sub flutechecker is called. I can't tell if it returns cleanly or builds the "gosub charm" on the stack?
I do not know if the remaining subs that process #sysmsg ever happen.

The hard coded click location could be determined using the variables for where the client window is placed (#clileft and #clitop) and even the offset could be calculated using the game window size (#clixres and #cliyres). This would improve the script so no matter the user's screen resolution, it would still target what I have to guess is near their character.

My example here assumes the original was 800x600 game window size. If it was something else then my math will need adjustments.

--- Code: easyuo ---; At the start of the code create the X and Y offsetsset %ClickXOffset #clixres / 2 + 14set %ClickYoffset #cliyres / 2 + 18 ; later in the Charm subroutine:...gosub flutecheckerset %ClickX #clileft + %ClickXoffsetset %Clicky #clitop + %ClickYoffsetclick %ClickX %ClickY mc...  Generally players do not change the game window size while playing, but the game window could be adjusted depending on whether they want the banner menu (I forget what it's called). I have the menu sometimes to swap chat from Help to General when I am looking for something. Other times I want to move my screen layout for arranging icons or whatever - so I could see that changing. That just gives a more resilient way to handle the click locations for a variety of players.

Gaderian

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version