ScriptUO

Official ScriptUO EasyUO Scripts => Submit your Script => Inactive Submissions => Topic started by: casca on January 01, 2011, 02:54:13 PM

Title: Casca's Fisher and Trainer
Post by: casca on January 01, 2011, 02:54:13 PM
---------Casca's Coasting Fisherman v1.3--------------------
Made it for Trailmyx's site, didn't put it on easyuo.

*Please note I changed it a few times today, added somethings, fixed an issue.

This script will fish with the new orc boat, drop the fish into the hull, cut up the regular "fish", dump boots and fish steaks in the garbage at the bank and walk a rail on your boat to get back into position.  It will also put scales, white pearls, mibs and maps into the hull.

What you need:
A butcher Knife (Player Crafted)
A rune to a bank with a garbage two tiles from the garbage (name it Trash).  Make sure the trash is a chest, if it's not you will have to add the trash TYPE to the script (%garbage_cont)
A runebook (you can only have one in the back pack).  Set the default rune to your boat.

Setup:
You need to move your tillerman to the far back wall.
stand next to the tillermen over the hull.
Press play.

It will autodetect the bank trash bin, your tillermen, your butcher knife.

It will fish in one spot and then when there is no more fish biting it will move forward for a random period of time, then stop and fish.  Then it will move back and do the same thing and then forward... it makes a slow progression forward that way.

[Things I'm adding]
Menu with Stats
Auto fill fisher quests and turn them in



Code: [Select]
; You have Casca to thank for this script.
; I made this for Trailmyx's website.  If I see it on another site I'll pee on you IRL.
; It's not a full unattended script
; I wrote it for training from 70 up and for
; just fishing for fish to stock up
; You'll need to use something else to get to 70

set %hull_type JDUB_LKTB_IEGD_XQSB  ; add your hull type if you use something other than orc boat
set %fish UYZ_GQD_DQD_WYZ_NMZ_FQD_OMZ_EQD_RMZ_SMZ_zyz_tyz_
set %pole XHF
set %shoes PVI_TVI_AWI_NVI_OVI_ZVI_CWI_QVI
set %special YDF_
set %garbage_cont BUD
set %boot_count 25 ; Set this to a low number if you want to clear your pack
set %knife_type GMH ;butcher knife
set %goods wws_UDHB_xvh_HTD
; setup variables
finditem %knife_type c_ , #backpackid
if #findkind = -1
{
display Click on the knife/sword you are going to cut fish with
set #targcurs 1
    while #targcurs = 1
          {
          wait 1
          }
set %knife #ltargetid
goto polesetup
}
set %knife #findid
polesetup:
finditem %pole c_ , #backpackid
if #findkind = -1
   {
   finditem %pole c_ , #charid
       if #findkind = -1
           {
            display you need a pole tardo!
            halt
            }
  set %poleID #findid
  goto jump
   }
set %poleID #findid
jump:
finditem ZBN c_ , #backpackid
if #findkind = -1
   {
   display you need a rune book with default set to ship
   halt
   }
set %runebook #findid
finditem %hull_type G_2
if #findkind = -1
   {
   display you need to be 2 tiles from the hull
   halt
   }
set %hull #findid
tillermen5:
finditem HS G_2
if #findrep < 7
   {
   ignoreitem #findid
   goto tillermen5
   }
set %tillermen #findid
rune_trash:
finditem QWL c_ , #backpackid
  if #findkind = -1
     {
     display You don't have a trash rune in your pack
     }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto rune_trash
   }
if insured notin #property
   {
   display your trash rune isn't insured
   }
set %trash_rune #findid
gosub check_pack

start:
event macro 8 7
wait 1s
gosub set_hook
gosub fish
gosub move
goto start

sub move
if %forward = n/a
   set %forward 1
if %forward = 1
   set %forward forward
if %forward = 0
   set %forward back
msg %forward $
set %num #random % 9
wait %num , s
msg stop $
return
wait #random


sub fish
fish:
set #lobjectID %poleID
event macro 17 0
;target
;event macro 22 0
click 470 388
wait 8s
set %end #jindex
gosub journal
if #result = #true
   return
gosub check_pack
goto fish


sub journal
for %i %start %end
    {
    scanjournal %i
        if biting in #journal
           return #true
    }
return #false

sub check_pack
goods:
finditem %goods c_ , #backpackid
if #findkind = -1
   goto reg_fish
exevent drag #findid #findstack
exevent dropc %hull
wait 1s
goto goods
reg_fish:
finditem %fish c_ , #backpackid
if #findkind = -1
   goto how_many
set %fishID #findid
event property %fishID
if fish notin #property || cat in #property || sun in #property || blue in #property || gill in #property || trout in #property || bone in #property || big in #property
   {
   exevent drag #findid #findstack
   exevent dropc %hull
   wait 1s
   ignoreitem %fishID
   goto reg_fish
   }
set #lobjectID %knife
event macro 17 0
target
set #ltargetID %fishID
set #ltargetkind 1
event macro 22 0
wait 2s
goto reg_fish
how_many:
finditem %special c_ , #backpackid
if #findkind <> -1
   {
   set #LobjectID #findid
   event macro 17 0
   wait 2s
   }
finditem %shoes c_ , #backpackid
if #findcnt > %boot_count
   gosub dump_stuff
finditem IND c_ , #backpackid
if #findcnt > %boot_count
   gosub dump_stuff
return

sub dump_stuff
; recall to bank
event macro 15 31
target
set #ltargetid %trash_rune
set #ltargetkind 1
event macro 22 0
wait 8s
; dump stuff
trash_bin:
finditem %garbage_cont G_2
if #findkind = -1
   {
   display you are either not near a bank trash bin or it's the wrong type, add the type up top
   halt
   }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto trash_bin
   }
set %trashID #findid
dump_fish:
finditem IND c_ , #backpackid
if #findkind = -1
   goto dump_shoes
exevent drag #findid
exevent dropc %trashID
wait 2s
goto dump_fish
dump_shoes:
finditem %shoes c_ , #backpackid
if #findkind = -1
   goto back_ship
exevent drag #findid
exevent dropc %trashID
wait 2s
goto dump_shoes
back_ship:
event macro 15 31
target
set #ltargetid %runebook
set #ltargetkind 1
event macro 22 0
wait 6s
lala:
finditem %tillermen G
if #finddist < 2
   goto lala2
event pathfind #findx #findy #findz
wait 2s
goto lala
lala2:
set #lobjectid %hull
event macro 17 0
wait 1s
gosub set_hook
return

sub set_hook
set #lobjectid %hull
event macro 17 0
wait 1s
set #lobjectID %poleID
event macro 17 0
target
set #ltargetkind 3
click 337 445
wait 8s
return

Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 09, 2011, 08:05:15 AM
Really want to try your script but, don't have an Orc ship. I am unsure exactly how to change my hull type. I know where to change it at but, I see you list several item types on that line. Will look more and see if I can figure it out but, any help would be greatly appreciated.

Thanks for writing the script though!
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 09, 2011, 12:00:42 PM
if you read throught the script he points out were you can add your ship to it
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 09, 2011, 12:57:22 PM
if you read throught the script he points out were you can add your ship to it

Looked again and only saw the same spot I mentioned in my first reply. Looks like there are several item types listed there. I haven't tried IDing a different boat though an see if it gives me an Item type that large. So that is why I said I am unsure.

I am an avid script user but, not a scripter at all. So my knowledge with scripts is very limited.
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 09, 2011, 01:05:54 PM
This is the line your looking for:
Here is were you add in your hull type for example you would go behind XQSB and do this _abcde so it would look like this after complted XQSB_abcde   ;  not were abcde is u will need to find out what your hull code is you can do this a number of ways by opeing up easy uo and double clicking your hull and looking at last object id or run Massacre item id script

 set %hull_type JDUB_LKTB_IEGD_XQSB  ; add your hull type if you use something other than orc boat
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 09, 2011, 01:09:59 PM
This is the line your looking for:
Here is were you add in your hull type for example you would go behind XQSB and do this _abcde so it would look like this after complted XQSB_abcde   ;  not were abcde is u will need to find out what your hull code is you can do this a number of ways by opeing up easy uo and double clicking your hull and looking at last object id or run Massacre item id script

 set %hull_type JDUB_LKTB_IEGD_XQSB  ; add your hull type if you use something other than orc boat


Yeah I saw that line before I posted my first message but, I had two questions still which is why I was unsure. One how do I find the hull type and two is "JDUB_LKTB_IEGD_XQSB" the whole item type or is it just 4 chars like most item types?
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 09, 2011, 02:02:50 PM
open easy uo and then double click your cargo hold and look in easy uo under last action and last object that is your hull/cargo hold id differnt boats are assigned differnt hull values he just made it were all ork boat hulls works with the script
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 09, 2011, 02:28:10 PM
open easy uo and then double click your cargo hold and look in easy uo under last action and last object that is your hull/cargo hold id differnt boats are assigned differnt hull values he just made it were all ork boat hulls works with the script

So what your saying is there was more than one type of Ork Boat hill that is why I see 4 item types in that line? That makes sense then. So my ship hull is still only 4 chars which is what I am seeing when I do what you suggested. Thanks for the help.

Post Merge: April 09, 2011, 05:13:09 PM
Well I got it working! Going to be a handy to use I think. Using the Tokuno Ship but I had to put 3 different hull types before it would work properly.

One thing that would improve the usablity right away though would be to add a pause hotkey maybe for when the serps pop up. Course a spellchanneling pole might help a little with that though. hehe

All in all thanks for writing the script!  Hope you add more too it. Let me know if you need someone to help with testing.

Robin
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 09, 2011, 11:51:27 PM
Congrats wanted you to work for the answer didn t want to give it to you on silver plater there thats why i walked you through the steps to get the ids. Plus you lerned something you didn t know robin thats always plus in my book.
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 09, 2011, 11:57:14 PM
Okay tested this script out today.  I added in the tokuno ship cargo hold ids  then added in my trash can ids so could dump the shoes. It worked great the only cons that i see to this script as this point in time is when serps pop.  Need to either set up a pause script key because training from 70 to 100 your going to get serps no mater what.  Next sugestion would be to work in killing serps and looting them to cargo hold thats the only thing that i would do. I would probley work magery into it becasue you can ebolt or mindblast with no eval still do damage to serps and kill them. Just my 2 cents other than that great script mate.
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 10, 2011, 01:59:20 AM
Okay tested this script out today.  I added in the tokuno ship cargo hold ids  then added in my trash can ids so could dump the shoes. It worked great the only cons that i see to this script as this point in time is when serps pop.  Need to either set up a pause script key because training from 70 to 100 your going to get serps no mater what.  Next sugestion would be to work in killing serps and looting them to cargo hold thats the only thing that i would do. I would probley work magery into it becasue you can ebolt or mindblast with no eval still do damage to serps and kill them. Just my 2 cents other than that great script mate.


Would be nice to have Magery, Archery, and Mystic kill options for serps though. Even just magery would be great though
Title: Update
Post by: tgambit65 on April 11, 2011, 10:11:39 AM
Well been fishing with your script quite a bit last couple of days. It is the only script publiclly available I know of that will allow you to fish with the new boats. Here is a listing of information that may help you in improving the script.

TRASH CAN: I have not found a bank container I can use buy either adding the item ID or Replacing the item ID. Unless I am editing the wrong spot maybe but, here is the line I am editing with the ID of the trash chest I am trying to use.

set %garbage_cont IKF_

PAUSE KEY: If you do nothing else put a pause hot key to use when serps pop up. That is the only thing that really makes it hard to use. Otherwise I have been really enjoying this.

AUTOLOOTER: For what it is worth I have noticed I am able to loot 100% of the time standing in the spot you require for the script to work. No movement needed. I am using the Tokuno Ship facing south.

Hope you decide to work more on your script. If you do I will do my best to test with you and update you on issues. Let me know if I can help.
Title: Re: Casca's Fisher and Trainer Pause key solved?
Post by: tgambit65 on April 11, 2011, 10:23:23 AM
Was searching this site for pause key help and found this.

http://www.scriptuo.com/index.php?topic=1002.0;highlight=pause+script

Looks like it might be easy to add in. I have never written a script but, I might even be able to add this in after looking at the post linked above. I will give it a try anyway.
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 10:51:37 AM
Ok I cut and pasted in the pause button scripting. The pause button menu pops up no problem but, it doesn't pause the script when pushed. Here is the full script I am trying but, have never edited a script in this way so I am clueless. lol

Any help here would be great!
Added code markers
Code: [Select]
; You have Casca to thank for this script.
; I made this for Trailmyx's website.  If I see it on another site I'll pee on you IRL.
; It's not a full unattended script
; I wrote it for training from 70 up and for
; just fishing for fish to stock up
; You'll need to use something else to get to 70

set %hull_type JDUB_LKTB_IEGD_XQSB_PPCC_VPCC_QPCC  ; add your hull type if you use something other than orc boat
set %fish UYZ_GQD_DQD_WYZ_NMZ_FQD_OMZ_EQD_RMZ_SMZ_zyz_tyz_
set %pole XHF
set %shoes PVI_TVI_AWI_NVI_OVI_ZVI_CWI_QVI
set %special YDF_
set %garbage_cont IKF
set %boot_count 50 ; Set this to a low number if you want to clear your pack
set %knife_type GMH ;butcher knife
set %goods wws_UDHB_xvh_HTD
; setup variables
finditem %knife_type c_ , #backpackid
if #findkind = -1
{
display Click on the knife/sword you are going to cut fish with
set #targcurs 1
    while #targcurs = 1
          {
          wait 1
          }
set %knife #ltargetid
goto polesetup
}
set %knife #findid
polesetup:
finditem %pole c_ , #backpackid
if #findkind = -1
   {
   finditem %pole c_ , #charid
       if #findkind = -1
           {
            display you need a pole tardo!
            halt
            }
  set %poleID #findid
  goto jump
   }
set %poleID #findid
jump:
finditem ZBN c_ , #backpackid
if #findkind = -1
   {
   display you need a rune book with default set to ship
   halt
   }
set %runebook #findid
finditem %hull_type G_2
if #findkind = -1
   {
   display you need to be 2 tiles from the hull
   halt
   }
set %hull #findid
tillermen5:
finditem HS G_2
if #findrep < 7
   {
   ignoreitem #findid
   goto tillermen5
   }
set %tillermen #findid
rune_trash:
finditem QWL c_ , #backpackid
  if #findkind = -1
     {
     display You don't have a trash rune in your pack
     }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto rune_trash
   }
if insured notin #property
   {
   display your trash rune isn't insured
   }
set %trash_rune #findid
gosub check_pack
gosub showEUOMenu1

start:
if #MENUBUTTON = pause
  gosub pause_script
event macro 8 7
wait 1s
gosub set_hook
if #MENUBUTTON = pause
  gosub pause_script
gosub fish
if #MENUBUTTON = pause
  gosub pause_script
gosub move
goto start

sub move
if %forward = n/a
   set %forward 1
if %forward = 1
   set %forward forward
if %forward = 0
   set %forward back
msg %forward $
set %num #random % 9
wait %num , s
msg stop $
return
wait #random


sub fish
fish:
set #lobjectID %poleID
event macro 17 0
;target
;event macro 22 0
click 470 388
wait 8s
set %end #jindex
gosub journal
if #result = #true
   return
gosub check_pack
goto fish


sub journal
for %i %start %end
    {
    scanjournal %i
        if biting in #journal
           return #true
    }
return #false

sub check_pack
goods:
finditem %goods c_ , #backpackid
if #findkind = -1
   goto reg_fish
exevent drag #findid #findstack
exevent dropc %hull
wait 1s
goto goods
reg_fish:
finditem %fish c_ , #backpackid
if #findkind = -1
   goto how_many
set %fishID #findid
event property %fishID
if fish notin #property || cat in #property || sun in #property || blue in #property || gill in #property || trout in #property || bone in #property || big in #property
   {
   exevent drag #findid #findstack
   exevent dropc %hull
   wait 1s
   ignoreitem %fishID
   goto reg_fish
   }
set #lobjectID %knife
event macro 17 0
target
set #ltargetID %fishID
set #ltargetkind 1
event macro 22 0
wait 2s
goto reg_fish
how_many:
finditem %special c_ , #backpackid
if #findkind <> -1
   {
   set #LobjectID #findid
   event macro 17 0
   wait 2s
   }
finditem %shoes c_ , #backpackid
if #findcnt > %boot_count
   gosub dump_stuff
finditem IND c_ , #backpackid
if #findcnt > %boot_count
   gosub dump_stuff
return

sub dump_stuff
; recall to bank
event macro 15 31
target
set #ltargetid %trash_rune
set #ltargetkind 1
event macro 22 0
wait 8s
; dump stuff
trash_bin:
wait 20
finditem %garbage_cont G_5
if #findkind = -1
   {
   display you are either not near a bank trash bin or it's the wrong type, add the type up top
   halt
   }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto trash_bin
   }
set %trashID #findid
dump_fish:
finditem IND c_ , #backpackid
if #findkind = -1
   goto dump_shoes
exevent drag #findid
exevent dropc %trashID
wait 2s
goto dump_fish
dump_shoes:
finditem %shoes c_ , #backpackid
if #findkind = -1
   goto back_ship
exevent drag #findid
exevent dropc %trashID
wait 2s
goto dump_shoes
back_ship:
event macro 15 31
target
set #ltargetid %runebook
set #ltargetkind 1
event macro 22 0
wait 6s
lala:
finditem %tillermen G
if #finddist < 2
   goto lala2
event pathfind #findx #findy #findz
wait 2s
goto lala
lala2:
set #lobjectid %hull
event macro 17 0
wait 1s
gosub set_hook
return

sub set_hook
set #lobjectid %hull
event macro 17 0
wait 1s
set #lobjectID %poleID
event macro 17 0
target
set #ltargetkind 3
click 337 445
wait 8s
return

sub pause_script
  wait 40
  set %script paused
  set #MENUBUTTON N/A
  menu delete pause
  menu Font BGColor Red
  menu Button pause 0 0 115 45 UnPause
  while %script = paused
  {
    if #MENUBUTTON = pause
    {
      set %script unpaused
      menu delete pause
      menu Font BGColor Lime
      menu Button pause 0 0 115 45 Pause
      set #MENUBUTTON N/A
    }
  }
return

;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title CP
menu Window Color BtnFace
menu Window Size 113 44
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 16
menu Font Style
menu Font Color WindowText
menu Font BGColor Lime
menu Button pause 0 0 115 45 Pause
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------
Title: Re: Casca's Fisher and Trainer
Post by: Cerveza on April 11, 2011, 11:08:35 AM
Fixed it up a bit, try the one you just posted again tgambit65.

Lemme know if it's working.
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 11:19:19 AM
Fixed it up a bit, try the one you just posted again tgambit65.

Lemme know if it's working.

Did you mean you edited the code in my post? I did a copy and paste of it again but, no change. Pause button comes up fine but, when pushed it does not pause the script.

Thanks for taking the time to help out though. Let me know what else we can do.
Title: Re: Casca's Fisher and Trainer
Post by: Cerveza on April 11, 2011, 11:22:09 AM
Does the Pause button change color?
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 11:23:08 AM
Well I see it depress but no it remains the same color
Title: And while I got you looking at this thread Cerveza
Post by: tgambit65 on April 11, 2011, 11:41:34 AM
I know this is not your script and nor is it mine. But, could you take a look and tell me if you see any reason why I can't get the script to accept the new trash container I listed? I put the correct Item ID for the trash container where my "Trash Rune" is located but it doesn't see it. I have looked for a trash container that matches the one listed in the script but, couldn't find one to test if it works with that one.

Any help here would be awesome too!

Thanks man
Title: Re: Casca's Fisher and Trainer
Post by: Cerveza on April 11, 2011, 11:47:07 AM
Does the rune have the word "Trash" in it?

What "TYPE" is it? Not what is the ID from it, what TYPE? It'll be a 3 letter code. Use THIS SCRIPT (http://www.scriptuo.com/index.php?topic=188.0) if your unsure how to get the TYPE.

Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 12:00:36 PM
Does the rune have the word "Trash" in it?

What "TYPE" is it? Not what is the ID from it, what TYPE? It'll be a 3 letter code. Use THIS SCRIPT (http://www.scriptuo.com/index.php?topic=188.0) if your unsure how to get the TYPE.



Yes the run does have the word trash on it. The script recalls to the trash/bank location find. I recall in right next to the container. The "TYPE" was changed to the one I am trying to use in the code I posted. IKF is the Type. I used both XIIxOveR's SuperStuff Info stuff utility and also looked in Last Action Objecttype in easy uo itself when opening the container. Both methods show the same item type.
Title: Re: Casca's Fisher and Trainer
Post by: Cerveza on April 11, 2011, 12:10:18 PM
You can ditch the underscore after the trash IKF, you only need that if you are going to join more then one into a variable.

If his works with "BUD" then yours should work with "IKF", should be the same thing. Do you have to actually open your trash container to deposit something into it or can you just drop it on the container? How about his "BUD" item, is it the same way?

For the pause issue... start a new tab in EUO and put in this:

Code: [Select]
gosub showEUOMenu1

repeat
if #MENUBUTTON = pause
  gosub pause_script
wait 1
until #false

sub pause_script
  set %script paused
  set #MENUBUTTON N/A
  menu delete pause
  menu Font BGColor Red
  menu Button pause 0 0 115 45 UnPause
  while %script = paused
  {
    if #MENUBUTTON = pause
    {
      set %script unpaused
      menu delete pause
      menu Font BGColor Lime
      menu Button pause 0 0 115 45 Pause
      set #MENUBUTTON N/A
    }   
  }
return

;--------- EasyUO Menu Designer Code Begin ---------
sub showEUOMenu1
menu Clear
menu Window Title CP
menu Window Color BtnFace
menu Window Size 113 44
menu Font Transparent #true
menu Font Align Right
menu Font Name MS Sans Serif
menu Font Size 16
menu Font Style
menu Font Color WindowText
menu Font BGColor Lime
menu Button pause 0 0 115 45 Pause
menu Show 421 270
return
;--------- EasyUO Menu Designer Code End ---------

See if that toggles.

Title: For the pause issue... start a new tab in EUO and put in this:
Post by: tgambit65 on April 11, 2011, 12:15:18 PM
Yes when run on it's own it toggles fine from paused to unpause and back again.
Title: Item type BUD
Post by: tgambit65 on April 11, 2011, 12:22:29 PM
I could never find a trash container with that item TYPE. So I could not test it myself and thus have no idea if it worked in the first place.

The container is one you can just drop stuff on.

It makes sense that if it worked with BUD it should work with the new Item Type. I was thinking the same thing so spent some time to find a similar item type. My guess is that it does not work correctly. Although Outlaw Wales said he tested the script and never mentioned anything about it not working.

After recalling in it puts up a message about not near the container.
Title: Re: Casca's Fisher and Trainer
Post by: Cerveza on April 11, 2011, 12:29:35 PM
Ok, try your version again, put in a couple waits and increased the range to find your trash... Are you recalling within 2 steps of it? Is it on your steps?

Try it again and give the pause button a try, you may have to wait for the "cycle" to finish before it will pause. That might have been the issue the whole time with the pause.
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 12:44:20 PM
Ok, try your version again, put in a couple waits and increased the range to find your trash... Are you recalling within 2 steps of it? Is it on your steps?

Try it again and give the pause button a try, you may have to wait for the "cycle" to finish before it will pause. That might have been the issue the whole time with the pause.

Ok tried again. Now the recall is broken though. Stops at the targeting cusor for the rune. I noticed there is a message for not seeing the rune in the script but, that does not show. If you target the rune manually it recalls to the bank/container and still gives this message. "you are either not near a bank trash bin or it's the wrong type, add the type up top"
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 11, 2011, 12:45:31 PM
I could never find a trash container with that item TYPE. So I could not test it myself and thus have no idea if it worked in the first place.

The container is one you can just drop stuff on.

It makes sense that if it worked with BUD it should work with the new Item Type. I was thinking the same thing so spent some time to find a similar item type. My guess is that it does not work correctly. Although Outlaw Wales said he tested the script and never mentioned anything about it not working.

After recalling in it puts up a message about not near the container.
Mate i used the trash barrel in tokuno i set my id for it worked like charm had no issues except the ones i expressed about pause button or either haveing it kill the serps
Title: Pause
Post by: tgambit65 on April 11, 2011, 12:58:17 PM
When I tested again he pause menu still pops up but, does not toggle. I have waited a while to see if it would end a cycle. For this to be helpful though we would need to pause the script right away or it loses it's purpose.

Title: Re: Casca's Fisher and Trainer
Post by: Cerveza on April 11, 2011, 01:05:17 PM
Ok, well, good luck. I don't fish and won't ever, so no way for me to test it further.

The toggle sub works. It appears to be setup correctly. I made no changes to your script other then to include a couple waits (one before trying to find the trash barrel) so there was nothing that would alter anything to do with recalling.
Title: Finally paused
Post by: tgambit65 on April 11, 2011, 01:07:09 PM
The scriipt finally paused when it had to move the boat for fish not biting.
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 01:09:48 PM
Ok, well, good luck. I don't fish and won't ever, so no way for me to test it further.

The toggle sub works. It appears to be setup correctly. I made no changes to your script other then to include a couple waits (one before trying to find the trash barrel) so there was nothing that would alter anything to do with recalling.


Ok well thanks for helping with what you did.
Title: How would we make a pause happen asap and not at the end of a cycle?
Post by: tgambit65 on April 11, 2011, 01:16:40 PM
This script can be useful even without the trash dump. However, to be really useful you need to be able to pause when a serp pops up. Anyone know how we embed Cerv's pause script to get an immediate pause instead of at the end of the cycle?

Better yet would be an auto detect of all serp types with hands free pause and a button to restart. Betting there are some auto detect subs out there already maybe.
Title: Shoe dump -Help anyone?
Post by: tgambit65 on April 11, 2011, 03:50:54 PM
Again I am no scripter however this is the point where Casca's script is ending for me. From a logic standpoint this would seem to be the breakdown. Anyone notice why this part of the script is halting here? I have changed the Set vairable to the correct item type at the top of the code.

finditem %garbage_cont G_2
if #findkind = -1
   {
   display you are either not near a bank trash bin or it's the wrong type, add the type up top
   halt
   }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto trash_bin
   }
set %trashID #findid
Title: Re: Shoe dump -Help anyone?
Post by: _C2_ on April 11, 2011, 03:54:48 PM
Again I am no scripter however this is the point where Casca's script is ending for me. From a logic standpoint this would seem to be the breakdown. Anyone notice why this part of the script is halting here? I have changed the Set vairable to the correct item type at the top of the code.

finditem %garbage_cont G_2
if #findkind = -1
   {
   display you are either not near a bank trash bin or it's the wrong type, add the type up top
   halt
   }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto trash_bin
   }
set %trashID #findid

probably missing an id for your trash can.  i missed a few diff can ids when i made my fisher dump shoes etc
Title: Re: Shoe dump -Help anyone?
Post by: tgambit65 on April 11, 2011, 03:59:24 PM
Again I am no scripter however this is the point where Casca's script is ending for me. From a logic standpoint this would seem to be the breakdown. Anyone notice why this part of the script is halting here? I have changed the Set vairable to the correct item type at the top of the code.

finditem %garbage_cont G_2
if #findkind = -1
   {
   display you are either not near a bank trash bin or it's the wrong type, add the type up top
   halt
   }
event property #findid
if trash notin #property
   {
   ignoreitem #findid
   goto trash_bin
   }
set %trashID #findid

probably missing an id for your trash can.  i missed a few diff can ids when i made my fisher dump shoes etc

Excuse my ignorance as I have never really played with scripting before except for setting user variables. I do have the correct item type on line 13 of the script.

set %garbage_cont IKF

Is that what your talking about or is there something else I should be looking for?
Title: Re: Casca's Fisher and Trainer
Post by: _C2_ on April 11, 2011, 04:31:00 PM
are you sure that it matches the one you are using?  i have eight diff trash ids in my script and most of them look the same.  for whatever reason, the only command in that halts in your snipt-it is the one if i dont find a trash can halt.

dbl click your trash can and then look to see what the #lobjecttype is under last action in easy uo (right side of menu)
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 04:41:55 PM
are you sure that it matches the one you are using?  i have eight diff trash ids in my script and most of them look the same.  for whatever reason, the only command in that halts in your snipt-it is the one if i dont find a trash can halt.

dbl click your trash can and then look to see what the #lobjecttype is under last action in easy uo (right side of menu)

Double checked that several times. Just did it again and it is definitively IKF
Title: Re: Casca's Fisher and Trainer
Post by: Outlaw Josey Wales on April 11, 2011, 04:57:44 PM
are you sure that it matches the one you are using?  i have eight diff trash ids in my script and most of them look the same.  for whatever reason, the only command in that halts in your snipt-it is the one if i dont find a trash can halt.

dbl click your trash can and then look to see what the #lobjecttype is under last action in easy uo (right side of menu)
Have you tried useing the trash barrel in tokuno thats the one i used had no problems what so ever

Double checked that several times. Just did it again and it is definitively IKF
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on April 11, 2011, 05:14:21 PM
are you sure that it matches the one you are using?  i have eight diff trash ids in my script and most of them look the same.  for whatever reason, the only command in that halts in your snipt-it is the one if i dont find a trash can halt.

dbl click your trash can and then look to see what the #lobjecttype is under last action in easy uo (right side of menu)
Have you tried useing the trash barrel in tokuno thats the one i used had no problems what so ever

Double checked that several times. Just did it again and it is definitively IKF

Wow that one works.. It is a barrel and not a chest. So why would it work with the barrel and not the chest?
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on March 02, 2013, 01:39:22 PM
Well this script used to work fairly good for me. Not so much anymore though. Could anyone be so kind to take a glance at it and see what may be causing it to no longer work?

Only thing it would do now is tell you your 2 tiles from hull if you don't have the right ship type in there now. Add that in and it doesn't search for the knife anymore or move on from there.
Title: Re: Casca's Fisher and Trainer
Post by: Crisis on March 03, 2013, 07:54:53 AM
I have not used this script but if you aren't set on using a high seas ship, TrailMyx's Full Auto Fisherman is awesome! I have used it for many things like collecting SOS's, quest fish (though there is an option to have them cut up instead) fishing nets and what not. It unloads into your bank box and goes back out. I used this script to take fishers from 70-120. There is nothing that even remotely comes close to as awesome as this. You can download it here: http://www.scriptuo.com/index.php?topic=41.0 and then you will need his CLAW script as well which you can find here: http://www.scriptuo.com/index.php?topic=17.0 The CLAW is an awesome looting script which has a ton of uses for as well.
Title: Re: Casca's Fisher and Trainer
Post by: tgambit65 on May 02, 2013, 05:24:46 PM
I have used that in the past and it is a great script. Something about the big ships for me though. lol
Title: Re: Casca's Fisher and Trainer
Post by: Endless Night on October 07, 2013, 05:37:40 PM
Moved to inactive submissions.  Please pm myself or a mod if you start working on this script again.