SHM macro help

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

User avatar
Rikam
orc pawn
orc pawn
Posts: 23
Joined: Fri Jan 14, 2005 3:21 am

SHM macro help

Post by Rikam » Fri Jan 14, 2005 3:43 am

Alright this is modified version of another shm macro on board. As this is first attempt figured would try and start with a framework.

Anyway I want to after summoning pet and after fight is over to use /pet hold.

Also trying to make shm cast cripple after succesful slow. Any help on those would be greatly appreciated. If you notice any other details I could do to upgrade this let me know please will post macro in next post.

User avatar
Rikam
orc pawn
orc pawn
Posts: 23
Joined: Fri Jan 14, 2005 3:21 am

Post by Rikam » Fri Jan 14, 2005 3:44 am

broken to hell
Last edited by Rikam on Wed Feb 23, 2005 4:44 pm, edited 2 times in total.

Neolesh
a hill giant
a hill giant
Posts: 231
Joined: Mon Aug 23, 2004 11:15 am

Post by Neolesh » Fri Jan 14, 2005 5:13 am

edit and use code instead of quote

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 14, 2005 8:21 am

I was going to say the same thing. [ code ] not [ quote ]
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

JJ
a hill giant
a hill giant
Posts: 227
Joined: Thu Nov 11, 2004 5:50 am

Here's where you should focus . . .

Post by JJ » Fri Jan 14, 2005 12:24 pm

Here is the section of code that you should focus your efforts on.

Code: Select all

Sub Combat 
.
.
.
/if (${CombatOn} && !${MobSlowed} && ${DoSlow} && ${Target.ID}==${TargetArray[4]}) /call Slow
.
.
.
You will need to add a new line under this one that calls your cripple sub and you will need to write a cripple sub.

Code: Select all

.
.
.
|- EndCombat
.
.
.
Under this you would put in your /pet hold command.

Not really hard to find the points to put those in, so my guess is that you want someone to write it for you . . .

User avatar
Rikam
orc pawn
orc pawn
Posts: 23
Joined: Fri Jan 14, 2005 3:21 am

Post by Rikam » Fri Jan 14, 2005 1:31 pm

This is my first attempt so I still don't know exactly what all th commands do sorry. I will look into those and see what I can get done. Is there a guide on board with list of what commands do what?

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 » Fri Jan 14, 2005 1:34 pm

Yes, it's called TFM, aka The Fucking Manual. There's a link to it off the main MacroQuest page. There's also a readme.chm file in the MacroQuest zip you downloaded that has the exact same manual. Everything you need to know about the commands and objects in MQ are contained there. It even gives a basic step by step on what's required to make your own macros.
[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]

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

Post by TheNewGuy » Fri Jan 14, 2005 1:56 pm

And don't search... These damn forums are useless.
[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
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 14, 2005 2:49 pm

Rikam, one of the best ways to learn is to find very simple macros and study them and learn what they do and how. Over time doing this you will start to understand some of it, the rest will follow with trial and error and well thought out questions that help the people here help you.

Good luck.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

User avatar
Rikam
orc pawn
orc pawn
Posts: 23
Joined: Fri Jan 14, 2005 3:21 am

Post by Rikam » Fri Jan 14, 2005 3:43 pm

Ahh many thanks not sure how I missed it when I was looking. I have had the program for just 2 days so sorry if I sound like a complete moron just always easier for me to learn stuff when someone shows how one time so I can see how the thing works. Still a little leary to just put stuff in and try it out don't want to break my macro and not get it back together.

User avatar
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 14, 2005 4:31 pm

Which is why I go through very simple macros to figure out how things are done.

Remember, you can always make a copy of your working macro and mess with it. I have a macro called "testing.mac" where I sometimes test out ideas to see if they work or not.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

User avatar
Rikam
orc pawn
orc pawn
Posts: 23
Joined: Fri Jan 14, 2005 3:21 am

Post by Rikam » Fri Jan 14, 2005 4:36 pm

Code: Select all

 | ################### Pet Hold

/if (${ChatText.Equal[You have gained group experience]}) {
/Pet Hold
/return
}
Would Do pet hold everytime I got experience in grps right?

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

Post by TheNewGuy » Fri Jan 14, 2005 4:41 pm

No.

The problem with that statement is MQ2 would have to parse that line EVERY time a line scrolls on your screen to work.

Look at some events around in the Macro Depot... The Druid one is VERY complete, and even a dummy like me can understand how it's written.
[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
aChallenged1
a grimling bloodguard
a grimling bloodguard
Posts: 1804
Joined: Mon Jun 28, 2004 10:12 pm

Post by aChallenged1 » Fri Jan 14, 2005 4:44 pm

Code: Select all

 | ################### Pet Hold

/if (${ChatText.Equal[You have gained group experience]}) {
/Pet Hold
/return
}
Not sure that would work. It might but I'm used to seeing events for handling chat input.

Code: Select all

Event GrpExp "#*#You have gained group experience"

/doevents

Sub Event_GrpExp

/Pet hold
/return
I think that would work. I really need to learn more about coding, I'm limited in knowledge so somethings may work and I'd not know.
Fuck writing MQ2 macros. Go with IS scripts; IS Rules!

User avatar
Rikam
orc pawn
orc pawn
Posts: 23
Joined: Fri Jan 14, 2005 3:21 am

Post by Rikam » Fri Jan 14, 2005 5:47 pm

Ahh well that was my second plan of action challenge=). I will try using that one when I get home problem I seeing is there isn't even a /pet attack command anywhere in the script or I have skipped over it 5 times missing it.