RTFM?

A forum for the general posts relating to MacroQuest. *DEPRECATED: This forum is no longer in public use, but remains here for your reading pleasure. Enjoy

Moderator: MacroQuest Developers

User avatar
Stults
a lesser mummy
a lesser mummy
Posts: 52
Joined: Tue May 25, 2004 11:47 pm

RTFM?

Post by Stults » Tue May 25, 2004 11:50 pm

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 :)

tonio
a ghoul
a ghoul
Posts: 117
Joined: Fri Apr 02, 2004 12:57 am
Contact:

Post by tonio » Wed May 26, 2004 12:02 am

RTFM = Read The F'ing Manual

Manual = file called "readme.chm" in your MacroQuest2 folder (not the "Release" folder, but the toplevel folder).
Tonio

User avatar
Stults
a lesser mummy
a lesser mummy
Posts: 52
Joined: Tue May 25, 2004 11:47 pm

RTFM?

Post by Stults » Wed May 26, 2004 12:11 am

Thanks alot :wink:

Xecros
a lesser mummy
a lesser mummy
Posts: 54
Joined: Tue Apr 22, 2003 9:24 am

Re: RTFM?

Post by Xecros » Wed May 26, 2004 12:35 pm

Stults wrote:Thanks alot :wink:
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

eqjoe
a grimling bloodguard
a grimling bloodguard
Posts: 984
Joined: Sat Sep 28, 2002 12:26 pm

Post by eqjoe » Wed May 26, 2004 12:42 pm

Damn this is looking more and more like TCL.


-j