Druid Healer issue

Third party software discussion goes here.
aardil
Posts: 39

Druid Healer issue

Post#1 » Sun Aug 28, 2016 5:51 pm

Please understand that this is all fairly new to me and I am doing my best to understand.
I have been looking and searching through this forum section for a auto heal, thought I saw one at one time but cant find it now for some reason.
Let me start out by saying I am using MQ2melee mainly.
I have 2 melee boxes and they work as intended.
My 3rd box is a druid that I use as a healer mainly (yes I know, as a healer they suck, but I like druids).

Where my issue comes in is, I want the druid to cast a "quick heal" on any party member below 70% heal during combat.
I have hot keys set up where I can do this manually but it would be nice if I didn't have to click those keys and just let the druid do his thing.

I would also like to set him up where when out of combat he would cast a 10 second heal id anyone in the group needed it say below 50% health.

I see where people are using macros to do this type of heal but I cant get it to work.

What I did is enable MQ2cast on the druid I also enabled it on the main Tank (controller PC)
But when I enter a fight, the druid does nothing, so I have something either set up wrong or my macro is in the wrong place or wrong PC or something.
I created the following macro and it is in both the druids macro folder and the Main Tanks Macro folder.
Named: Loadn.mac

Code: Select all

Sub Main
:Main_Loop
/call TankHeal
/goto :Main_Loop
/return

Sub TankHeal
/if ( ${Spawn[pc Loadn].PctHPs} <= 70 ) /casting "Chlorotrope" gem5 -maxtries|3 -targetid|${Spawn[pc Loadn].ID}
/return

Any Ideas?

Thanks
Aardil

Dreos
Posts: 489

Re: Druid Healer issue

Post#2 » Mon Aug 29, 2016 1:22 am

Do you get any errors when you start the macro on the druid?

aardil
Posts: 39

Re: Druid Healer issue

Post#3 » Mon Aug 29, 2016 2:20 am

I don't see any errors
Just druid never casts a heal.
That's why I thinks its a set up issue not a bad script.

User avatar
Enrikk
Posts: 389

Re: Druid Healer issue

Post#4 » Mon Aug 29, 2016 12:42 pm

Understand that I don't know much, but, do you have to use the spell name AND the gem slot?

On the macro I run for my cleric that is not the case. I simply name the spell to cast. That's all I got, sorry.
Lead, Follow, or get out of My Way!

Enrikk of the Few

With MANY voices Also in my head

User avatar
moguay
Posts: 170

Re: Druid Healer issue

Post#5 » Mon Aug 29, 2016 1:53 pm

You code work, you have a small unknown problem.

Try with this, i have set TankHealPct to 100% for heal test out of fight.
With this code you need your tank and healer in the same group or manually target your tank for catch the true HP in real time.

Code: Select all

Sub Main
    | Loading PLUGINS...
    /if (!${Plugin[MQ2Cast].Name.Equal[MQ2Cast]})           /squelch /plugin MQ2Cast
    /if (!${Plugin[MQ2EQBC].Name.Equal[MQ2EQBC]})           /squelch /plugin MQ2EQBC
    /if (!${Plugin[MQ2ChatWnd].Name.Equal[MQ2ChatWnd]})     /squelch /plugin mq2chatwnd

    | broadcast declare
    /if (!${Defined[broadcast]})        /declare broadcast int outer            1
    /if (!${Defined[chat]})             /declare chat string outer              echo

    | Tank heal declare
    /if (!${Defined[TankName]})         /declare TankName string outer          Loadn
    /if (!${Defined[TankHealPct]})      /declare TankHealPct int outer          100
    /if (!${Defined[spellSingleHeal]})  /declare spellSingleHeal string outer   Chlorotrope

    :Main_Loop
        /call TankHeal
    /goto :Main_Loop
/return

Sub TankHeal
    /if ( ${Cast.Ready[${spellSingleHeal}]} && ${Spawn[pc ${TankName}].PctHPs} <= ${TankHealPct} && ${Spawn[pc ${TankName}].Distance} <= ${Spell[${spellSingleHeal}].MyRange} && !${Me.Moving} ) {
        /target pc id ${Spawn[${TankName}].ID}
        /delay 20 ${Target.ID}==${Spawn[pc ${TankName}].ID}
        /casting "${spellSingleHeal}"
        /if (${broadcast}==1) /${chat} Casting HT "${spellSingleHeal}" on [ ${Target.CleanName} - ${Spawn[${TankName}].PctHPs}% ]
    }
/return

aardil
Posts: 39

Re: Druid Healer issue

Post#6 » Wed Aug 31, 2016 6:04 am

ok for most here, this must seem simple but I still cant get it to work.
I am dong my best to understand but some things an old dog has trouble understanding.

Let me ask this another way....

I think where my first issue is... I may not have MQ2cast on and do I need it turned on in the Main tank PC and druid pc or all 3 PC's?
Can you tell me how to turn it on?
I tried /mq2cast
but I get the "Couldn't parse /mq2cast " error

Next major question... Since I am running on 3 different PC's...
Does the above script go in the macro folder on the main tank? or in the macro folder on the druid PC? or both?

Next question...
In the above script ..
Is it complete or do I need to change something to make it see my main tank (Loadn)?

Sorry to sound dumb but it takes me a bit to understand things like coding.

Thanks

Aardil

User avatar
Dred
Posts: 229

Re: Druid Healer issue

Post#7 » Wed Aug 31, 2016 9:41 am

aardil wrote:Can you tell me how to turn it on?
I tried /mq2cast
but I get the "Couldn't parse /mq2cast " error


To turn it on I am pretty sure it is /plugin mq2cast
Cadaveria the Queen of Shadows - Retired

Leader of Legion of Darkness

aardil
Posts: 39

Re: Druid Healer issue

Post#8 » Wed Aug 31, 2016 3:35 pm

ok
plugin /mq2cast did something
at least now it says its loaded (loaded it on both the Tank and the druid PC's).
Still no heal from the druid but some progress anyway.

I know there is a command to call up help but not gertting anywhere with it.
When I type /mq2cast help I get in gold letters
[mq2] mq2cast help
but nothing else

Thanks for all your help and again sorry I am so slow.

Aardil

aardil
Posts: 39

Re: Druid Healer issue

Post#9 » Wed Aug 31, 2016 4:47 pm

Getting closer but now I have a new question.
After more searching, I found that I needed to load the macro in question.
/mac Loadn
As soon as I did this the Druid started healing non stop. This is because the macro was set to 100 on Loadn's HP.
I edited the macro to 70 and now the druid only heals Loadn if his HP drops to 70% or less.

So progress YAY!

Which brings me to ther next question...
Why wont the macro auto load?
When I first log in ,
I get the following:
#connecting to 192.168.1.112:2112
The next line is a message in purple
[MQ2EmuAutoMacro] Could not find macro to start.
#Connected!
# - Druid has joined the server.
# - Local Echo: ON

What I think may be happening is the macro lookup may be looking too soon, as in Druid is not connected yet so it cant find the macro to load.
once everything is up and running, I can type:
/mac Loadn and the heals start working.

So is there a way to delay the looking for macros until after everything is loaded?
Or do I have to type the /mac command when I start the druid up every time?

This will of course lead to more questions and further evolvement of the macro as I learn a bit more (with your help of course).

Aardil

User avatar
moguay
Posts: 170

Re: Druid Healer issue

Post#10 » Wed Aug 31, 2016 7:35 pm

For autostart macro you need the MQ2EmuAutoMacro plugin, can help you http://mqemulator.net/forum2/viewtopic.php?t=504

/plugin MQ2EmuAutoMacro, need to been launched at least once

and you can set before the MQ2EmuAutoMacro.ini

Code: Select all

[Macros]
Default=Loadn

Return to “Third party software”

Who is online

Users browsing this forum: No registered users and 1 guest