/do abilities.... the hard way

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

notetaker
orc pawn
orc pawn
Posts: 12
Joined: Tue Feb 03, 2004 11:50 am
Location: colorado

/do abilities.... the hard way

Post by notetaker » Fri Feb 06, 2004 11:17 am

Question 1: how do i get the "code box" around a script i want to post?

Question 2: can i edit in /doability directly into script or do i have to declare it??.. globalize it??

Question 3: are kick, bash also do ability?


Question 4: when i use "/return" does it allways go back to the start of the script or could i tell it to "/return to forage"??


:? thanks
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !

User avatar
Elric
Cheese Whore
Cheese Whore
Posts: 466
Joined: Sun Nov 23, 2003 12:31 am
Location: Tampa, Fl
Contact:

Post by Elric » Fri Feb 06, 2004 12:27 pm

1: Use the "Code" button before you start and after you finish.
2: You can have it run inside the script without declaring or globalizing it(correct me if I'm wrong.)
3: Yes, and yes.
4: I believe /return returns to the main subroutine in the script. Not sure if you can return to another sub. Leave that to someone else to answer.
-Elric

ml2517
a grimling bloodguard
a grimling bloodguard
Posts: 1216
Joined: Wed Nov 12, 2003 1:12 am

Post by ml2517 » Fri Feb 06, 2004 1:50 pm

/return returns you to wherever the /call was done from.

notetaker
orc pawn
orc pawn
Posts: 12
Joined: Tue Feb 03, 2004 11:50 am
Location: colorado

/doability the hard way....cont

Post by notetaker » Fri Feb 06, 2004 9:34 pm

OK: got the "doability" up and running ....just had to put it in the right spot :)
tryed to press hot keys useing "/press 1" but it woulden't press the hotkeys ... it was pressing the keys though. it would type it in the chat bar?? any help on that one?

or would there be an easer way to do "/assist<name>" where i could change the name as easy as changing it in the hot key?

also while im thinking of it ... couldent find a "/pause " command. do i have to "/end" macro each time i want to sell exc....??
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !

User avatar
Elric
Cheese Whore
Cheese Whore
Posts: 466
Joined: Sun Nov 23, 2003 12:31 am
Location: Tampa, Fl
Contact:

Post by Elric » Fri Feb 06, 2004 9:50 pm

/mqpause pauses.

Also /delay pauses.

I think you need to read the manual at this point. All hail Whassup!
-Elric

notetaker
orc pawn
orc pawn
Posts: 12
Joined: Tue Feb 03, 2004 11:50 am
Location: colorado

read the manual

Post by notetaker » Fri Feb 06, 2004 10:02 pm

read it was looking for pause under "p" :lol:

still not finding anythin on running hotkeys not even useing search
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !

notetaker
orc pawn
orc pawn
Posts: 12
Joined: Tue Feb 03, 2004 11:50 am
Location: colorado

/doabilaty the hard way..cont

Post by notetaker » Fri Feb 06, 2004 10:58 pm

OK: here it is dirty but it gets the job done (btw- my first macro/script) :wink: :wink:

haveing a little problem with the "/sendkey" i cant get it to do it in the background...ideas??

any ideas on makeing it better...hmmmmm ... maybe a "/delay"

btw.. i found the "code" button and search button...( how dare you hide them in plane sight :oops:

Code: Select all

|-warrior.mac-
| note: make a"/mqpause " hotkey (in eq) 
| note: make an "/assist<name> " hotkey in spot #1 (in eq)



#turbo

Sub Main
  :loop

  /doability kick
  /doability slam
  /doability taunt
  /doability begging
| note:  this part  hits the hotkey
  /sendkey down 1
  /sendkey up 1 
  /goto :loop

/return
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Re: /doabilaty the hard way..cont

Post by Goofmester1 » Sat Feb 07, 2004 6:30 am

Try this change
notetaker wrote:

Code: Select all

|-warrior.mac-
| note: make a"/mqpause " hotkey (in eq) 
| note: make an "/assist<name> " hotkey in spot #1 (in eq)



#turbo

Sub Main
  :loop

  /doability kick
  /doability slam
  /doability taunt
  /doability begging
| note:  this part  hits the hotkey
[color=orange]  /press 1[/color]  
  /goto :loop

/return

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Sat Feb 07, 2004 10:08 am

If you are not using EQW MacroQuest will not run in the background.

notetaker
orc pawn
orc pawn
Posts: 12
Joined: Tue Feb 03, 2004 11:50 am
Location: colorado

thank you....

Post by notetaker » Mon Feb 09, 2004 4:16 pm

thanks for everyones help. it is a r-e-a-l-y simple macro but it works !

you can , with a few "/doability" changes make it work for any class. :D

now on to bigger things.

maybe i'll work on an auto follow :wink:
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !

notetaker
orc pawn
orc pawn
Posts: 12
Joined: Tue Feb 03, 2004 11:50 am
Location: colorado

name change...."doability"

Post by notetaker » Fri Feb 20, 2004 12:41 pm

ok, re did the macro ended up just making it into a "do ability"

Code: Select all

|-doability.mac- 
   | simple  little macro ... a work in progress...



#turbo 

Sub Main 
    :loop 
   |/if n$char(ability," ")>0 /doability" " 
   |keep one  to copy
   /if n$char(ability,"tracking ")>0 /doability"tracking "
   /if n$char(ability,"hide ")>0 /doability"hide "  
   /if n$char(ability,"forage ")>0 /doability"forage "
   /if n$char(ability,"kick ")>0 /doability" kick"
   /if n$char(ability,"slam ")>0 /doability"slam "
   /if n$char(ability,"bash ")>0 /doability"bash "
  | /if n$char(ability,"make sweet  love ")>0 /doability"make sweet love  "
  |** if you cant do an ability you need to put a "|" in front of the line**|


   | this  is the part im  working on ...ideas???...
   |would like to do this a little cleaner 

  |.... to press keys (hotkeys)
  /press 1
  /press 2
  /press 3
  /press 4

    /goto :loop 

/return
thank you to goofmaster1 for the "/press 1" vs "/sendkey down 1..."
to McKorr for advice on getting it to run in background (eqw)
and to m0nk for the incouragement and "next stepping"


trying to take small steps (low learning curve with new languages)
please feel free to give me your input
Last edited by notetaker on Fri Feb 20, 2004 6:34 pm, edited 1 time in total.
it is better to do something wrong
then to do nothing at all
the only way to not make mistakes
is to do nothing
I MUST BE DOING A LOT !

Mckorr
Developer
Developer
Posts: 2326
Joined: Fri Oct 18, 2002 1:16 pm
Location: Texas

Post by Mckorr » Fri Feb 20, 2004 12:58 pm

Just a preference, but I always end sub Main with /endmacro instead of /return. Makes it clearer that that is the endpoint of the entire macro and not just a place to return from a subroutine.

Don't bother writing an autofollow macro, there's one around here someplace that works just fine. Do a search for follow.mac.

Glad we could be of help, and it's nice to see someone taking the time to learn instead of jumping in and trying to run genbot or something :) Keep up the good work.