Page 4 of 5

Posted: Tue Feb 04, 2003 5:14 pm
by Fippy
you can do that with mq already. look at routines.mac for ideas.

Posted: Tue Feb 04, 2003 11:46 pm
by L124RD
Salutations,
or help them and give them help...

Code: Select all

sub main
 :loop
   /if n $target(distance)<10 /sendkey down down
   /if n $target(distance)>10 /sendkey down up
   /if n $target(distance)>15 /sendkey up down
   /if n $target(distance)<15 /sendkey up up
  /if $target()==TRUE /goto :loop
/return

Posted: Wed Feb 05, 2003 1:10 am
by newb
Thanks much!

I see that there is already such a macro in the distribution :P When I originally posted I wasn't even considering a macro for the task so never looked there. This gives me what I need though :)

/press and /sendkey functionality

Posted: Thu Feb 06, 2003 11:45 pm
by MagnanImus
I am an extensive EQW user, and i have noticed that when any /sendkey or /press commands are called the macro hangs until that EQ window is selected. Is there any way around this?

I have been avoiding using /sendkey and in avoiding it i was using EQ's /follow command combined with a /face fast loop for my follow macro. Once EQ's /follow is on the only way i can turn it off without being at the controls of the character is having the character /sit and then walking out of range and standing again.

Is it possible to add something that edits variables within the EQ client temporarily. Giving macros the ability to tell the client that the person they are following is at a loc that is out of range of the /follow command. Or tell the client that the person they are following is actually a gnome or a skeleton, that they are a warrior and not a shaman....etc.

Does the fact that nested /if statements are broken slow down some macros? I started creating nested /if's by having my /if's run their commands and then at the end /call another subroutine. Then i put another /if inside the subroutine that i called. Was wondering if this speeds up my macros or if it is just wasted effort.

Mag

/if broken?

Posted: Fri Feb 07, 2003 8:38 am
by Lord Yei
Does the fact that nested /if statements are broken slow down some macros?
I had not heard this before...is it true that nested /if's are broken...I have a bery simple code with nested /if's that I use to train spell skills and it seems to work fine?

Posted: Fri Feb 07, 2003 10:36 am
by L124RD
Salutations,
this does not work, the code inside will always be run:

Code: Select all

/if a==b /if b==c {
  /echo all equal
}
the following will work:

Code: Select all

/if a==b {
  /if b==c {
    /echo all equal
  }
}

You Da Man

Posted: Fri Feb 07, 2003 3:41 pm
by Lord Yei
You got my back L124rd...

Posted: Sat Feb 15, 2003 11:26 pm
by fwiggles
ok, something that i think would be really great and i would be willing to help with a lot, is if there was a command like /face zone eastcommons. it doesn't seem to be too hard once you have the pattern going, i would be willing to write it up for the most part if i knew how to write it. If someone could possibly start this out, we could all submit a zone or something like that. You could have a part for each zone, so if you are in west commons and you type /face zone eastcommons, it would go to the westcommons part of the file and then find the eastcommons zone loc. I know this could be done in a macro for the most part, but people like to use other macros, not just one for facing certain zones etc...Is this possible? and would it be too difficult despite the huge amount of zones there are in the game?

Feature Request - External File Parsing

Posted: Mon Jun 16, 2003 5:04 pm
by AarynD
Would really love a way to open and parse external text files within a MQ script, even if the txt files were required to be in a specific format (ie, 2 value, comma separated value text files). There's no native way to create or use homemade data files within MQ, and this would open the door to so many possibilities. Even if we could just be given read-only access to external files, that would be great. If we could be given ability to write text back, or change lines of text, that would just rock.

Thanks for consideration,

- Aaryn

Posted: Wed Jul 09, 2003 7:28 pm
by Kint
I would much love to have a $cast command that returned TRUE if I was casting and FALSE if I was not. This could be very helpful I think in many of my macros.

thanks

Posted: Wed Jul 09, 2003 8:01 pm
by eqjoe
Kint wrote:I would much love to have a $cast command that returned TRUE if I was casting and FALSE if I was not. This could be very helpful I think in many of my macros.

thanks
I dug around in memory and found a spot that could be used to deturmine if a spell was being cast and if another spell could be cast (cast time + 2 seconds). However I think what we need is a way to see if the individual spell icons have refreashed. Its been a while.... ah.. here it is in this thread: http://macroquest2.com/phpBB2/viewtopic ... highlight=

Posted: Thu Oct 09, 2003 12:35 pm
by Milten
Like, hi :)

erm what I've had problems with is macros with deathloops, or keys stuck I cant get unstuck, and cant type, and so on.. what I wanted to ask for was a key that whenever pressed aborted or paused a macro like the Pause key, or Ctrl+Pause to abort? or let it be definable which one :)


Greetings!

Posted: Thu Oct 09, 2003 1:51 pm
by Mckorr
L124RD wrote:Salutations,
this does not work, the code inside will always be run:

Code: Select all

/if a==b /if b==c {
  /echo all equal
}
the following will work:

Code: Select all

/if a==b {
  /if b==c {
    /echo all equal
  }
}
Thanks L124RD... that would explain some weirdness in my revamped melee script.

Posted: Thu Oct 09, 2003 2:21 pm
by insanitywiz
I have a sneaking suspision that Mckorr hasn't read this thread in awhile... :wink:

Posted: Thu Oct 09, 2003 2:28 pm
by Mckorr
lol Okay, I admit I tend to skim over the 4 or 5 page ones, usually because I have nothing to add.... or because there hasn't been a new post in forever. I do try to keep up, but yeah, I miss stuff.