stick.mac (old)

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

LamahHerder
a hill giant
a hill giant
Posts: 299
Joined: Sat Jun 29, 2002 2:37 am

stick.mac (old)

Post by LamahHerder » Fri Jan 02, 2004 3:56 am

Last edited by LamahHerder on Sat Feb 07, 2004 4:17 am, edited 4 times in total.

User avatar
operat0r
RTFM, then ask again
Posts: 61
Joined: Thu Aug 28, 2003 2:04 am

good idea

Post by operat0r » Tue Jan 06, 2004 12:56 am

good idea never seend sub event_exp used to loot
with love moron #6895423686

Achy Wrists
a lesser mummy
a lesser mummy
Posts: 36
Joined: Wed Aug 27, 2003 4:17 pm

Post by Achy Wrists » Tue Jan 06, 2004 10:01 am

Thanks for the spiffy macro! I think this is one of the more useful functionalities of MQ. Macros like this just save you some mindless button mashing and stress on your hands. Something I very much appreciate.

One question though, is there a way to make one of those special timers your epic? I know that it would be fairly easy to just call cast item on your epic every so many seconds, but I'm not sure how you'd check your buffs, and if you have vallon's on then you don't cast the epic, otherwise you do.



Just of the top of my head, I think you’d need to do this:

Code: Select all

/varset Special2 Celestial Fists 
/varset SpecialTime2 170
then

Code: Select all

:attackspecial2 
      /if @Special2==NULL /goto :attackfight 
| Need to check if vallon’s is on, which I’m not sure how to do
      /cast item "@Special2" 
      /varset TimerSpecial2 @SpecialTime2 
   /goto :attackfight

Edit:

Would it be...

Code: Select all

/if $char(buff,"Vallon's Quickening")==0 { }
???

User avatar
Bad Karma
a snow griffon
a snow griffon
Posts: 346
Joined: Sat Nov 22, 2003 9:34 pm
Contact:

Post by Bad Karma » Tue Jan 06, 2004 7:37 pm

Achy Wrists wrote:Would it be...

Code: Select all

/if $char(buff,"Vallon's Quickening")==0 { }
???
Not at home so can't reference my stuff, but that does look exactly like what I use. =)

Question for you, though...what is the timer for? To cast every xxx seconds? You can use a check like the one above to see if your epic needs to be recast, also.
[b]- Bad Karma
________________________________________[/b]

In our own quest for excellence, we should strive to take the time to help those who help themselves.

All others should [b]RTFM[/b]!!!!!!!!!

Achy Wrists
a lesser mummy
a lesser mummy
Posts: 36
Joined: Wed Aug 27, 2003 4:17 pm

Post by Achy Wrists » Wed Jan 07, 2004 11:27 am

Huh.... didn't think of that! Thanks!

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

Post by ml2517 » Wed Jan 07, 2004 12:24 pm

Always remember, when doing numeric comparisons to add the n in the if statement.

This: (I just assuming that your buff spelling is correct. Verify it. Also one thing to check would be to make sure ' is not supposed to be `)

Code: Select all

/if $char(buff,"Vallon's Quickening")==0 { }
Should be this:

Code: Select all

/if n $char(buff,"Vallon's Quickening")==0 { }
But what I like to do with buffs I want to refresh if they get low is something like this:

Code: Select all

/if n $char(buff,"Vallon's Quickening")==0 {
    | Rebuff Code Here
} else {
    /if n $char(buff,$char(buff,"Vallon's Quickening"),duration)<3 {
        | Rebuff Code Here
    }
}
This would check if the buff icon named "Vallon's Quickening" exists. If it doesn't it will rebuff. If it exists and has less than 3 ticks (18 seconds) left it will rebuff. Otherwise it will do nothing.

Achy Wrists
a lesser mummy
a lesser mummy
Posts: 36
Joined: Wed Aug 27, 2003 4:17 pm

Post by Achy Wrists » Thu Jan 08, 2004 10:23 am

Thanks!!!

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

Post by psychotik » Thu Jan 08, 2004 3:39 pm

just a quick suggestion about rage,

Code: Select all

sub event_rageon 
   /echo Rage On 
   /attack off 
/return 

sub event_rageoff 
   /echo Rage Off 
   /attack on 
/return 
to

Code: Select all

Sub Event_rageon
  |check if the mob youre targeting raged
   /if n $target(hp,pct)>=12 /return
   | check if youre attacking so we can turn attack back on after rage
   /if $combat=="TRUE" /varset Attack 1
   /if n @Attack==1 /attack off
/return 

Sub Event_rageoff
   /if n @Attack==1 {
   /if "$target()"=="TRUE" /attack on
   }
   /varset Attack 0
/return
have to declare and set Attack global in main sub also

LordBeavis
decaying skeleton
decaying skeleton
Posts: 1
Joined: Fri Jan 09, 2004 3:33 pm

Post by LordBeavis » Fri Jan 09, 2004 3:37 pm

I was wondering what i needed to chang to have the macro end after the mob is dead or if I can just hit assist ad it will attack the next mob automaticly

bob_the_builder
a hill giant
a hill giant
Posts: 275
Joined: Tue Jul 22, 2003 1:22 pm

Post by bob_the_builder » Fri Jan 09, 2004 4:29 pm

what i needed to chang to have the macro end after the mob is dead

Code: Select all

sub event_exp 
   /echo exp 
[color=red]   /endmacro[/color]
Can always add the loot code back in , whatever.

Bob