About /doability and hotkeys

Need help running MacroQuest 1? Too bad! Use MQ2.

Moderator: MacroQuest Developers

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

About /doability and hotkeys

Post by Draekz » Thu Aug 01, 2002 6:18 pm

Not sure exactly how to word this..but i was wondering if there is code or a command for the macro to detect whether a "ability" hotkey is down?

I am working off a basic macro that I leeched from the macro section of the boards as follows

Code: Select all

sub main 

:loop 
	/doability 1  
	/click left auto
	/goto :loop2 
	

:loop2

	/doability 6
	/delay 10
	/press s	
	/delay 990
	/goto :loop

end main
Problem is...it has to wait the full time for the forage delay to cycle through before it procs the feign death macro (working on skills as u can see).

Anyway the FD delay is much shorter than the forage one and it isnt very proficient for the macro to wait until the forage one is popped up to cycle through.

Question is, is there a command that can tell the macro to look and see if the <forage> hotkey is down..and if so, goto the next loop? Or something to that degree?

Sorry if that isnt worded right, please post questions as to what i mean and i'll go in depth further..thanks for any help :) I luv the program so far ;) Just trying to learn to code some of my own now :D

lataz

Wendel
a lesser mummy
a lesser mummy
Posts: 58
Joined: Wed Jul 24, 2002 1:48 am

You could try something like this...

Post by Wendel » Thu Aug 01, 2002 7:26 pm

I don't know if you can check for a a button being recharged or not, but I know you can set timers.

Code: Select all

|   abliity.mac
|  Wendel's Cheap and Easy Forage and Feign Macro
|  Everything I know here I stole from someone else

Sub Main
/varset t0 20s
/varset t1 10s
   :Forageandstuff
      /call Checkstatus
    /goto :Forageandstuff
/return

Sub Checkstatus
   /if n $t0==0 /goto :Forage
   /if n $t1==0 /goto :Fiegn
   :Forage
        /doability 1
        /varset t0 40s  |or however long it takes Forage to recharge
     /return

   :Fiegn
      /doability 2
         /varset t1 10s  | or however long it takes for FD to Recharge
         /stand
      /return
/return



I think something like this would work, haven't tested it yet though  You would definately want to find tune it.

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Fri Aug 02, 2002 12:28 am

EDIT: Actually i just read through the readme.txt again.. $T is a timer :D hehe nifty :)
Although $P $a $v is still a bit wierd..dunno what the variable/array variable would be good for.

In any case! Thx much :)

the varset's are a mystery to me yet.

I think i figured out what T1 etc is..those must be like the abilities..since u have T1 and T0...and fd/forage seems to be the appropriate Real word to stick there.

Thanks tho ;) every little bit helps...the more complex u can make the ability macro look..the better I can understand it by deciphering what u put as to what i originally had.

anyway..thanks

Draekz

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Fri Aug 02, 2002 12:43 am

Hey!

Now that I think of it. Can anyone recommend a good read (preferably something I dont have to pay for) that would tutor me a little in what the code means in most of this.

Such as /varset $v15==94

I dunno what the hell thats saying..but would be willing to read up on it and learn a little to program some of my own.

Soo..to end this..if anyone has any good links to any readables that would sorta teach me a the basics about what all that means, that'd be great.

Unless this is a mix of code that the program designer just sorta made up on his own :\ (or her own)

Anyway Thanks ahead!

GD
a snow griffon
a snow griffon
Posts: 353
Joined: Sat Jun 29, 2002 11:57 pm

Post by GD » Fri Aug 02, 2002 4:05 pm

Such as /varset $v15==94

This is non working code, hehe.

however, let me break down a correct one for you.

Code: Select all

/varset v15 94
This tells MQ to set variable 15 (v15) to a value of 94

Code: Select all

/if n $v15!=94 /varset v15 94
This one has MQ check the numeric value (/if n) of variable 15, and if it's not equal (!=) to 94, to set it's value to 94.

when checking or calling a variable, you will have to put a $ in front of the variable, timer, or array name to denote it as a String, hence me using $v15 above.

When you are setting a value for one, you don't need the $ in front of it.

I hope this helps you understant it a little more.
Opinions are like assholes, everyone has one, but most of them stink.

Draekz
a hill giant
a hill giant
Posts: 263
Joined: Thu Aug 01, 2002 6:07 pm
Location: Winnipeg, Manitoba, Canada

Post by Draekz » Sat Aug 03, 2002 2:27 am

Wicked :) Helps a lot..thanks GD :)

Im starting to like this forum ;) Seems to provide more assistance then it does flammage...not something you see often!

Thanks all ;) You're all helping a bunch :)

Lataz!

Xaanin
a lesser mummy
a lesser mummy
Posts: 66
Joined: Fri Jun 28, 2002 6:41 am

Post by Xaanin » Sat Aug 03, 2002 4:35 am

Draekz: You can't check if a button is avaible or not, so to solve that you can a) use timers b) delays c) just loop the macro. Looping the macro will have it press the button anyway even if it's not avaible, though not the smartest idea if it gives you a message if the skill is not ready...