Newb to Macros, lehp me :-/

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Nudyr
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Nov 01, 2003 9:31 am

Newb to Macros, lehp me :-/

Post by Nudyr » Sat Nov 01, 2003 9:40 am

When loading almost every macro i get this:
Cleared the following: Timers Vars Arrays
The current macro has ended.
Now im pretty sure this will probably be some stupid little mistake im making but like i said, im a newb to macros, heh :-/ any adivice would be apppreciated

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Sat Nov 01, 2003 9:57 pm

you see this message whe you start a macro when one is already running, mq does a /zapvars when you start a macro ontop of another, or when you /end without any keep arguements iirc.

Nudyr
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Nov 01, 2003 9:31 am

Post by Nudyr » Sun Nov 02, 2003 10:02 am

shrug, but im not running any other macros :-/ wtf :(

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Re: Newb to Macros, lehp me :-/

Post by wassup » Sun Nov 02, 2003 10:25 am

Nudyr wrote:When loading almost every macro i get this:
Cleared the following: Timers Vars Arrays
The current macro has ended.
Now im pretty sure this will probably be some stupid little mistake im making but like i said, im a newb to macros, heh :-/ any adivice would be apppreciated
Post one of the macro's you are having a problem with and what you type in to start it. Could help you more that way.

Nudyr
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Nov 01, 2003 9:31 am

Post by Nudyr » Sun Nov 02, 2003 1:06 pm

bard twist:
| - twist.mac -
| /mac twist <GEMs>
| Modified from Colonel's Macro
| <GEMs> is an any length song list of the gem slots. 12345678 or 213457 or 78
| hint make sure selos is in the gem list if you are kiting

#event MissedNote "You miss a note, bringing your song to a close!"
#event Recovered "You haven't recovered yet..."
#turbo

Sub Main(Param0)
/if $defined(Param0)==false /endmacro

/declare CASTTIME global
/declare cursong global
/declare nsongs global
/declare prevsong global
/declare SongList global
/declare SingTime timer
/declare I global
/declare J global
/declare SongArray array

/varset CASTTIME 33
/varset cursong 1
/varset nsongs $strlen(@Param0)
/varset SongList @Param0

/for I 1 to @nsongs
/varcalc J $int(@I-1)
/varset SongArray(@I) $mid(@J,1,@SongList)
| /echo Song @I: $char(gem,@SongArray(@I))
/next I

:Loop
/if n @SingTime<=0 /call Sing @SongArray(@cursong)
/doevents
/goto :Loop

/return

Sub Sing
/varset SingTime @CASTTIME
/stopsong
/cast @Param0
/varset prevsong @cursong
/varadd cursong 1
/if n @cursong>@nsongs /varset cursong 1
/doevents
/return

Sub Event_MissedNote
/varset cursong @prevsong
/varset SingTime 0
/doevents
/return

Sub Event_Recovered
/varset SingTime 0
/varset cursong @prevsong
/doevents
/return
and i just type "/macro twist" and i get
Cleared the following: Timers Vars Arrays
The current macro has ended.

wassup
Official Guardian and Writer of TFM
Official Guardian and Writer of TFM
Posts: 1487
Joined: Sat Oct 26, 2002 5:15 pm

Post by wassup » Sun Nov 02, 2003 2:05 pm

Read the comments... it tells you what to do.

Code: Select all

| /mac twist <GEMs> 
| Modified from Colonel's Macro 
| <GEMs> is an any length song list of the gem slots. 12345678 or 213457 or 78 
| hint make sure selos is in the gem list if you are kiting
If you don't tell it to use any then it will end because you are twisting nothing.

example:

/macro twist 1234 will twist the songs in gems 1 2 3 and 4

Nudyr
decaying skeleton
decaying skeleton
Posts: 4
Joined: Sat Nov 01, 2003 9:31 am

Post by Nudyr » Sun Nov 02, 2003 4:16 pm

ahhhh thanks a lot man, heh, told ya's i was a macro newb =x