A forum for feature requests/discussions and user submitted patches that improve MQ2
Moderator: MacroQuest Developers
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Tue Feb 04, 2003 5:14 pm
you can do that with mq already. look at routines.mac for ideas.
Fippy
This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Tue Feb 04, 2003 11:46 pm
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
-
newb
- orc pawn

- Posts: 10
- Joined: Mon Feb 03, 2003 5:19 pm
Post
by newb » Wed Feb 05, 2003 1:10 am
Thanks much!
I see that there is already such a macro in the distribution

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 :)
-
MagnanImus
- decaying skeleton

- Posts: 4
- Joined: Thu Feb 06, 2003 11:29 pm
Post
by MagnanImus » Thu Feb 06, 2003 11:45 pm
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
-
Lord Yei
- orc pawn

- Posts: 24
- Joined: Mon Jan 27, 2003 9:48 am
-
Contact:
Post
by Lord Yei » Fri Feb 07, 2003 8:38 am
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?
Lord Yei -- Mage and Scholor
I think there is a world market for maybe five computers.
- [i]Thomas Watson, chairman of IBM, 1943.[/i]
-
L124RD
- Site Admin

- Posts: 1343
- Joined: Fri Jun 14, 2002 12:15 am
- Location: Cyberspace
-
Contact:
Post
by L124RD » Fri Feb 07, 2003 10:36 am
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
}
}
-
Lord Yei
- orc pawn

- Posts: 24
- Joined: Mon Jan 27, 2003 9:48 am
-
Contact:
Post
by Lord Yei » Fri Feb 07, 2003 3:41 pm
You got my back L124rd...
Lord Yei -- Mage and Scholor
I think there is a world market for maybe five computers.
- [i]Thomas Watson, chairman of IBM, 1943.[/i]
-
fwiggles
- a hill giant

- Posts: 161
- Joined: Mon Jun 17, 2002 8:29 pm
Post
by fwiggles » Sat Feb 15, 2003 11:26 pm
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?
[color=red]Latest survey shows that 3 out of 4 people make up 75% of the world's population.[/color]
-
AarynD
- a lesser mummy

- Posts: 45
- Joined: Thu Jan 02, 2003 11:25 am
Post
by AarynD » Mon Jun 16, 2003 5:04 pm
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
-
Kint
- a hill giant

- Posts: 208
- Joined: Thu Mar 13, 2003 3:36 am
Post
by Kint » Wed Jul 09, 2003 7:28 pm
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
-
eqjoe
- a grimling bloodguard

- Posts: 984
- Joined: Sat Sep 28, 2002 12:26 pm
Post
by eqjoe » Wed Jul 09, 2003 8:01 pm
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=
-
Milten
- a hill giant

- Posts: 176
- Joined: Thu Oct 09, 2003 11:40 am
Post
by Milten » Thu Oct 09, 2003 12:35 pm
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!
-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Thu Oct 09, 2003 1:51 pm
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.
MQ2: Think of it as Evolution in action.
-
insanitywiz
- a hill giant

- Posts: 250
- Joined: Mon Jul 08, 2002 7:50 am
Post
by insanitywiz » Thu Oct 09, 2003 2:21 pm
I have a sneaking suspision that Mckorr hasn't read this thread in awhile...

-
Mckorr
- Developer

- Posts: 2326
- Joined: Fri Oct 18, 2002 1:16 pm
- Location: Texas
Post
by Mckorr » Thu Oct 09, 2003 2:28 pm
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.
MQ2: Think of it as Evolution in action.