fish.mac - new and working

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

fish.mac - new and working

Post by GD » Mon Jul 01, 2002 5:49 pm

I figured out what was wrong with it, and modified it to work.

Code: Select all

| - Fish.mac -
|
#include routines.mac

Sub Main 
   /cleanup
   :Fish 
      /call CheckPole
      /if $return==1 /return
      /call CheckBait
      /if $return==1 /return
      | Modify the following line to your correct Ability Key for Fishing
      /doability 5 
      /delay 55 
      /if "$cursor(name)"=="Tattered Cloth Sandal" /click left destroy
      /if "$cursor(name)"=="Rusty Dagger" /click left destroy
      /click left auto 
   /goto :Fish
/return

Sub CheckPole
   /if "$equip(primary,name)"~~"Fishing Pole" /return 0
   /finditem "Fishing Pole"
   /if "$cursor()"=="NULL" /return 1
   /click left primary
   /if "$cursor()"!="NULL" /click left auto
/return 0

Sub CheckBait
   /if "$equip(ammo,name)"~~"Bait" /return 0
   /if "$equip(ammo,name)"~~"Lure" /return 0
   /if "$cursor()"=="NULL" /sendkey down shift
   /if "$cursor()"=="NULL" /finditem similar "Bait"
   /if "$cursor()"=="NULL" /finditem similar "Lure"
   /if "$cursor()"=="NULL" /sendkey up shift
   /if "$cursor()"=="NULL" /return 1
   /click left auto 
/return 0

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Why worry about bait?

Post by Amadeus » Mon Jul 01, 2002 5:56 pm

Well, I suppose it's possible that you could have two different types of baits/lures in your inventory (or bait vs. lure, whatever the case might be), I found it silly to go through the trouble of putting the bait/lure in the ammo slot.

Fishing works just fine with the bait in a backpack :)

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Mon Jul 01, 2002 7:48 pm

Saluations,
Topic renamed to follow rules...

War1980
orc pawn
orc pawn
Posts: 15
Joined: Sat Nov 15, 2003 5:31 pm

problem

Post by War1980 » Tue Nov 18, 2003 5:59 pm

i run this, and it immediately ends...
Well, it says it ends, but if the mouse is not centered on my inventory screen (or where it would be if the inv screen was open) after a few seconds, the mouse pointer automatically repositions itself.

Am using "Fishing Pole" with "Fishing Bait". I have them equipped, should i leave them in inv and let the macro find and equip them, or do i need to do something mundane like face south by south west? Not once do i even try and fish using this macro.

When i use the original fish.mac, i get the following error:
originalfish.mac@21 (main):/varset v99 0
Cleared the following: Timers Vars Arrays
The current macro has ended.

NotSoCSharp
a ghoul
a ghoul
Posts: 85
Joined: Sat Oct 25, 2003 10:48 am

Post by NotSoCSharp » Wed Nov 19, 2003 7:54 am

Nevermind. I did not read your post very well. The old fishing macro needs to be converted to use the new variable style.