Page 1 of 1
RTFM?
Posted: Tue May 25, 2004 11:50 pm
by Stults
I am new here, and have figured out how to compile and write very small macros. With that being said, I keep seeing talks about, "refer back to RTFM", however, I can not for the world of me find this. Can anyone help me please :)
Posted: Wed May 26, 2004 12:02 am
by tonio
RTFM = Read The F'ing Manual
Manual = file called "readme.chm" in your MacroQuest2 folder (not the "Release" folder, but the toplevel folder).
RTFM?
Posted: Wed May 26, 2004 12:11 am
by Stults
Thanks alot

Re: RTFM?
Posted: Wed May 26, 2004 12:35 pm
by Xecros
Stults wrote:Thanks alot

I have to warn you though, it's not a very intuitive read. You really have to know a little something about programming, be a bit intuitive in finding what you want, and know how to use the search function here on the boards to find sample code from which to learn from.
i consider myself a fairly intelligent type of guy. i can pick up the basics of any programming language simply by reading a basic tutorial or manual, but the help file included with this program, leaves much to be desired both in content, and examples. It also seems like it's not laid out too well, disjointed, if you will.
I'm not meaning to flame, only to point out places for improvement in the manual in the hopes that it gets revamped to be an easier read and an easier learning aid.
For example, the following code took me the better part of 3 hours to put together and get working(mostly). I put it together from what i could learn from the manual, and looking at sample code in the forums. It's still a work in progress but it's about done.
Code: Select all
Sub Main
/declare mob1 string outer
:redo
/varset mob1 ${Target.CleanName}
/assist galenoc
/if (${String[${mob1}].Equal[A Crystalline Golem]}) {
/goto :firstsun
}
/if (${String[${mob1}].Equal[A Crystalline Crawler]}) {
/goto :firstsun
}
/if (${String[${mob1}].Equal[A Crystalline Arachnae]}) {
/goto :firstsun
}
/delay 2s
/goto :redo
:firstsun
/if (${Target.PctHPs}<=80) /goto :firstcast
/delay 1s
/goto :firstsun
:firstcast
/cast 1
:delay1
/delay 2s
/if (!${Me.Casting.ID}) /goto :firstcast
/if (${Me.Casting.ID}) /goto :delay1
:secondsun
/if (${Target.PctHPs}<=50) /goto :secondcast
/delay 1s
/goto :secondsun
:secondcast
/cast 1
:delay2
/delay 2s
/if (!${Me.Casting.ID}) /goto :secondcast
/if (${Me.Casting.ID}) /goto :delay2
:thirdsun
/if (${Target.PctHPs}<=25) /goto :thirdcast
/delay 1s
/goto :thirdsun
:thirdcast
/cast 1
:delay3
/delay 2s
/if (!${Me.Casting.ID}) /goto :thirdcast
/if (${Me.Casting.ID}) /goto :delay3
/delay 10s
:wait
/if (${Target.PctHPs}>=2) {
/delay 10s
/goto :wait
}
:med
/if (${Me.PctMana}<=70) {
/cast 6
/delay 6s
/goto :med
}
/goto :redo
/endmacro
Xecros
Posted: Wed May 26, 2004 12:42 pm
by eqjoe
Damn this is looking more and more like TCL.
-j