need help with a very basic thing

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

Moderator: MacroQuest Developers

Francato
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Jul 27, 2005 9:57 am

need help with a very basic thing

Post by Francato » Wed Jul 27, 2005 10:02 am

Hello,

I've read through much of the site and through much of the manual, and I'm having a bit of a hard time understanding how events work still.. i have to see a real world example. Most macros are too complex for me to make sense of them, so I would like for someone to show me what a macro would look like that does the following

roots a mob (lets say i get the mob target through /keypress g and g is bound to assist someone who has a valid target)

keeps a dot on the mob
if the root breaks, reroot
if the dot wears off, redot.
(bonus points if it tries to reroot in the event of interruption)

that would be very simple and it would click and I could then learn from that point. I would be very appreciative of this.

Thanks in advance.

skyler
a snow griffon
a snow griffon
Posts: 311
Joined: Wed May 11, 2005 9:22 am

Post by skyler » Wed Jul 27, 2005 10:29 am

I really think this should have been posted in the help section but anyways, check out:
http://macroquest2.com/phpBB2/viewtopic.php?t=10040
That macro will do everything you said you wanted, and a little more

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Jul 27, 2005 11:11 am

I know there's at least one request for exactly what you're asking for in either this forum or Macro: Help. There's even an example or 2 in said thread. Go go gadget search function.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Francato
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Jul 27, 2005 9:57 am

Post by Francato » Wed Jul 27, 2005 3:11 pm

I've seen several that will do exactly what I want to do.

However, that doesn't help me understand so well, as they have a lot more included..

I'm just asking for a barebones skeletal macro that does nothing but the above.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Jul 27, 2005 3:11 pm

Then get to work!
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Francato
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Jul 27, 2005 9:57 am

Post by Francato » Wed Jul 27, 2005 3:39 pm

I'm not lazy, I have a learning disorder and it is extremely difficult for me to process large chunks of information, including a macro that has 2% of what I need to understand scattered around in a structure that doesn't make sense. I'm not asking for anyone to hold my hand, I just thought since it's such a simple thing to gurus that someone could type out a quick skeleton in the amount of time it has taken me to start the thread or less, and from there I could self-educate with a working building block to fall back on.

Thanks for your reply, I'm sure you intended to encourage the correct "do it yourself and learn in the process" attitude, but I do not think you understand the situation.

If noone wishes to help further, that's fine.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Jul 27, 2005 3:55 pm

While you do seem to get my intentions, you don't seem to understand that while some may pity your limitations, it by no means gives them motivation to write you a macro to do 1 thing that you want to do, when there are already a plethora of macros available that already do that 1 thing. I could give a damn if you've got polio, the black plague, ADD, HIV, Carpal Tunnel, or a case of the crabs; I'm not going to write you a sample macro from scratch just to give you a better idea of how to write macros. Most especially when there are 100 other macros that do at least 1 of the 2 main functions you want to do here (rooting and dotting)

It's all well and good that you want to learn by doing. Take one of those macros, and start pulling things out of it until you get it to the point that it ONLY contains what you want it to do.

Most of the people who write macros here name things for their function. If you see a HealPct variable, chances are it's NOT there to keep track of anything to do with DoTs. If someone names a Sub "LickMyBreastesses", chances are it has nothing to do with keeping Root on the mob. I think you see where I'm going here.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

Francato
decaying skeleton
decaying skeleton
Posts: 4
Joined: Wed Jul 27, 2005 9:57 am

Post by Francato » Wed Jul 27, 2005 4:04 pm

I'm sorry, I thought the macro request forum would be where one might request that an author so inclined would assist with macro creation upon request, rather than critique something such as the method taken by the asker to enter the hobby.

skyler
a snow griffon
a snow griffon
Posts: 311
Joined: Wed May 11, 2005 9:22 am

Post by skyler » Wed Jul 27, 2005 4:14 pm

requesting something new is one thing. requesting something that has already been made, and is used in just about every public macro, is something completely different. I'm not one who enjoys a pitty party and I really don't know/care how challeneged you are. based off of the ideas, questions, examples, help resources, search functions,,,,,,,,,,,,,,,,,creating a macro, and even understanding how to and what to, is something anyone can do if given just a little bit of effort. again, not sure about what your situation is, nor do I care, but if someone is holding your hand through everything because you use that sob story, not many will here. In all honesty, the time you've waited for someone to make this for you is half the time you would have needed to learn this on your own and make one for youself.

TheNewGuy
a snow griffon
a snow griffon
Posts: 307
Joined: Sat Jul 10, 2004 9:33 am
Contact:

Post by TheNewGuy » Wed Jul 27, 2005 4:59 pm

Take a good hard look at [[Editing Existing Macros]] if you wish to take a macro and strip it down for a specific purpose.
[quote="dont_know_at_all"][quote="sybarite"]Um.. search works fine for me (used spell_routines.inc)... Try scrolling down you lazy fuck.

http://www.macroquest2.com/phpBB2/viewtopic.php?t=8964&highlight=spellroutines+inc[/quote]

That's great but he's looking for move.inc, you fucking spastic colon.[/quote]

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Wed Jul 27, 2005 5:25 pm

Francato wrote:I'm not lazy, I have a learning disorder and it is extremely difficult for me to process large chunks of information, including a macro that has 2% of what I need to understand scattered around in a structure that doesn't make sense.
So then don't. No one can sit down and suck one of those giant macros into their head anyway. That's what comments are for.

Pull out the pieces that you understand and add extra comments.

Write down specifically what you want your macro to do in English and use that for comments. (Note: what you have at the top is a good start but not nearly specific enough.)

Use the pieces you've pulled out as building blocks to put together your macro. Put in lots of error checking and /echo statements so when you make a mistake you can find it quickly.

You are more likely to get an answer if you ask:
When I do "that" it doesn't work. I think it should do "this". Why is it doing "that" and is there a better way to do it?
instead of
How do I do "this"?
or
Tank, download me that macroquest language program.
--
<Thedude> I have to say your there retarded one.

User avatar
gimp
a grimling bloodguard
a grimling bloodguard
Posts: 584
Joined: Fri Oct 29, 2004 9:28 am
Location: internet

Post by gimp » Wed Jul 27, 2005 7:49 pm

Code: Select all

#Event HANDLE_TELLS "#1# tells you, '#2#'"
Sub Event_HANDLE_TELLS(string Line, string Player, string Message)
	/if (${Spawn[${Player}].Type.Equal[Pet]}) {
		/return
	}
	/echo # CHAT: ${Player}: ${Message}
/return
then call /doevents regularry in your main program loops

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Jul 27, 2005 8:50 pm

To be honest, the days of needing a macro request forum are pretty much long gone. Just about anything you could want to do via macro has been done in about 50 different flavors. Everything from sorting your entire bank aphabetically to fully automating your play is there. It doesn't matter if a macro does more than you want it to do, take it and set it up to only do what you want it to do.

If this forum were to disappear tomorrow, you wouldn't hear any complaining from 90% of the people who use these forums. Take a look at the posts in here, and you'll see that pretty much everyone who comes here to request a macro invariably ends up getting pointed to a macro that already does what they'd asked for, and usually more.

In my time here, I can only think of maybe 3 requests that were actually for something "new", and one of them was by me, which spawned feedme.inc.
[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]

mekaniak
a hill giant
a hill giant
Posts: 290
Joined: Thu Sep 18, 2003 3:21 pm

Post by mekaniak » Tue Aug 09, 2005 10:48 pm

Woah, theres a macro to sort your bank alphabetically?! Thats amazing. :P
I love the Power Glove, it's so bad

Say hello to M.C. Smurf!

[quote]<mekaniak> adios guys.
<dont_know_at_all> idiot
* mekaniak is now known as mekaniak_dinner
<Jacensolo> me?
<dont_know_at_all> not this time
[/quote]

[quote]
<dont_know_at_all> A_Enchanter_00, how the fuck should i know? it's your code[/quote]

I love quoting IRC chat.

A_Druid_00
Macro Maker Extraordinaire
Posts: 2378
Joined: Tue Jul 13, 2004 12:45 pm
Location: Rolling on the Lawn Farting

Post by A_Druid_00 » Wed Aug 10, 2005 9:07 am

[quote]<DigitalMocking> man, A_Druid_00 really does love those long ass if statements
<dont_know_at_all> i don't use his macro because i'm frightened of it[/quote]
[quote][12:45] <dont_know_at_all> never use a macro when you can really fuck up things with a plugin[/quote]