mezbot.mac

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

Moderator: MacroQuest Developers

gn0m3
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sat Dec 13, 2003 10:43 am

mezbot.mac

Post by gn0m3 » Sun Dec 14, 2003 3:55 pm

Hi all,

I just installed macroquest and let me tell you, I wish I had tried it sooner. This program is unbelievable and a godsend.

I wrote up a mezbot to get me started. This mezbot only holds one mob mezzed indefinitely at the moment, as that's all I needed, but eventually I'll extend it to hold multiple mobs with some sort of chat-based interface, etc.

This macro is primarily useful for The Rathe (for those who know the encounter). I'd hardly consider it a masterpiece, but it's my first macro, so sue me =P.


Code: Select all

| - HoldMez by XXXXXX - 
| 
| Holds 1 mob mezzed indefinitely.
|
| Primarily useful for the PoP encounter, the Rathe.
|

| failure events, will trigger remez
#event resist "resisted"
#event fizzle "fizzles"
#event out_of_range "out of range"

| success events, will trigger wait
#event sleep_success "asleep"
#event bliss_success "drool"
#event apathy_success "distance"
#event generic_success "mesmerized"

#turbo

Sub Main

	/declare EventCheck global
	
	/echo "Starting HoldMez Macro by XXXXXX in 10 seconds"
	/delay 50
	/echo "Starting HoldMez Macro by XXXXXX in 5 seconds"
	/delay 50
	/echo "Starting HoldMez Macro by XXXXXX NOW"
	/say **** STARTING XXXXXX MEZBOT V1.0 ****
	/say **** Target is $target(name) ****

	/echo Target is $target(name)

:MEZ
	/varset EventCheck 0
	/stand
	/call Mez 
	/delay 5

| handle event is what tells us whether we need to remez or not

	/call HandleEvent
	/delay 5
	/call Tash
	/sit
	/delay 420
	/goto :MEZ
/return

sub HandleEvent
:EVENT
	/doevents
	/delay 5
	/if n @EventCheck==0 {
		/goto :EVENT
	}
/return
	
sub event_resist
	/varset EventCheck 0
	/echo spell resisted
	/say resisted, trying again
	/doevents flush
	/delay 30
	/call Mez
/return

sub event_fizzle
	/varset EventCheck 0
	/echo spell fizzled
	/say fizzled, trying again
	/doevents flush
	/delay 2
	/call Mez
/return

sub event_out_of_range
	/varset EventCheck 1
	/echo TARGET OUT OF RANGE
	/say TARGET OUT OF RANGE
	/say TARGET OUT OF RANGE
	/say TARGET OUT OF RANGE
	/doevents flush
/return

sub event_sleep_success
	/varset EventCheck 1
	/echo sleep succeeded, waiting 3 seconds
	/doevents flush
	/delay 30
/return

sub event_bliss_success
	/varset EventCheck 1
	/echo bliss succeeded, waiting 3 seconds
	/doevents flush
	/delay 30
/return

sub event_apathy_success
	/varset EventCheck 1
	/echo apathy succeeded, waiting 3 seconds
	/doevents flush
	/delay 30
/return

sub event_generic_success
	/varset EventCheck 1
	/echo generic mez succeeded, waiting 3 seconds
	/doevents flush
	/delay 30
/return


Sub Mez
	/echo XXXXXX's mana is $char(mana,cur) out of $char(mana,max)
	/cast 7
	/echo Casting mez on $target(name)
	/say Casting mez on $target(name)
/return

Sub Tash 
	/echo Casting tash on $target(name)
	/say Casting tash on $target(name)
	/cast 6
/return


| End of HoldMez.mac
Thanks again to the developers. Fucking around with MQ is the most fun I've had with EQ in awhile.[/code]

edit by EqMule: Please dont include your characters name in macros, it will get you banned if SOE sees it...

Welkin
orc pawn
orc pawn
Posts: 18
Joined: Thu Nov 27, 2003 7:49 pm

Post by Welkin » Sun Dec 14, 2003 10:20 pm

You might want to make the event triggers less generic. Unless I am mistaken, your macro will think mob resisted mez if someone says the word "resisted" in any chat channel you have open, which can be quite often.

[40oz]
a hill giant
a hill giant
Posts: 156
Joined: Tue Nov 12, 2002 12:14 pm

Post by [40oz] » Mon Dec 15, 2003 2:46 am

theres a mezmob mac in the macro requests folder...

you may like to compare techniques, see which ways you like.

User avatar
MSBoy1
a lesser mummy
a lesser mummy
Posts: 57
Joined: Mon May 19, 2003 3:42 pm
Location: Mississippi

Post by MSBoy1 » Mon Dec 15, 2003 1:42 pm

"/say" goes out for everyone to see. I personally would not want everyone around me knowing I am running a script.

gn0m3
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sat Dec 13, 2003 10:43 am

Post by gn0m3 » Mon Dec 15, 2003 4:38 pm

You might want to make the event triggers less generic. Unless I am mistaken, your macro will think mob resisted mez if someone says the word "resisted" in any chat channel you have open, which can be quite often.
Correct, but the thing is that this check only occurs during the handle event subroutine, which lasts for approximately 3 seconds.

Oh wait, actually, it doesn't. I need to fix that -- I should be flushing before I cast.

I also know I say stuff in /say. That's fine. Again it's the Rathe and only my guild is ever around. I kind of wanted people to know I'm a bot... maybe I'll move that to guild or our raid chat.

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

Post by ml2517 » Mon Dec 15, 2003 5:15 pm

gn0m3,
You do realize that if you are stating that you are a bot in game at all you can get banned for it yes? Stating that you are using a macro program at all is pretty reckless.

nimblefoot
a lesser mummy
a lesser mummy
Posts: 33
Joined: Sun Jun 29, 2003 11:50 am

Post by nimblefoot » Mon Dec 15, 2003 7:40 pm

/say **** STARTING XXXXXX MEZBOT V1.0 ****

...

gn0m3
a lesser mummy
a lesser mummy
Posts: 39
Joined: Sat Dec 13, 2003 10:43 am

...

Post by gn0m3 » Mon Dec 15, 2003 8:05 pm

Of course I know I can get banned. I personally don't care much (it would probably be a godsend if I did since I'm an addict), and since I use MQ exclusively to aid my playing in small ways that don't hurt others (like having a bot to hold a single mob mezzed for 2 hours, do you know hwo mind-numbing doing that manually is?) if they want to ban me, c'est la vie.