buff.mac -- mems buffs, and buffs your target

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

Moderator: MacroQuest Developers

Genoius
a lesser mummy
a lesser mummy
Posts: 49
Joined: Sat Jul 13, 2002 8:20 am

buff.mac -- mems buffs, and buffs your target

Post by Genoius » Wed Oct 02, 2002 5:27 pm

Okay, this needs a little adjusting, but it worked last night(i think; i was waaay tired ;)) the thing i DO recall, is the delays were a little off.
also. you MUST have spellsub.mac AND spellbook.mac(thanks to the authors, cuz those 2 ROXXOR). Anyways, change it so it works for you, this was made for cleric buffs, and mems all the spells in to one slot(slot 8), and unmemms slot 7 because I noticed i had one of the spells i wanted in slot 8 already memmed in slot 7 and it hung up the macro. (Useful for leaving all your other spells alone except slot 8, and having to remem lots of spells)

Code: Select all

#include SpellSub.mac 
#include spellbook.mac

Sub Main
   /book
   /call ForgetSpellbyNumber 7
   /if $target()==false /target myself
   /if "$target(name)"=="$char(name)" {
     /delay 2s
     /call MemorizeSpell "Armor of the Faithful" 8
     /delay 2s
     /stand
     /call SpellSub 8 7
    }
   /delay 1s
   /call MemorizeSpell "Resist Magic" 8
   /delay 2s
   /stand
   /call SpellSub 8 7
   /delay 2s
   /call MemorizeSpell "Resist Disease" 8
   /delay 2s
   /stand
   /call SpellSub 8 7
   /delay 2s
   /call MemorizeSpell "Resist Poison" 8
   /delay 2s
   /stand
   /call SpellSub 8 7
   /delay 2s
   /call MemorizeSpell "Resist Fire" 8
   /delay 2s
   /stand
   /call SpellSub 8 7
   /delay 2s
   /call MemorizeSpell "Resist Cold" 8
   /delay 2s
   /stand
   /call SpellSub 8 7
   /delay 2s
   /call MemorizeSpell "Shield of Words" 10
   /delay 3s
   /stand
   /call SpellSub 8 10
   /if $target(level)>44 {
    /delay 3s
    /call MemorizeSpell "Symbol of Marzin" 8
    /delay 2s
    /stand
    /call SpellSub 8 7
   } else {
      /delay 3s
      /call MemorizeSpell "Symbol of Naltron" 8
      /delay 2s
      /stand
      /call SpellSub 8 7
    }
    /if "$target(name)"<>"$char(name)" {
         /if $target(level)>39 {
        /invite
        /delay 5s
	/target myself
        }
     }
   /delay 2s
   /call MemorizeSpell "Heroic Bond" 8
   /delay 2s
   /stand
   /call SpellSub 8 8
   /delay 2s
   /sit
/return
---Genoius---
Last edited by Genoius on Wed Oct 02, 2002 5:32 pm, edited 2 times in total.

User avatar
rizwank
Huggle Police
Huggle Police
Posts: 524
Joined: Tue Jul 23, 2002 12:07 am
Contact:

Post by rizwank » Wed Oct 02, 2002 5:30 pm

nice :) I like.
#macroquest op
Macroquest Official Documentarion
Macroquest Board Moderator
All around cool guy

[img]http://medicomuerte.users.btopenworld.com/images/fairy_bounce08.gif[/img]

User avatar
DeathSpiral
a ghoul
a ghoul
Posts: 95
Joined: Thu Aug 22, 2002 6:31 pm

Re: buff.mac -- mems buffs, and buffs your target

Post by DeathSpiral » Thu Oct 03, 2002 3:42 am

Genoius wrote:and unmemms slot 7 because I noticed i had one of the spells i wanted in slot 8 already memmed in slot 7 and it hung up the macro. (Useful for leaving all your other spells alone except slot 8, and having to remem lots of spells)
A work-around for that would be to /call ForgetSpellByName on each of the spells before you try to memorize them. Should take care of the problem of casting out of slot 8.

Also, /call MemorizeSpell shouldn't hang or anything if you tell it to memorize an already memorized spell; it should just return quietly. If you use that, and the ability to either cast by name (/cast "Name of Spell") or, if you like /cast $char(gem,"Name of Spell"), you shouldn't have any issues. Hope that helps.
Genoius wrote:spellbook.mac(thanks to the authors, cuz those 2 ROXXOR)
Thanks. :) Just hope some people get good use out of it. :)
I am orc pawn, hear me yell for centurians...