fishing macro, with ini support, works...

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

amml
a lesser mummy
a lesser mummy
Posts: 68
Joined: Thu Apr 22, 2004 4:55 pm

fishing macro, with ini support, works...

Post by amml » Fri Apr 30, 2004 11:21 am

Because i really needed my fishing macro to work again, some demand here... :) I worte one that works with the newest macroquest. Sugestions are welcome...

have fun,

amml

Code: Select all


| fishing.mac - by amml
| Thx to everybody who helped :)
| MQ2Data and MQ2DataVars ready 
| 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 
   :Fish 
   /delay 1s 
   /if (${Me.AbilityReady[Fishing]}) /doability Fishing 
   /delay 6s
       /if (${Cursor.ID}) /call somethingfromwater 
   /doevents 
   /delay 1s 
   /goto :Fish 
/return 


sub somethingfromwater 

  /newif (!${Ini[fishing.ini,DestroyList,${Cursor.Name}].Length}) { 
    /ini "fishing.ini" "DestroyList" "${Cursor.Name}" "-1" 
  } else { 
    /newif (!${Ini[fishing.ini,DestroyList,${Cursor.Name}]}) { 
     /echo Destroying ${Cursor.Name} 
      /destroy 
      /return 
    } 
  } 

  :LootIt 
     /echo Keeping ${Cursor.Name} 
    /autoinventory 
    /if (${Cursor.ID}) /goto :LootIt 
/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 


trogdor
decaying skeleton
decaying skeleton
Posts: 6
Joined: Tue Mar 23, 2004 9:07 pm

Post by trogdor » Fri Apr 30, 2004 8:07 pm

doesnt stand when it trys to summon a new pole

realized macro didnt have you sit so the stand command isnt needed
Trogdor strikes agian!!!

amml
a lesser mummy
a lesser mummy
Posts: 68
Joined: Thu Apr 22, 2004 4:55 pm

Post by amml » Sat May 01, 2004 4:39 am

yes i dont have the sit and stand stuff here, now that has one simple reason, for my instant invisibility macro standing up takes too long cause the instant invis sometimes wears of too fast. If u want me to i can put it in so ur char doesnt always do these werid movements :) just send me a pm if u want it...