ability problem

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

MacroN00b
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Oct 07, 2003 2:06 pm

ability problem

Post by MacroN00b » Sun Dec 07, 2003 9:05 am

anyone know how I can find out if a ability is usable?

I tried stuff like $char(ability,8)

8 for backstab.. but it wont tell me if up or down.. just tells me which ability 8 is..

help would be appreciated.. thanx

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

Post by Midnight » Sun Dec 07, 2003 6:07 pm

/if n $target(distance)<11 /if n $char(ability,"Backstab")>0 /doability "Backstab"

Checks to see if you're within BS'ing range, then BS's only once in range. Put it in your main attack loop.

Drunkensloth
a lesser mummy
a lesser mummy
Posts: 67
Joined: Sat Oct 18, 2003 2:54 am

Post by Drunkensloth » Sun Dec 07, 2003 6:13 pm

that wont check to see if his ability is up or not tho...
but it will spam with backstabs

/if n $char(ability,"Backstab")>0 /doability Backstab
And here I was clicking like a sucker!

User avatar
psychotik
a ghoul
a ghoul
Posts: 112
Joined: Mon Oct 06, 2003 3:48 am

Post by psychotik » Sun Dec 07, 2003 7:34 pm

add a timer:

Code: Select all

/declare BStime global
/declare Timeleft timer
/varset BStime 5s
/varset Timeleft @BStime



/if @Timeleft==0 {
/doability Backstab
/varset Timeleft @BStime
}

Drunkensloth
a lesser mummy
a lesser mummy
Posts: 67
Joined: Sat Oct 18, 2003 2:54 am

Post by Drunkensloth » Sun Dec 07, 2003 8:15 pm

dont bother with a timer and crap like that for doing an ability....

takes up resources for nothing
And here I was clicking like a sucker!

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

Post by Midnight » Mon Dec 08, 2003 12:43 am

Heh yes it will check to see if his ability is up. Look closely at the code

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

Post by ml2517 » Mon Dec 08, 2003 12:47 am

Midnight,

Code: Select all

/if n $char(ability,"Backstab")>0 
The above doesn't actually check if the button is refreshed and ready for use. It only checks to see if you have an ability button called "Backstab".

User avatar
ap50
a snow griffon
a snow griffon
Posts: 425
Joined: Sun Aug 18, 2002 2:29 pm

Post by ap50 » Mon Dec 08, 2003 3:23 am

Now, do you want to rethink that answer.....? :roll:
[color=yellow][size=92][b]Just because you're paranoid, it doesn't mean everyone isn't out to get you![/b][/size][/color]

Midnight
a lesser mummy
a lesser mummy
Posts: 68
Joined: Wed Nov 12, 2003 12:51 pm

Post by Midnight » Mon Dec 08, 2003 4:11 am

Yep. You're right. My apologies

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

Post by GD » Mon Dec 08, 2003 4:11 am

>0 means it's ready, # corresponds to it's button assignment
-1 means it's ready, but doesn't have a button assigned
-2 means it's not ready yet
Opinions are like assholes, everyone has one, but most of them stink.

User avatar
psychotik
a ghoul
a ghoul
Posts: 112
Joined: Mon Oct 06, 2003 3:48 am

Post by psychotik » Mon Dec 08, 2003 9:28 am

doesnt seem to work for combat abilities

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

Post by ml2517 » Mon Dec 08, 2003 11:50 am

ap50,
Were you referring to my answer? If so, I'd tested this with Slam. If Backstab returns different results from Slam then I'm in error.

Falco72
a hill giant
a hill giant
Posts: 215
Joined: Fri Sep 26, 2003 3:24 am

Post by Falco72 » Mon Dec 08, 2003 1:06 pm

ml2517, SLAM DO NOT WORKS. At the moment we can't find the right offset for slam. Every other ability works as GD says. I use it all time with my bots.

MacroN00b
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Oct 07, 2003 2:06 pm

Post by MacroN00b » Tue Dec 09, 2003 12:54 am

when I type ingame: /echo $char(ability,8)
I get as resault: "Backstab" no matter weather the skill is usable or not..
when I type ingame: /echo $char(ability,Backstab)
I get as resault: "8" weather its up or not..

am I doing something wrong? Infact its not so bad about backstab I just spam that but would like it to work for Hide.


Thanx for all the help so far

MacroN00b
decaying skeleton
decaying skeleton
Posts: 8
Joined: Tue Oct 07, 2003 2:06 pm

Post by MacroN00b » Thu Dec 25, 2003 9:00 am

/bump still trying to find out how to check if ability is up or not..