pet.mac

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

don'tdoit
a lesser mummy
a lesser mummy
Posts: 43
Joined: Tue Dec 31, 2002 12:24 pm

pet.mac

Post by don'tdoit » Thu Jan 09, 2003 6:03 pm

hey all,

this is my first script (for mq) so bear with me if it's garbage; then again it's so short that if i messed something up maybe i should be berated....

anyways, all it does is simply watch for any mob in the area to enrage and does "/pet back off"... wanted this for myself since I don't wanna be totally automated, but I hate losing pets 50% of the time a mob enrages cuz i'm typing something or debuffing a 2nd mob, etc, etc.

Here's the code:

Code: Select all

#turbo
#include routines.mac

#Event Enraged "has become ENRAGED"

Sub main
:pet
/delay 5
/doevents
/goto :pet
/return
Sub Event_Enraged
   /pet back off
/return
Other things I'd like it to do, but haven't coded yet are to check to make sure it's the mob the pet is engaging (if possible)... maybe to make pet attack again (if previously mentioned mob checking works) after enrage wears off...

OldNecro
a ghoul
a ghoul
Posts: 136
Joined: Thu Dec 19, 2002 3:09 am

yeah, but...

Post by OldNecro » Sat Jan 11, 2003 7:30 am

that's a great idea in concept, but what about when your PET enrages? You're going to back off your pet when he is capable of outdamaging the entire group :roll:

Dirtface
a lesser mummy
a lesser mummy
Posts: 39
Joined: Tue Nov 12, 2002 2:43 am

Post by Dirtface » Sat Jan 11, 2003 7:43 am

Can events carry variables?

"$target has become enraged"

User avatar
Fippy
a snow griffon
a snow griffon
Posts: 499
Joined: Tue Jul 16, 2002 10:42 am

Post by Fippy » Sat Jan 11, 2003 10:53 am

no put you could parse the line looking for you pets name.

one of the vars contain the line of text $p0 $p1 or $p2 i cant remeber which but you would then be able to do.

/if "$p0"~~"$spawn($char(pet),name,clean)" /return.

or something similar anyway. Put it at the start of you enraged sub so if its your pet that is enraged you can just carry on.
Fippy

This is my girl. But Rizwank had her first :-)
[img]http://www.btinternet.com/~artanor/images/fairy_bounce09.gif[/img]

Catt
a lesser mummy
a lesser mummy
Posts: 76
Joined: Mon Sep 16, 2002 2:49 am

Post by Catt » Sat Jan 11, 2003 7:33 pm

Fippy wrote: This is my girl. But Rizwank had her first
That's sad, publicly stating you got sloppy seconds?

:twisted:

User avatar
SingleServing
a hill giant
a hill giant
Posts: 195
Joined: Tue Dec 17, 2002 11:00 pm

Sexy Momma!

Post by SingleServing » Sat Jan 11, 2003 9:55 pm

Catt wrote:
Fippy wrote: This is my girl. But Rizwank had her first
That's sad, publicly stating you got sloppy seconds?

:twisted:
Its sad you gotta be rude =p

But its no prob I'd have her third, damn sexy cartoons.
[color=DarkBlue]Everything,[/color] [color=DarkBlue][b]is[/b][/color] [color=black]black[/color] [color=DarkBlue]and[/color] [color=white]white[/color][color=DarkBlue], when you zoom out it looks[/color] [color=gray]grey[/color][color=DarkBlue].[/color]

xioustic
decaying skeleton
decaying skeleton
Posts: 8
Joined: Wed Dec 25, 2002 2:02 am
Location: Cali, USA
Contact:

Post by xioustic » Sun Jan 12, 2003 4:35 pm

Image

I stole her third... :P