Casting Skills

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

Moderator: MacroQuest Developers

Kyris
decaying skeleton
decaying skeleton
Posts: 1
Joined: Mon Jun 14, 2004 7:08 pm

Casting Skills

Post by Kyris » Mon Jun 14, 2004 7:10 pm

Would like a macro or an idea on how to write one to get my casting skills up while I'm chatting with people. Any ideas? I saw the stuff on /cast "spell name" in the read me, but am trying to figure out how to make it wait till the recast is up and stop when i'm out of mana.

Oid
a snow griffon
a snow griffon
Posts: 416
Joined: Thu Oct 17, 2002 3:26 am
Contact:

Post by Oid » Mon Jun 14, 2004 7:51 pm

Code: Select all

Sub Main
   #include spellcast.inc
   :loop
   /call cast "Some lame ass spell"
   /delay 28
   /goto :loop
/return
Increase the delay if it has more then standard refresh time.
Smokey the Lax says only you can prevent reproduction.

hytiek
Contributing Member
Contributing Member
Posts: 54
Joined: Mon Jun 14, 2004 5:45 pm

Post by hytiek » Mon Jun 14, 2004 8:05 pm

Code: Select all


|Spell Casting Skillup
|updated after Drumstix42 pointed out I left in misc bs code from another mac

#include spellcast.inc

Sub Main
   /declare haveMana bool outer FALSE

|
|Begin main
|
   :main
      /if (${Me.PctMana}>=100) {
         /varset haveMana TRUE
         /if (${Me.Sitting}) {
            /sit off
         }
      } 

   :doit
      /if (${haveMana}) {
         /call Cast "[color=red]spellYouWantToCast[/color]" gem1
      }

   :wait4mana
      /if (${Me.PctMana}<=10) {
         /varset haveMana FALSE
         /if (${Me.Standing}) {
            /sit
         }
      }
         
   /goto :main
/return
This script just checks for mana, if you have fullmana, it casts a spell (in red) you choose (put the full proper name you want to cast there), if mana drops under 10% sit and med full, rinse and repeat

-hytiek
Last edited by hytiek on Tue Jun 15, 2004 2:19 am, edited 2 times in total.

Drumstix42
a grimling bloodguard
a grimling bloodguard
Posts: 808
Joined: Mon May 03, 2004 4:25 pm

Post by Drumstix42 » Mon Jun 14, 2004 9:28 pm

Lol Hytiek... /doevents? What events? :P

Here's my suggestion:

Code: Select all

Sub Main
   :MedLoop
    /if (${Me.PctMana}<20) {
       /echo Medding...
       /if (${Me.Standing}) /sit
       /delay 6s
       /goto :MedLoop
    }
   :CastLoop
    /call cast "[color=red]Spell Name Here[/color]"
    /delay 60s ${Me.SpellReady["[color=red]Spell Name Here[/color]"]}
    /if (${Me.PctMana}<20) {
       /goto :MedLoop
    } else {
       /goto: CastLoop
    }
/return
Replacing red with spell name in both instances.

*Note* from whatever patch ago, if your sitting and you cast a spell, you'll auto stand.

hytiek
Contributing Member
Contributing Member
Posts: 54
Joined: Mon Jun 14, 2004 5:45 pm

Post by hytiek » Tue Jun 15, 2004 2:11 am

Lol Hytiek... /doevents? What events?
Doh, busted for on-the-fly hacking a mac I wrote last night to enchant clay ...

Lesson learned... never ninja edit a macro while eating and at work .. :D

Also ... (/bat back) :wink:

Code: Select all

:CastLoop 
    /call cast "Spell Name Here"
won't work without including spellcast.inc or some other random variation hopefully theoneandonly will realize that