whats wrong with this

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

omper
a ghoul
a ghoul
Posts: 110
Joined: Sat Dec 06, 2003 10:46 pm

whats wrong with this

Post by omper » Wed Dec 17, 2003 12:31 am

Sub Main
/echo test spawn3.mac
/declare race local
/declare texture local
/declare gender local



/for race 13 to 500
/if race==13 {/next race}

/say #race @race

/for texture 0 to 3
/say #texture @texture

/for gender 0 to 2
/say #gender @gender

/say Race @race Texture @texture Gender @gender
/delay .5s
/press Num_-


/next gender
/next texture
:test
/next race
/return

Tks for any help

Omper

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Wed Dec 17, 2003 12:44 am

Not sure what you are doing but when doing numeric comparisons you need to use /if n @this=@that

Try this:

Code: Select all

Sub Main 
   /echo test spawn3.mac 
   /declare race local 
   /declare texture local 
   /declare gender local 

   /for race 13 to 500 
      /if n race==13 {
         /goto :test
      } 
      /echo #race @race 

      /for texture 0 to 3 
         /echo #texture @texture 
         /for gender 0 to 2 
            /echo #gender @gender 
            /echo Race: @race Texture: @texture Gender: @gender 
            /delay 5 
            /press Num_- 
         /next gender 
      /next texture 
      :test 
   /next race 
/return

Doodman
a ghoul
a ghoul
Posts: 124
Joined: Thu Jan 02, 2003 12:07 pm

Post by Doodman » Wed Dec 17, 2003 12:35 pm

Hmmm..
omper wrote:

Code: Select all

/say #gender @gender
Looks like a EQEmu user..

Looks like he want to take an NPC and cycle through each race/texture/sec for it. Must be looking for a certain mob look.
Doodman
EQEmu Developer
www.eqemulator.net