Page 1 of 1

fishing macro, with ini support, works...

Posted: Fri Apr 30, 2004 11:21 am
by amml
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 


Posted: Fri Apr 30, 2004 8:07 pm
by trogdor
doesnt stand when it trys to summon a new pole

realized macro didnt have you sit so the stand command isnt needed

Posted: Sat May 01, 2004 4:39 am
by amml
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...