Unable to add macro Line

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Dekt
decaying skeleton
decaying skeleton
Posts: 2
Joined: Mon Dec 27, 2010 12:00 pm

Unable to add macro Line

Post by Dekt » Mon Dec 27, 2010 2:23 pm

Hello, I did some searching over the help section and general MQ index of forums and was not fortunate enough to come accrose a solution, and I know that my request is going to a bit out there.
Server: EQemu, EZserver
MQ2:Latest compile 'DLd'Source today
Macro: Mage.Mac V2.2
---------------
Here is what I have so far on it.
| Mage.mac v2.2 08-08-2005
|
| Well. I'm back from a year break. Glad to see the MQ2Params in full effect.
| I spent all day today learning the new coding. I'm no expert as you see in this code.
| The purpse of this is to allow me to slack in group so I can use up all of Lax's bandwidth
| searching the forums. At this time, I'd like to thank everyone at MQ2 for an awesome product,
| Awesome macros and code snippets. Lax, I'm real sorry about searching so much.
|
| You will need spell_routines.inc. It's in the snippets section.
|
| **************************** Instructions *****************************
| Start this using /macro mage mastername tankname
| Where mastername is who you want to be able to send you commands.
| and where tankname is the MA or MT. Whoever you want DS'd.
|
| Then just send a tell from the master to the toon running
| this macro with any one of the following commands: fire, stand,
| sit, assist, magic, petattack, petback, follow, DS and Rod.
|
| **************************************************************************
|
| I plan to add an easy debug switch for myself. Other additons as I see fit.
| Feel free to add anything you like or change anything you don't like.
| I only ask that you share it in the forums.
|
|
| ***************** Changelog **********************
| 2.1: Removed delay in mainloop.
| 2.2: Fixed reporting of what bot is doing. Had "" Around text.
| Fixed casting to mem spell if not already done.
| Must specify a DSPC. Use yourself for now if no one else. Working on fixing.
| Will not give a rod to master. Working on fixing.
|


#chat tell
#include spell_routines.inc

| Event is for later use.
#event PetHasteDown "#*#pet's Elemental Fury spell#*#"
#define PetBuffSpell "Elemental Fury"
#define PetDSSpell "Fireskin"


Sub Main

/deletevar MastersName
/deletevar DSPC


/declare MastersName string Global
/declare DSPC string Global

/varset MastersName ${Param0}
/varset DSPC ${Param1}

/echo Mage.mac Started.
/echo Master is ${MastersName}
/echo Maintank is ${DSPC}


:MainLoop
/doevents
/call CastSpells
/goto :MainLoop
/return

Sub Event_Chat(string ChatType,string Sender,string ChatText)
/if (${MastersName.Equal[${Sender}]}) {
/if (${ChatText.Equal[fire]}) /call Do-Fire
/if (${ChatText.Equal[sit]}) /sit
/if (${ChatText.Equal[stand]}) /stand
/if (${ChatText.Equal[assist]}) /call Do-Assist
/if (${ChatText.Equal[magic]}) /call Do-Magic
/if (${ChatText.Equal[petattack]}) /call PetAttack
/if (${ChatText.Equal[petback]}) /call PetBack
/if (${ChatText.Equal[follow]}) /call follow
/if (${ChatText.Equal[DS]}) /call DS
/if (${ChatText.Equal[Rod]}) /call Rod
}
/return

Sub Rod
/assist ${MastersName}
/delay 1s
/tell ${MastersName} Giving Rod to ${Target.CleanName}
/call cast "Rod of Mystical Transvergance" Gem7
/delay 1s
/return

Sub DS
/assist ${MastersName}
/delay 1s
/tell ${MastersName} Casting DS on ${Target.CleanName}
/call cast "FlameSheild of Ro" Gem5
/delay 1s
/return

Sub follow
/target ${MastersName}
/delay 2
/stand
/delay 2
/follow
/tell ${MastersName} Following You Master....
/return

Sub Do-Assist
/assist ${MastersName}
/delay 1s
/tell ${MastersName} Assisting you on ${Target.CleanName}
/stand
/delay 1s
/pet attack
/delay 1s
/return

Sub Do-Fire
/assist ${MastersName}
/delay 1s
/stand
/tell ${MastersName} Sun Vortex on ${Target.CleanName}
/call Cast "Sun Vortex" Gem1
/delay 3s
/return

Sub Do-Magic
/assist ${MastersName}
/delay 1s
/stand
/tell ${MastersName} Black Steel on ${Target.CleanName}
/call Cast "Black Steel" Gem2
/delay 3s
/return

Sub PetAttack
/assist ${MastersName}
/delay 1s
/stand
/delay 1s
/pet attack
/delay 3s
/return

Sub PetBack
/pet hold
/pet back off
/return

Sub CastSpells

:StartSpells

| check to see if we need to cast draw
/if (!${Me.Buff[Elemental Draw Recourse].ID}) {
/call Cast "Elemental Draw" Gem6
/delay 2s
/goto :StartSpells
}


| check to see if we need to buff our pet

/if (!${Me.PetBuff[Burnout V]}) {
/echo Trying to cast "PetBuffSpell".
/target ${Me.Pet}
/call Cast "PetBuffSpell" Gem4
/delay 5s
/goto :StartSpells
}

| check to see if we need to DS our Pet. If so do pet and DSPC

/if (!${Me.PetBuff[Flameshield of Ro]}) {
/target ${Me.Pet}
/call Cast "PetDSSpell" Gem5
/delay 5s
/if (!${Defined[DSPC]}) /goto :NODS
/target ${DSPC}
/call Cast "PetDSSpell" Gem5
/delay 5s
/goto :StartSpells
}
:NODS


/return

--------------------
I do have spell_routines.inc, and I have it in my Macros folder.

My only question is why when I try and launch it I get 'Unable to add macro line'
I just cant find a solution to it, and my appologies ahead of time if it is something simple or It was an iditic post on my part lol, sometimes its just too eassy to over look some things, Thank you for your time!

Dekt
--------------------

CORRECTION- I found the issue, I was missing _ in my include spells string, added it and it solved the issue.