What's wrong with that one

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Carignan

What's wrong with that one

Post by Carignan » Sun Nov 02, 2003 2:29 am

it count 1 , 2 , 3 , 4 then reseting the value to 0, according the the macro, it is supposed to reset only after the variable myheading reach 360. there is the macro


Code: Select all

sub Main 
   /sendkey down up             
   /declare myheading global   
   /varset myheading 0                 
   :Swim                        
      /press Page_Up            
      /face heading @myheading         
      /delay 2s                 
      /varadd myheading 1             
      /echo @myheading 
      /if @myheading>=360 { 
	/echo reseting myheading
	/varset myheading 0  
      }
   /goto :Swim                  
/return 

Plazmic
The One
The One
Posts: 800
Joined: Fri Jun 14, 2002 12:31 am
Contact:

Post by Plazmic » Sun Nov 02, 2003 4:23 am

Try

Code: Select all

/if [color=red][b]n[/b][/color] @myheading>=360 {
- Plazmic