beep on 100% mana

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

Bio_War
a lesser mummy
a lesser mummy
Posts: 36
Joined: Sun Sep 29, 2002 1:03 pm

beep on 100% mana

Post by Bio_War » Thu Nov 27, 2003 5:24 pm

tryin to get this to work, seems like it should, but just ends instead

Code: Select all

#turbo
Sub Main
	:LOOP
	/IF $CHAR(MANA,PCT)=="100" {
		/BEEP
		/BEEP
		/BEEP
		/BEEP
		/BEEP
		/BEEP
		/BEEP
	}/ELSE /GOTO :LOOP
/return
Thank you
Bio_War

Teh_ish
UI Guru
Posts: 168
Joined: Wed Nov 05, 2003 12:18 am

Post by Teh_ish » Thu Nov 27, 2003 5:29 pm

First off, remove all the caps. Should all be lowercase. it works uppercase I think but lower is less of a pain on the eyes

Second there is no /else. Third it's a numeric compare so you need an "n"
This is what it should look like:

Code: Select all

Sub Main
   :Loop
      /if n $char(mana,pct)==100 {
         /beep
         /beep
         /beep
         /beep
         /beep
         /beep
         /beep
      }
   /goto :Loop
/return
OMGWTFBBQ

Nilen2
decaying skeleton
decaying skeleton
Posts: 9
Joined: Thu Nov 13, 2003 1:04 pm

Post by Nilen2 » Thu Nov 27, 2003 5:29 pm

Code: Select all

#turbo 
Sub Main 
   :LOOP 
   /IF n $CHAR(MANA,PCT)==100 { 
      /BEEP 
      /BEEP 
      /BEEP 
      /BEEP 
      /BEEP 
      /BEEP 
      /BEEP 
   }
/GOTO :LOOP 
/return 
No time to test it, but just think you forgot to add the N in the if statement for numeric numbers, and no quotes....maybe =) And no /else