Simple macro, strange effect...

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Svarten
decaying skeleton
decaying skeleton
Posts: 3
Joined: Mon Dec 02, 2002 4:19 am
Location: Sweden

Simple macro, strange effect...

Post by Svarten » Thu Jul 24, 2003 1:00 pm

Ok, so this macro works as intended in normal cases, but if you are riding a horse or lizard the /if's start returning true no matter what :)

Any ideas?

Code: Select all

| CanaMax.mac
|  -- Shaman Helper Macro -- 

#include SpellSub.mac 
#Event RegTime "You have stopped regenerating."

Sub Main 
   :Loop 
     /if n $char(mana,pct)>95 /call EndMacro
     /goto :CheckMana
     :GetMana 
     /call SpellSub 5 3s
     :CheckMana
     /delay 6
     /if n $char(hp,pct)>90 /goto :GetMana
     /doevents
     /if n $char(mana,pct)<95 /goto :CheckMana 
   /goto :Loop 
/return 

Sub Event_RegTime
   /press F1
   /delay 2
   /call SpellSub 7 7s
   /delay 2
/return

Sub EndMacro
  /echo Full Mana!
  /sit on
  /endmacro
/return

User avatar
Kint
a hill giant
a hill giant
Posts: 208
Joined: Thu Mar 13, 2003 3:36 am

Post by Kint » Thu Jul 24, 2003 11:20 pm

mana isn't returned correctly on some old versions of mq while on a horse. Try getting the latest CVS. If that doesn't work then I'm wrong; mana doesn't work on any version of MQ while on a horse.

cybernerd
a lesser mummy
a lesser mummy
Posts: 38
Joined: Tue May 13, 2003 11:05 pm

Post by cybernerd » Sat Aug 02, 2003 12:38 pm

Hey.. i noticed the Hp thing doesn't work either... nobody ever figured it out as far as I know.. and i think I have the lastest CVS...

di28889
a hill giant
a hill giant
Posts: 296
Joined: Sat Jul 12, 2003 11:36 pm

Post by di28889 » Sun Aug 03, 2003 12:23 am

Many things dont work right on a horse, I can't run the fishing macro on a horse right, it reports that the cursor is empty , but there is a dagger in it, i made my mcaro so that i destroy anything that is not a fish, and to destroy if the cursor is reported as empty also.