spellstuff.mac - Thing for memming spells

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

Moderator: MacroQuest Developers

Phantal
orc pawn
orc pawn
Posts: 18
Joined: Tue Aug 13, 2002 7:57 pm

spellstuff.mac - Thing for memming spells

Post by Phantal » Wed Nov 13, 2002 1:01 am

ussage:

#include spellstuff.mac

and place the stuff below in spellstuff.mac (or whatever you wanna call it)... then somewhere in your own code ...

/call Loadspell # "spellname #" # "spellname #" # "spellname #" # "spellname #" # "spellname #"

example:

/call LoadSpell 1 "complete heal" 2 "remedy" 3 "celestial elixer"

can mem up to 5 spells at a time

Code: Select all

Sub loadspell
      /if "$p0"=="" /return
      /if "$p1"=="" /return
      /book
      /call Memorize $p0 $p1
      /if "$p2"!="" {
              /call WaitSpellLoad $p0
              /call Memorize $p2 $p3
      }
      /if "$p4"!="" {
              /call WaitSpellLoad $p2
              /call memorize $p4 $p5
      }
      /if "$p6"!="" {
              /call WaitSpellLoad $p4
              /call Memorize $p6 $p7
      }
      /if "$p6"!="" {
              /call WaitSpellLoad $p6
              /call Memorize $p8 $p9
      }
/return

Sub Memorize
      /if "$p0"=="" /return
      /if "$p1"=="" /return
      /click right 104 $int($p0*38-1
      /memspell $p0 "$p1"
/return

Sub WaitSpellLoad
:KeepWaiting
      /if "$char(gem,$p0)"=="NULL" {
              /delay 2
              /goto :KeepWaiting
      }
      /if "$char(gem,$p0)"=="" {
              /delay 2
              /goto :KeepWaiting
      }
/return

aGuy
orc pawn
orc pawn
Posts: 18
Joined: Tue Nov 05, 2002 3:22 pm

Post by aGuy » Wed Nov 13, 2002 8:25 am

Code: Select all


/click right 104 $int($p0*38-1
Should this line be?

Code: Select all

/click right 104 $int($p0*38-11)

Phantal
orc pawn
orc pawn
Posts: 18
Joined: Tue Aug 13, 2002 7:57 pm

...

Post by Phantal » Sat Nov 16, 2002 6:04 am

<shrug> probably. I got that particular line of code from plaz ... and i dunno how that particular piece got stripped.

-Phantal

Mutter
a ghoul
a ghoul
Posts: 105
Joined: Sat Nov 16, 2002 1:09 pm

Hmmmm

Post by Mutter » Sun Dec 15, 2002 12:04 pm

It does absolutly nothing!
Even with the code change in it.

Anyone have any ideas? Cannot get to mem spells.
:(