angler.mac - Fisher

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

Feonix762
orc pawn
orc pawn
Posts: 15
Joined: Thu Feb 26, 2004 5:53 am

angler.mac - Fisher

Post by Feonix762 » Thu Feb 26, 2004 6:20 pm

This code is pretty self explainatory, grab yourself 8 empty backpacks, buy about 5 or 6 fishing poles, load up a couple backpacks with bait, and go stand by some water.

Code: Select all

See below
Can anyone help me out with a PC radius detection? I'm at work right now so I can't test some things. How would I go about doing it? So far I've seen /target nopcnear but it has no description of what exactly this does.
Last edited by Feonix762 on Thu Feb 26, 2004 11:58 pm, edited 1 time in total.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Thu Feb 26, 2004 10:33 pm

You could make this simpler by changing

Code: Select all

/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy 
  /if "$cursor(name)"=="Rusty Dagger" /destroy 
  /if "$cursor(name)"=="Fish Scales" /destroy 
  /if "$cursor(name)"=="Fresh Fish" /destroy 
  /if "$cursor(name)"=="Crawdad" /destroy 
  /if "$cursor(name)"=="Waterleaf Scale" /destroy 
  /if "$cursor(name)"~~"Saltwater" /autoinventory
to

Code: Select all

/if "$cursor(name)"!~"Saltwater" /destroy
/autoinv

Virtuoso65
a hill giant
a hill giant
Posts: 150
Joined: Wed Oct 15, 2003 2:29 pm

Post by Virtuoso65 » Fri Feb 27, 2004 1:21 am

Wassup wrote:You could make this simpler by changing

Code: Select all

/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy 
  /if "$cursor(name)"=="Rusty Dagger" /destroy 
  /if "$cursor(name)"=="Fish Scales" /destroy 
  /if "$cursor(name)"=="Fresh Fish" /destroy 
  /if "$cursor(name)"=="Crawdad" /destroy 
  /if "$cursor(name)"=="Waterleaf Scale" /destroy 
  /if "$cursor(name)"~~"Saltwater" /autoinventory
to

Code: Select all

/if "$cursor(name)"!~"Saltwater" /destroy
/autoinv

And then you accidently pick up your uberswordofslashing and poof....

Feonix762
orc pawn
orc pawn
Posts: 15
Joined: Thu Feb 26, 2004 5:53 am

Post by Feonix762 » Fri Feb 27, 2004 1:54 am

Changed it, and I wouldn't worry about your ubersword poofing, the only thing the entire macro does is /autoinv so unless you were grabbing your equipment while the Macro was running you'd be ok.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Fri Feb 27, 2004 4:00 am

Virtuoso65 wrote:
Wassup wrote:You could make this simpler by changing

Code: Select all

/if "$cursor(name)"=="Tattered Cloth Sandal" /destroy 
  /if "$cursor(name)"=="Rusty Dagger" /destroy 
  /if "$cursor(name)"=="Fish Scales" /destroy 
  /if "$cursor(name)"=="Fresh Fish" /destroy 
  /if "$cursor(name)"=="Crawdad" /destroy 
  /if "$cursor(name)"=="Waterleaf Scale" /destroy 
  /if "$cursor(name)"~~"Saltwater" /autoinventory
to

Code: Select all

/if "$cursor(name)"!~"Saltwater" /destroy
/autoinv

And then you accidently pick up your uberswordofslashing and poof....
Yes, that is a possibility, but you have to be careful.

You could put in some code to prevent that from happening fairly easily.

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Feb 27, 2004 9:57 am

Hey, I'm happy to see someone updating the fishing macros for use without a summoned pole :)

Thanks for the work.

User avatar
Elric
Cheese Whore
Cheese Whore
Posts: 466
Joined: Sun Nov 23, 2003 12:31 am
Location: Tampa, Fl
Contact:

Post by Elric » Fri Feb 27, 2004 12:38 pm

Mckorr, you fool! Half the fun of fishing is the drinking involved!
-Elric

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Tue Mar 09, 2004 8:11 pm

That was so bad, I had to rewrite it:

Code: Select all

| - angler.mac -

sub main

| guarantee we are standing
/if "$char(state)"=="SIT" /stand

| guarantee the inv window is closed
/if $invpanel!=FALSE /press i

:Again

    |
    | if we are in trouble, gate out
    |
    /if n $char(hp,pct)<75 {
        /cast Gate
        /delay 3s
        /cast Gate
        /delay 3s
        /sit
        /camp desktop
        /quit
        /endm
    }
    
    |
    | if gm around, quit
    |
    /if $gm==TRUE { 
        /sit
        /camp desktop
        /quit
        /endm
    }

    |
    | we don't have a pole in the primary
    |
    /if "$equip(primary,name)"!="Fishing Pole" {
        | open inv
        /press i
        /delay 2

        | can we find a pole?
        |
        | note: this may not work if pole is not in inv slot
        | finditem is bugged in that it will not wait for the pack
        | to open if the pole is in a pack.  to fix this, open all 
        | the packs at the beginning of the macro
        |
        /finditem "Fishing Pole"
        /delay 1s
        /if $find()==FALSE {
            /echo no pole found 
            /endm
        }

        | equip the pole
        /click left primary
        /delay 5
        
        | autoinv whatever was in primary
        /autoinv
        /press i
    }
    |
    | actually do some fishing
    |
    /doability Fishing
    /delay 65

    | if the item we caught does not have Saltwater in the
    | name, destroy it else autoinventory it  
    |
    | note: fast destroy should be turned on
    |
    /if "$cursor(name)"!~"Saltwater" /destroy
    /autoinv

    /goto :Again

/return


Ketamine
orc pawn
orc pawn
Posts: 18
Joined: Thu Feb 26, 2004 4:12 pm

Post by Ketamine » Tue Mar 30, 2004 6:18 pm

If I remove the sub help it will still work right? Was trying to FD fish in PoN and as soon as I started the macro it automaticly tried to gate me and camp =p

I guess when FD it assumes my hp are low?