Good day, all.... I am having trouble running macros.

Need help running MacroQuest2? Ask your questions about how to get things to work on your computer.

Moderator: MacroQuest Developers

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Good day, all.... I am having trouble running macros.

Post by PhoenixZorn » Fri Dec 12, 2003 2:40 pm

I understand the workings of this wonderful program, and as such, I am absolutely confused as to why this is occuring. The macro's are written properly, but still, I get the same result from every macro I run.

Basically, each time I run a macro, it says "Cleared the following: Timers Vars Arrays", then either loops itself or stops... I have no idea what it is doing, but it doesn't perform any of the things it is designed to. I am using the Fish2 Macro (with fisherman's companion) and it won't even cast the line. Someone please assist... if this macro no longer works, what are the chances that another could be written?

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

Post by Mckorr » Fri Dec 12, 2003 2:46 pm

Post your macro and the problem you are having with it in the Macro::Help forum.

Whenever a macro ends you will see the zapvars message ("cleared whatever"). Some macros through in a /zapvars command at the beginning to make sure all variables are cleared prior to running the macro (I do that a lot). What it sounds like is either you don't have things in the correct slots, or for some reason you are getting an infinite loop.

PhoenixZorn
Macro Czar
Posts: 127
Joined: Fri Dec 12, 2003 2:20 pm
Contact:

Post by PhoenixZorn » Sat Dec 13, 2003 2:38 am

Problem has been solved by running a different macro... the original fishing macro still doesn't work as far as I know...


However, I am attempting to add on to the fishing macro that DOES work (sorry to the original poster, I don't remember your name) and I am having trouble. I've included notes on where the problems are.

Code: Select all

| - Fish.mac - 
| 
#turbo
#include routines.mac 
 
#event SpellFizzle "Your spell fizzles"
#event BrokenPole "You can't fish without "
#event Interupt "Your spell is interupted."


Sub Main 
   /cleanup 
   :Fish
      /if $invpanel==TRUE /press i 
      /call CheckPole  
      /if $return==1 /return 
      /doability Fishing 
      /delay 105  
|This script is specific to Plane of Valor.  If anyone wishes to do so, a #include could be
|written to figure out what zone you are in, then use the appropriate set of items.
|As it stands, I am only PoV flagged, so thus don't care about the others yet.
      /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)"=="Vallorian Discus" /autoinventory
      /click left auto
|This next line isn't working.... I'd like someone to tell me why, and if possible, how to fix it.
      /if  "$char(hp,pct)"<75 /call GateMe 
   /goto :Fish 
/return 

Sub CheckPole 
   /if "$equip(primary,name)"~~"Brell's Fishin' Pole" /return 0 
   /if $invpanel==FALSE /press i 
   /stand
   /click right inv slot 0 
   /delay 11s 
   /autoinventory 
   /press i
|Sit command to follow prevents people from seeing that you are actually casting
|your line.  So unless a GM actually views your activity logs, you are just plain AFK.
   /sit 
/return 0 

|For those of us who enjoy fishing in the Planes, especially PoN, PoV, and PoS...
|this part of the code causes you to heal yourself and gate if you are under 75% Health.
|Change the spell name if you are not a cleric, and remove the whole piece if you
|cannot cast Gate.


   
Sub GateMe
   /stand
   /cast "Celestial Healing
   /delay 7s
   /cast "Gate"
   /delay 15s
   /if "$char(state)"=="STAND" /sit
   /camp desktop
   

Sub Event_SpellFizzle
   /call GateMe 

|Added next line because I had an event in which the macro didn't auto recast a new pole.
|When I stood to cast, the macro continued as normal. 
  
Sub Event_BrokenPole
   /call CheckPole
[/code]

EqMule
Developer
Developer
Posts: 2697
Joined: Fri Jan 03, 2003 9:57 pm
Contact:

Post by EqMule » Sat Dec 13, 2003 4:46 am

change

Code: Select all

/if  "$char(hp,pct)"<75 /call GateMe

to

Code: Select all

/if n $char(hp,pct)<=75 /call GateMe
My status o/
If you like MQ2 and would like to contribute, please do. My goal is 25 donations per month.
So far I've received Image donations for this month's patches.

Bitcoin: 1Aq8ackjQ4f7AUvbUL7BE6oPfT8PmNP4Zq
Krono: PM me.
I can always use characters for testing, PM me if you can donate one.