ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Resource Farming => Topic started by: camotbik on August 20, 2011, 01:57:22 AM

Title: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 20, 2011, 01:57:22 AM
This is my ultimate fisher mans script. It can catch fish on a boat, or wherever you like(e.g. dungeon,malas). The same goes for crabbing.

Code: [Select]
;==============================================
; Script Name: CAMOTbIK's Ultimate fisher.
; Author: CAMOTbIK
; Version: 0.1 Alfa
; Client Tested with: 7.0.14.0
; EUO version tested with: 1.92
; Shard OSI / FS:  FS - Osistyle
; Revision Date: 2011/08/13
; Public Release: 2011/08/13
; Global Variables Used: None
; Purpose: Farm crabs/lobsters/fish for quests
;==============================================

Special thanks to Crome for helping me with the math. And s7 for his recalling sub.

Instructions.
Setup runebook with rune to storage or bank(if using bank please check the checkbox)
Setup trashcan(if you have to move to trashcan, please check the checkbox) -- must be within a reach to storage!
Setup storage, if using bank then setup the storage in bankbox.
Setup ship key(Small boat)
Setup travel method - recall/sacred journey
Setup fishing method Crabs/Fish
If checkbox fish wherever is checked
*Setup fishing runebook
*Setup fishing runes (e.g. 1 to 5)

If using method fishing on a boat, you need to have scissors, a dagger, fishing pole in your pack.  100%lrc suite on you and +80 magery prefered.

(https://lh4.googleusercontent.com/-oNv7i7AAA3Y/TcZ65cT8lnI/AAAAAAAAEJc/WjvJxo4kWNQ/setup1.JPG)
(https://lh5.googleusercontent.com/-Wftz_zduGZ0/TkWVoBqPluI/AAAAAAAAELQ/r1XyRBbCaHM/s800/Zvejnieks_8-12_23.45.jpg)
(https://lh3.googleusercontent.com/-LTNsX8ScRE4/Tk-CzzPsCFI/AAAAAAAAEL8/77u0LL9dvqA/s800/Zvejnieks_8-20_12.46.jpg)


Title: Re: CAMOTbIK's Ultimate fisher
Post by: Endless Night on August 20, 2011, 06:10:46 AM
nice.. thanks for the script submission.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Neo on August 20, 2011, 06:22:14 AM
Great stuff Camotbik... Thanks for sharing!
Title: Re: CAMOTbIK's Ultimate fisher
Post by: gimlet on August 20, 2011, 07:15:37 AM
This looks very nice - thanks for sharing!
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Crome969 on August 20, 2011, 08:34:56 AM
As always after hours of euox Code analyzing with you u making good results.
I like that you getting better and better in euox and we will go more further in future..
Dude thanks,too that you releasing on SUO and not only keep all in your Folders.

See ya ingame\Icq and around.

Crome
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Ultima on August 20, 2011, 10:42:50 AM
Another great submission! Thanks for sharing. :)

Do we need Razor for this script or were you just using it to take screenshots!?

That's quite a few crab traps placed in that screenshot up above. Looks very efficient!
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 20, 2011, 10:46:33 AM
Thank you guys.
*Ultima, no razor needed, just took a screenshot with it.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Kane12 on August 20, 2011, 03:05:25 PM
Tried this out again......made sure I had the smallest legacy ship (10k one).....see attached picture.....keep getting an error with placing all the traps except it was able to place two of them. I am running on an OSI shard so maybe there is a difference in the genetics between your free shard you designed the script for an the OSI shard...sorry ignore the pic on the right....I am running dual screens so it picked up with the print screen lol




Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 20, 2011, 03:29:48 PM
Ok could you do this, place your traps all around you by your hand as far as you can and make a screenshot, so i could see how far those locations are.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Kane12 on August 20, 2011, 09:23:40 PM
Here ya go......same locations C2 has on his script lol...

Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 21, 2011, 02:07:07 AM
Sorry Haven't got a account on osi, so it's really hard to make changes like this. But lets try.
try to change this
Code: [Select]
sub put_check_trap
  finditem DZZ_OZZ c_ , #backpackid
  while #findcnt > 0
  {
    set %i 0
    for %x -3 3
    {
      for %y -3 3
      {
        set %i %i + 1
        set %xx #charposx + %x * 2
        set %yy #charposy + %y * 2
into this
Code: [Select]
sub put_check_trap
  finditem DZZ_OZZ c_ , #backpackid
  while #findcnt > 0
  {
    set %i 0
    for %x -3 3
    {
      for %y -3 3
      {
        set %i %i + 1
        set %xx #charposx + %x
        set %yy #charposy + %y
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Crome969 on August 21, 2011, 02:36:59 AM
Sorry Haven't got a account on osi, so it's really hard to make changes like this. But lets try.
try to change this
Code: [Select]
sub put_check_trap
  finditem DZZ_OZZ c_ , #backpackid
  while #findcnt > 0
  {
    set %i 0
    for %x -3 3
    {
      for %y -3 3
      {
        set %i %i + 1
        set %xx #charposx + %x * 2
        set %yy #charposy + %y * 2
into this
Code: [Select]
sub put_check_trap
  finditem DZZ_OZZ c_ , #backpackid
  while #findcnt > 0
  {
    set %i 0
    for %x -3 3
    {
      for %y -3 3
      {
        set %i %i + 1
        set %xx #charposx + %x
        set %yy #charposy + %y
If active u could make a free Trial account.
Btw what must we do for a Trial account?Which Informations give out and what are the restrictions?

Crome
Title: Re: CAMOTbIK's Ultimate fisher
Post by: vassenceto on August 25, 2011, 05:48:04 AM
script cant open runebook ,can someone help ? Is there something need to edit for that?How to setup runebook and runes for bank. Please someone help im not familiar with scripting .Thx in advance
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 25, 2011, 07:06:48 AM
Well copy the script in EasyUO, and press play. A menu will popup, with buttons. Use those buttons to setup your runebook, etc, etc.
(http://img809.imageshack.us/img809/2765/setupnb.jpg)
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Goliath on August 25, 2011, 10:30:02 AM
script cant open runebook ,can someone help ? Is there something need to edit for that?How to setup runebook and runes for bank. Please someone help im not familiar with scripting .Thx in advance

Vassenceto,

You will find that a lot of features used in scripts are repeated in others.  Setups for scripts can vary a little but for the most part will have many similarities to others.  Also... almost every script author will include a set of instructions to help the user.  The instructions will either be located on the original post or at the beginning of the script.  Sometimes there will be instructions in both places.  In this case the author has generously provided a list of instructions in the original post as follows:

Instructions:
1) Setup runebook with rune to storage or bank(if using bank please check the checkbox)
          You should have a runebook that contains a rune to either a storage container at your house or to a SECLUDED bank location where the character will recall to and unload.  If you are using the bank to unload then you need to place a check mark in the box "use bank".  You also need to indicate what position the rune is located within that book under "Rune to storage".
2) Setup trashcan(if you have to move to trashcan, please check the checkbox) -- must be within a reach to storage!
         Given that this script uses a trash can I would suggest that you use your house as the place to unload versus the bank.  Refer to the original post and the author has provided a very good screenshot to show you possible placement of the secure container and the trashcan.  I myself will place them both on the front steps side-by-side and make sure that my character is recalling in directly in-front of them.
3) Setup storage, if using bank then setup the storage in bankbox.
         I have only used this script once but I do believe it will ask for 2 bags inside your secure container.  Place 2 bags in the secure and when you press the "Setup storage" button it will walk you through targeting the bags.
4) Setup ship key(Small boat)
         Pretty much self explanatory and it is optional.  The author has given a wide range of options on the method of fishing.  Here you can opt to fish from a boat.  I myself was training a character and chose to fish from shore while training.  You can also fish inside dungeons.  You should probably fish from a boat to make things simpler.  Otherwise you will have to setup a second runebook full of fishing spots.
5) Setup travel method - recall/sacred journey
          Pretty self explanatory
6) Setup fishing method Crabs/Fish
          Choose your fate!

Added note from author - If using method fishing on a boat, you need to have scissors, a dagger, fishing pole in your pack.  100%lrc suite on you and +80 magery prefered.


Hope this helps!
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 25, 2011, 10:49:20 AM
3) Setup storage, if using bank then setup the storage in bankbox.
         I have only used this script once but I do believe it will ask for 2 bags inside your secure container.  Place 2 bags in the secure and when you press the "Setup storage" button it will walk you through targeting the bags.

Well I use only a box in the bank, so you have just open your bank and target the box.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: vassenceto on August 26, 2011, 08:53:43 AM
thx for info. Script runs fine ,open menu and i target everything and recall to boat ,start fishing ,the problem is that when i get maxweight script dont recall at bank to unload .No any action
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 26, 2011, 09:19:42 AM
setup storage rune
Title: Re: CAMOTbIK's Ultimate fisher
Post by: vassenceto on August 26, 2011, 09:28:48 AM
if you mean i setup runebook and rune on 1spot and still no racall on maxweight.sorry if there is something that need to be writen in script but my knowege is zero on scripting
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 26, 2011, 12:32:33 PM
it depends what rune number your storage(home, bank) is. It's not always 1. Just check your runebook, count the number of the rune to storage and input it in setup..
Title: Re: CAMOTbIK's Ultimate fisher
Post by: vassenceto on August 26, 2011, 02:43:28 PM
sorry i forget to tell you that im playing in free server and maybe proble is in diffrend code of runebook
.for that maybe wont open and recall.can you tell me how to chage the id of the runebook maybe this will help. that the only problem cant open runebook and cant recall. I setup script and start but cant recall
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on August 26, 2011, 07:39:02 PM
well just re read previous posts, and you will figure it out.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Endless Night on October 07, 2013, 05:22:57 PM

Congratulations your Script has been moved to Script library
(If you feel the script is in the wrong section please send me a pm.)

Thank you for your submission.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: wizzle on October 19, 2013, 11:33:47 AM
So this script is working really well, except for one issue where it gets caught trying to use scissors, or a bladed item on something. It returns the error that the scissors/dagger cannot be used on this to produce anything. Just wondering if anyone has had this issue.

*edit*

Okay, so since my server doesn't have crab fishing or anything neat yet, I decided to trim back all the crabbing script and the item targeting for items we don't use.
I am currently running this trimmed script with no issues so far :)

I am also a bit of a newb to scripting so once I run this for a while I'll post what I have done and maybe I can get some feedback!
Title: Re: CAMOTbIK's Ultimate fisher
Post by: camotbik on November 16, 2013, 12:32:19 PM
the script is trying to cut shoes. so if your server doesnt support that kind of stuff, just delete the part with that cuts the shoes.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: kakepare on November 08, 2017, 08:42:07 PM
i couldnt get it to work for me :( it does the set up fine, recalls to fish spot fine, but when it gets there it doesnt equip rod and doesnt attempt to fish. i had it set to fish wherever and marked runes for land fishing since i've been looking for a recall land fisher for over a month with no luck. i need to learn how to understand script language seriously x.x
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Crisis on November 09, 2017, 03:35:32 AM
If you are on a freeshard make sure that you have the right itemid for the fishing pole. Freeshards and official server sometimes vary.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: kakepare on November 10, 2017, 03:53:18 AM
thanks, i play on OSI and i checked the id for the pole and added in the LOBJECTTYPE thing from easyuo thing, still didn't work. i'm slowly starting to understand script code(?) but still a long way off from being able to get stuff to work
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Rocko on March 20, 2023, 02:35:33 PM
I am hesitant to post this because the last post was in 2017.  The script setup window functions well except that once the button to target the boat key has been pressed the target cursor does not appear.  Additionally, the button has a white background instead of the normal grey.  I don't know much about scripting but I did noodle around the code, moving things from place to place but to no avail.
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Gaderian on March 20, 2023, 11:59:15 PM
The script needs an update to the menu logic. There are new rules in EUO for menu processing a few years ago. While most of the original menu commands work, the rules are more strict now.

The button to "Setup ship key" is not updating #MENUBUTTON when selected. This usually happens because the button was defined more than once. You can recreate some of the menu elements (you used to be able to create the same named item over and over), but most now require one of two methods:
1) delete old; create new
2) create all and use the 'menu setprop [element_name] visible [#true/#false]'

I tend to favor the second method. Both methods seem to work, but when going back to maintain code, the second method design is more obvious when debugging. If the code forgets to hide ('visible #false') a button, you still see it on the menu and you get clear feedback. If you forget the delete an element and create a new one with the same name, you can cover the former one, but the new one that is seen won't actually work. The other benefit is that each of your elements (whether visible or hidden) are forced to have unique identifying names.

If you want to try to tackle fixing the menu code, there is a pinned thread about menu code under Tutorials that shows how to code equivalent menu commands that have been updated. That may help. Here is the direct link http://www.scriptuo.com/index.php?topic=15596.msg122126#msg122126 (http://www.scriptuo.com/index.php?topic=15596.msg122126#msg122126)

C2 has a lobster/crab fishing script. It works and has simple setup, so I would recommend giving it a shot. I never played with the version that uses bait. http://www.scriptuo.com/index.php?topic=6423.msg54298#msg54298 (http://www.scriptuo.com/index.php?topic=6423.msg54298#msg54298)

I posted one over on easyuo (which was an update of Hitechs/player111's code) - but it is for a different goal than any other crabbing script (more bobs leads to more creatures in the trap and supposed to give more rare ones - at the expense of losing lots of traps). As mine is downloaded, there is very little setup required for an individual setup (runes, secures, etc), but the internal settings will maximize lobster/crab return per hour, but at the cost of losing about 20% of the traps put out. Many players have criticized that decision, but I was trying to get more rare creatures and figured the cost of losing traps was worth it. If you really want your eyes to bleed, here is the link: http://www.easyuo.com/forum/viewtopic.php?f=3&t=53947&start=0#p435566 (http://www.easyuo.com/forum/viewtopic.php?f=3&t=53947&start=0#p435566)
Title: Re: CAMOTbIK's Ultimate fisher
Post by: Rocko on March 21, 2023, 05:42:59 AM
Thank you for the input and the links.  I will definitely take a look and see what I can do.