Page 1 of 1

need just a little help with my macro

Posted: Sat Oct 30, 2004 5:16 am
by mncat
ok I am sure many of you saw what was going on with me and trying to find a macro to skill up my alteration and all that. Well after I tried to get the macro working and not being aboe to I decided to just write my own K.I.S.S. macro. and this is it, but I need just a little help.


-----------------------------------------------------------------------

| spelltrainer.mac
|
| Helps to lvl up your spell skills.
|
| Usage: /mac spelltrainer
|OK I got tired of looking for a macro that would help lvl up your alteration and all that fun stuff. So I figgured I would just make my own K.I.S.S. version. Hope someone gets some use out of it.


Sub Main

:MainLoop

{
/target myself
/if (${Me.PctMana}<20) /call MedBreak
/Cast Courage
/delay 13s

}

/goto :MainLoop
Sub MedBreak
/stand
/sit
:MedMore
/delay 2s
/if (${Me.CurrentMana}<${Me.MaxMana}) /goto :MedMore
/return

/return
-----------------------------------------------

I will be adding in the thank yous in the begining shortly.

The only thing I would like to change is the "/Cast Courage". Because I certinly do not want to change that every time I want to work on another skill. Could I write something in to just cast the first spell in the list of my memorized spells? Well I am sure there is a way, but just not sure how.

I thank everyone for their help in advance. I am hoping that the flames will be low.....at least I am trying to do something for myself.

Better safe then sorry......../cast "resist fire"

Thanks again to everyone.

Posted: Sat Oct 30, 2004 8:47 am
by Cr4zyb4rd
Here at macroquest2.com we can only read code contained inside of code brackets, sorry. :(

Posted: Sat Oct 30, 2004 8:54 am
by ztrike

Code: Select all

----------------------------------------------------------------------- 

| spelltrainer.mac 
| 
| Helps to lvl up your spell skills. 
| 
| Usage: /mac spelltrainer 
|OK I got tired of looking for a macro that would help lvl up your alteration and all that fun stuff. So I figgured I would just make my own K.I.S.S. version. Hope someone gets some use out of it. 


Sub Main 

:MainLoop 

{ 
/target myself 
/if (${Me.PctMana}<20) /call MedBreak 
/Cast Courage 
/delay 13s 

} 

/goto :MainLoop 
Sub MedBreak 
/stand 
/sit 
:MedMore 
/delay 2s 
/if (${Me.CurrentMana}<${Me.MaxMana}) /goto :MedMore 
/return 

/return 
Post +1

Posted: Sat Oct 30, 2004 9:08 am
by Cr4zyb4rd
Dammit, now I have to actually try to help, don't I? :(

Try this

Code: Select all

Sub Main 

:MainLoop 
  /target myself 
  /if (${Me.PctMana}<20) /call MedBreak 
  /Cast Courage 
  /delay $13s !{Me.Casting.ID}
/goto :MainLoop 

/return 


Sub MedBreak 
/stand 
/sit 
:MedMore 
  /delay 2s 
  /if (${Me.CurrentMana}<${Me.MaxMana}) /goto :MedMore 
/stand
/return 

Posted: Sat Oct 30, 2004 9:09 am
by Cr4zyb4rd
Also, for future reference, it helps a lot if you tell us what it should be doing but isn't, what errors you get, etc instead of just saying "I need help with this."

Posted: Sat Oct 30, 2004 4:04 pm
by mncat
Never said there were any errors coming up. There are no errors. I do however believe I posted this in the wrong spot though. Sorry about that.


No errors, just trying to figure out how to make it just cast the first spell in the list of memorized spells insted of having to edit the dang macro everytime I want it to cast a different spell to work on a diffrent skill.

Thanks again.

Posted: Sat Oct 30, 2004 4:22 pm
by Cr4zyb4rd
um, /cast 1?

Posted: Sat Oct 30, 2004 7:36 pm
by mncat
that simple? sorry will try that when I get home. Hope it works and thank you very much.

Posted: Sun Oct 31, 2004 12:35 am
by mncat
Follow up:
OK sorry about that macro not being in brackets. also thatnk you very much for the "/cast 1" I honestly did not think it was that simple. Just so I know for the future when I post macros for help or whatever would I use the "code" button at the top when posting? Thanks again everyone.

Posted: Sun Oct 31, 2004 12:46 am
by Rusty~
"/cast 1" is a normal EQ command... heh

Posted: Sun Oct 31, 2004 1:49 am
by Cr4zyb4rd
Yeah, but a little research showed that TFM doesn't list it among the options to /cast. I let wassup know, and it'll be in the next version's docs.

Posted: Sun Oct 31, 2004 1:16 am
by bam

Code: Select all

[code]code goes here
[/code]

edit: I beleive /cast 1 is EQ, not MQ2. No reason to add it to the manual for MQ2.

Posted: Sun Oct 31, 2004 3:23 am
by magictiger
Yes, it is EQ, not MQ

Posted: Sun Oct 31, 2004 3:55 am
by Cr4zyb4rd
Since you want to be assy and nitpick for some reason, the /cast command is detoured entirely by the Cast() function of MQ2, which then goes back and calls the eq-internal command as a special case when dealing with numeric arguments. The function's source-comments indicate this, but it was somehow overlooked for TFM.

I humbly submit that there are more constructive uses for your time than campaigning AGAINST enhancements to the documentation, especially when they're as trivial as adding a | and a # to a single line of what's already extant. Go flame a newb.

Posted: Sun Oct 31, 2004 4:38 am
by mncat
Thank you Bam for telling me how to post code.