spell trainer

Have a macro idea but not sure where to start? Ask here.

Moderator: MacroQuest Developers

FearTheJourney
orc pawn
orc pawn
Posts: 20
Joined: Sun Jun 19, 2005 6:02 pm
Contact:

spell trainer

Post by FearTheJourney » Tue Sep 15, 2009 4:33 pm

Well I just came back to the game after 2 years. I used to be half way decent at writing simple macros but I have forgotten just about everything I used to know. I am looking for a simple spell trainer. Something that will cast spell gem #1, check mana and cast again if mana is OK. You get the idea. Perhaps something where it will also check the curser and auto inventory anything between spells.

I had something like this a while back for summoning food and water. I am pretty sure I posted the macro on here, but can not find it anywhere. So thought I might as well ask, because doing spell training by hand is getting really old.. Thanks in advance.

User avatar
Magoo
a grimling bloodguard
a grimling bloodguard
Posts: 690
Joined: Tue Jun 17, 2008 4:05 pm

Post by Magoo » Tue Sep 15, 2009 5:18 pm

Something simple like,

Code: Select all

Sub Main 
   :castspell
   /if (${Me.PctMana}<10) /call Med
   /cast 1 
   /delay 5s
   /if (${Cursor.ID}) /destroy
   /goto :castspell
/return 

Sub Med
   :Med 
   /if (!${Me.Sitting} && !${Me.Mount.ID}) /sit 
   /echo Medding. 
   /delay 10s 
   /if (${Me.PctMana} < 100) /goto :Med 
/return 
EDIT: Fixed the /goto :castspell line
Last edited by Magoo on Mon Oct 05, 2009 1:52 pm, edited 1 time in total.

FearTheJourney
orc pawn
orc pawn
Posts: 20
Joined: Sun Jun 19, 2005 6:02 pm
Contact:

Post by FearTheJourney » Tue Sep 15, 2009 6:10 pm

thank you for the quick reply. I will check this out tonight.

matadormix
a ghoul
a ghoul
Posts: 132
Joined: Sun Dec 14, 2008 8:31 am

Post by matadormix » Wed Sep 16, 2009 12:59 am

If using a mount and the lowest mana spells you can find of each type, I doubt the medding routine will ever be invoked. At least this has been the case for my newest creation.

User avatar
Magoo
a grimling bloodguard
a grimling bloodguard
Posts: 690
Joined: Tue Jun 17, 2008 4:05 pm

Post by Magoo » Wed Sep 16, 2009 6:55 am

Didn't buy a mount for the toons I used it on, but that is true.

FearTheJourney
orc pawn
orc pawn
Posts: 20
Joined: Sun Jun 19, 2005 6:02 pm
Contact:

Post by FearTheJourney » Sun Oct 04, 2009 5:21 pm

Looks like you need to change one line

I changed /goto :castspells into /goto :castspell

would not work without that change.


Sub Main
:castspell
/if (${Me.PctMana}<10) /call Med
/cast 1
/delay 5s
/if (${Cursor.ID}) /destroy
/goto :castspell
/return

Sub Med
:Med
/if (!${Me.Sitting} && !${Me.Mount.ID}) /sit
/echo Medding.
/delay 10s
/if (${Me.PctMana} < 100) /goto :Med
/return

User avatar
Magoo
a grimling bloodguard
a grimling bloodguard
Posts: 690
Joined: Tue Jun 17, 2008 4:05 pm

Post by Magoo » Mon Oct 05, 2009 1:54 pm

Ooops, that is right, edited my post.