Necrobuddy 1.0a

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

Moderator: MacroQuest Developers

elretardo
a lesser mummy
a lesser mummy
Posts: 36
Joined: Thu Oct 16, 2003 3:24 am

Necrobuddy 1.0a

Post by elretardo » Fri Mar 12, 2004 1:35 pm

Well, I was sitting here bored and decided to write a script to automate some necromancer tasks on raids to lower number of deaths and asprin.

For now, it's completely untested as I've not access to EverQuest at the moment. I'm PRETTY sure the event strings are correct but please point them out if they're wrong.

Overall, it's a very simple script but it should also be very effective. Let me know what you think, please.

Code: Select all

necrobuddy.mac
|**

NecroBuddy 1.0a by elretardo

Installation
^^^^^^^^^^^^

1) Copy and paste this code into notepad.  Save as necrobuddy.mac in your
   MacroQuest2 Release/Macros folder.
2) Edit fields in the script that need customized, such as your player's name
   in the FeignFail event and the variables that will be clearly marked as
   player settings.
3) Type '/macro necrobuddy' in EverQuest while you're raiding and enjoy.

Introduction
^^^^^^^^^^^^

This script will maximize your raiding abilities by automating tasks that may
normally divert your attention.  If you've got attention deficit disorder like
yours truly, this script will be a valuable tool ;)

Features
^^^^^^^^^^^^

--Pet Leash: Will automatically hold your pet after each kill.  If you don't have
  pet hold and you're a raiding necro, you are wrong ;)
--Anti-AggroWhore: Will automatically feign you if you get summoned.
--Assist Alert: Will beep and echo assist calls in the MQ Window so you don't lose
  them in raid spam.
--Anti-Enrage: Will pull your pet back when the mob enrages.
--Anti-DamnIt: Will automatically get back up and feign again if your feign death
               fails.
--Anti-StunDeath: Will automatically feign you if you get stunned at any point.
--Anti-Bug: Spell recovery time not met is lame.  This will feign you if it sees it
            because THIS annoying bug only seems to do it on feigns for me.

**|

#event MobDeath "You have gained raid experience"
#event OhShit "You have been summoned"
#event Assist "ASSIST"
#event DieAnotherDay " has become ENRAGED"
#event StopThat "YourPlayerNameHere has fallen to the ground"
#event StunSucks "You have been stunned"
#event RecoverThis "Spell recovery time not met"

Sub Main
  /declare PetHoldKey Global
  /declare FeignSpell Global
  ||||||| USER DEFINED SETTINGS BELOW |||||||
  /varset PetHoldKey 2
  /varset FeignSpell "Death Peace"
  ||||||| USER DEFINED SETTINGS ABOVE |||||||

  /echo NecroBuddy is now loaded and watching for events.
  /call TriggerWatch
/endmacro

Sub ResetTrigger
  /doevents flush
  /call TriggerWatch
/return

Sub TriggerWatch
  :WatchLoop
  /doevents
  /goto :WatchLoop
/return

Sub Event_MobDeath
  /press @PetHoldKey
  /call ResetTrigger
/return

Sub Event_OhShit
  /cast "@FeignSpell"
  /delay 1s
  /cast "@FeignSpell"
  /call ResetTrigger
/return

Sub Event_Assist
  /beep
  /echo [ASSIST HAS BEEN CALLED]
  /call ResetTrigger
/return

Sub Event_DieAnotherDay
  /press @PetHoldKey
  /call ResetTrigger
/return

Sub Event_StopThat
  /sit
  /stand
  /delay 1s
  /cast "@FeignSpell"
  /delay 1s
  /cast "@FeignSpell"
  /call ResetTrigger
/return

Sub Event_StunSucks
  /cast "@FeignSpell"
  /delay 1s
  /cast "@FeignSpell"
  /delay 1s
  /cast "@FeignSpell"
  /delay 1s
  /cast "@FeignSpell"
  /call ResetTrigger
/return

Sub Event_RecoverThis
  /cast "@FeignSpell"
  /delay 1s
  /cast "@FeignSpell"
  /call ResetTrigger
/return
Last edited by elretardo on Mon Mar 15, 2004 12:49 am, edited 2 times in total.
I must go, for there they go and I am their leader.

Mutter
a ghoul
a ghoul
Posts: 105
Joined: Sat Nov 16, 2002 1:09 pm

boy..

Post by Mutter » Sat Mar 13, 2004 12:59 pm

Umm good idea, but you really should use some of the spell casting includes. But good concept!

elretardo
a lesser mummy
a lesser mummy
Posts: 36
Joined: Thu Oct 16, 2003 3:24 am

Update

Post by elretardo » Mon Mar 15, 2004 12:48 am

Woops, found out the hard way that the assist event (and most likely every other event) was looping indefinitely. BEEP BEEP BEEP BEEP BEEP.

Anyway, I was busy in the middle of a raid so I didn't get to test the updated version in the edit above. I added a flush routine to be called after each event is done, which should end the indefinite loops.
Umm good idea, but you really should use some of the spell casting includes. But good concept!
Spell casting includes? ;) Enlighten me, sir. I've always done casting like that in my scripts to avoid fizzles (So I didn't have to make events for them) and failures. This is the first script I've done in close to 2 months so I'm a bit rusty.
I must go, for there they go and I am their leader.

3x
orc pawn
orc pawn
Posts: 20
Joined: Sun Jan 25, 2004 12:54 am

Post by 3x » Tue Mar 16, 2004 5:55 am


daerck
a ghoul
a ghoul
Posts: 134
Joined: Mon Jan 12, 2004 8:44 pm

Post by daerck » Wed Mar 17, 2004 9:06 am

You don't need a hotkey for pet hold either. It works with /pet hold.