Simple Fishing mac for brell's companion, MQ2Data compliant

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

Moderator: MacroQuest Developers

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

Simple Fishing mac for brell's companion, MQ2Data compliant

Post by Virtuoso65 » Fri Apr 23, 2004 7:44 pm

Just load up on bait, park your self by some water, take what ever is in your main hand and bag it, put the brells companion in an open inventory slot and your set.

I didnt create the original macro so thanks who ever wrote this long ago like last year+. I just updated it to work with the current system with as little bs as posable.

Code: Select all

| - Fishing.mac -
| You need a fisherman's companion in an inventory slot for this macro to work properly.

#event PrimaryHand "You need to put your fishing pole in your primary hand."
#event OutOfBait "You can't fish without fishing bait, go buy some."
#event NeedPole "You can't fish without a fishing pole, go buy one."

Sub Main
   /zapvars
   /cleanup
   /declare DAS global
   /declare LC global
   /declare DA array
   /varset DA(0) "Tattered Cloth Sandal"
   /varset DA(1) "Rusty Dagger"
   /varset DA(2) "Fish Scales"
   /varset DA(3) "Dragon Bay"
   /varset DA(4) "Fresh Fish"
   /varset DAS 5
   /varset LC 0

   :Fish
   /if (${Cursor.ID}) /call ItemSub
   /if (${Me.AbilityReady[Fishing]}) /doability Fishing
   /doevents
   /delay 1s
   /goto :Fish
/return

Sub ItemSub
   /for LC 0 to @DAS
   /if (${Cursor.Name.Find[@DA(@LC)]}) {
      /drop
      /return
   }
   /if (@LC==@DAS) {
      /autoinv
      /return
   }
   /next LC
/return

Sub Event_NeedPole
   /cast item "Fisherman's Companion"
   /delay 11s
   /autoinv
/return

Sub Event_PrimaryHand
   /cast item "Fisherman's Companion"
   /delay 11s
   /autoinv
/return

Sub Event_OutOfBait
   /Echo Ran out of Bait.
   /sit off
   /sit on
   /camp
   /endmacro
/return
Last edited by Virtuoso65 on Fri Apr 23, 2004 11:16 pm, edited 1 time in total.

User avatar
grimjack
Macro Author
Macro Author
Posts: 525
Joined: Thu Nov 07, 2002 6:51 am
Contact:

Conversion.

Post by grimjack » Fri Apr 23, 2004 9:18 pm

Good looking conversion.

Thanks
GrimJack
When they come to me, they're in trouble, or they want some. I bust people out of prison, hunt down vampires, fight alien gods -- All the fun jobs people are too squeamish or too polite to do themselves.

Call me a mercenary. Call me an assassin. Call me a villain. I am all that and more.

My name's John Gaunt, but out on the streets of Cynosure, I am called...
GrimJack

firedancer
decaying skeleton
decaying skeleton
Posts: 5
Joined: Wed Apr 14, 2004 4:00 pm

Post by firedancer » Sat May 08, 2004 4:07 am

Yes thanks very much

JWWQ
a lesser mummy
a lesser mummy
Posts: 30
Joined: Sat Jun 19, 2004 4:58 pm

Re: Simple Fishing mac for brell's companion, MQ2Data compli

Post by JWWQ » Mon Jun 28, 2004 7:23 pm

Code: Select all

Sub ItemSub
   /for LC 0 to @DAS
   /if ([color=red]${Cursor.Name.Find[@DA(@LC)]}[/color]) {
      /drop
      /return
   }
   /if [color=red](@LC==@DAS)[/color] {
      /autoinv
      /return
   }
   /next LC
/return

Sub Event_NeedPole
   /cast item "Fisherman's Companion"
   /delay 11s
   /autoinv
/return


Is this part still MQ2 compliant? How do we get the array to work now?

User avatar
nosaj969
a lesser mummy
a lesser mummy
Posts: 33
Joined: Wed Apr 28, 2004 3:39 pm
Location: Hagerstown, MD

try this

Post by nosaj969 » Tue Jun 29, 2004 8:49 am

I have no idea if this will work. I just changed the code to MQ2. DAS may need to be 6 instead of 5. If you have trouble with the "Fresh Fish" that may be what it is.

Code: Select all

| - Fishing.mac - 
| You need a fisherman's companion in an inventory slot for this macro to work properly. 

#event PrimaryHand "#*#You need to put your fishing pole in your primary hand.#*#" 
#event OutOfBait "#*#You can't fish without fishing bait, go buy some.#*#" 
#event NeedPole "#*#You can't fish without a fishing pole, go buy one.#*#" 

Sub Main 

   /declare DAS int outer
   /declare LC int outer 
   /declare DA[5] string outer
   /varset DA[1] "Tattered Cloth Sandal" 
   /varset DA[2] "Rusty Dagger" 
   /varset DA[3] "Fish Scales" 
   /varset DA[4] "Dragon Bay" 
   /varset DA[5] "Fresh Fish" 
   /varset DAS 5 
   /varset LC 1 

   :Fish 
   /if (${Cursor.ID}) /call ItemSub 
   /if (${Me.AbilityReady[Fishing]}) /doability Fishing 
   /doevents 
   /delay 1s 
   /goto :Fish 
/return 

Sub ItemSub 
   /for LC 1 to ${DAS} 
   /if (${Cursor.Name.Find[${DA[${LC}]}]}) { 
      /drop 
      /return 
   } 
   /if (${LC}==${DAS}) { 
      /autoinv 
      /return 
   } 
   /next LC 
/return 

Sub Event_NeedPole 
   /cast item "Fisherman's Companion" 
   /delay 11s 
   /autoinv 
/return 

Sub Event_PrimaryHand 
   /cast item "Fisherman's Companion" 
   /delay 11s 
   /autoinv 
/return 

Sub Event_OutOfBait 
   /Echo Ran out of Bait. 
   /sit off 
   /sit on 
   /camp 
   /endmacro 
/return 
nosaj969