Page 1 of 1

Using healing skills and buffs too late

Posted: Thu Jul 12, 2012 11:14 pm
by Rickster
Hi,

i have a level 22 mage/druid, set up with three skills in its profile

Code: Select all

		<skill name="MAGE_ELECTROSTATIC_CHARGE"	hotkey="MACRO" priority="100" hpper="40" />
		<skill name="DRUID_RECOVER"          	hotkey="MACRO" priority="95" hpper="50" />
		<skill name="MAGE_FLAME"                hotkey="MACRO" priority="80" />
As you can see in the MM output below it casts DRUID_RECOVER on the enemy instead on itself.
And it does not cast MAGE_ELECTROSTATIC_CHARGE during the fight although it is set up to use it at first priority and at 40% hp.

Code: Select all

Wir greifen den Gegner 'Feuermähnen-Schwein' an.
Drücke MACRO: MAGE_FLAME           =>   * Cast gescheitert *
Drücke MACRO: MAGE_FLAME          =>   Feuermähnen-Schwein (2133/2133)
Drücke MACRO: MAGE_FLAME          =>   Feuermähnen-Schwein (1467/2133)
Drücke MACRO: MAGE_FLAME          =>   Feuermähnen-Schwein (1467/2133)
Drücke MACRO: MAGE_FLAME          =>   Feuermähnen-Schwein (806/2133)
Drücke MACRO: DRUID_RECOVER       =>   Feuermähnen-Schwein (806/2133)
Drücke MACRO: DRUID_RECOVER       =>   Feuermähnen-Schwein (806/2133)
Drücke MACRO: MAGE_FLAME          =>   Feuermähnen-Schwein (129/2133)
Drücke MACRO: DRUID_RECOVER       =>   Feuermähnen-Schwein (78/2133)
MACRO: Benutze Heiltrank 595/1868 (31%): Barbarenkr+ñuter (Anz 99)
Kampf beendet. 1 Feuermähnen-Schwein getötet. (Kampf #1 / Laufzeit 0 Minuten)
Haltbarkeit: 99.981818181818
Lösche Ziel.
Wir gehen zum Wegpunkt #87, (-6399, 4532)
MACRO: Benutze Heiltrank 608/1868 (32%): Salbe (Anz 8)
Drücke MACRO: MAGE_ELECTROSTATIC_C=>   Mychar (1221/1868)
Drücke MACRO: DRUID_RECOVER       =>   Mychar (1222/1868)
Can you see what I did wrong?

Thanx
Ric

Re: Using healing skills and buffs too late

Posted: Thu Jul 12, 2012 11:46 pm
by rock5
Firstly Recover is not cast on the mob, it just doesn't work on mobs. If you have a mob targeted and cast Recover you end up healing yourself. The bot is just telling you that you have that mob targeted when you cast Recover.

Otherwise it's hard to tell what's going on because there is a lot we can't see. What exactly is your hp levels? Are you running out of mana? Is Electrostatic Charge on Cooldown? Do you stll have the buff on? Are you using priority casting?

Re: Using healing skills and buffs too late

Posted: Thu Jul 12, 2012 11:59 pm
by Rickster
Ah ok, I did not recognise this healing thing before and was so confused about the MM output, that I did not have a look at the char, who for sure, heals itself :) ... sorry for that one.

Electrostatic Charge (EC) thing:
mana is almost at 100%
hp is between 30-60%
EC ist not at cooldown and i do not have the buff.

I want it to use recover below 50% hp and if this is not enough or hp are already below 40% to use EC.

Re: Using healing skills and buffs too late

Posted: Fri Jul 13, 2012 1:07 am
by rock5
Maybe for the few moments you drop below 40% it is doing something else and by the time it gets to Electrostatic Charge your HP has 'Recovered' to above 40%.

Example, say your hp drops below %40 half way through casting recover. The next skill in the list is Flame so it casts that. So thats about 4s before it checks EC.

Re: Using healing skills and buffs too late

Posted: Fri Jul 13, 2012 1:10 am
by lisa
You will probably find that your HP dropped below the 50% and then you cast a heal which got your HP up again and then it dropped below 50 and cast heal again.

To do what you really want to do you will probably have to add code into the onskillcast or onpreskillcast of your profile.

Re: Using healing skills and buffs too late

Posted: Fri Jul 13, 2012 2:15 am
by Rickster
ok, got the point. i´ll work on this a little bit ... to say, its not too important .

@Rock: you asked
Are you using priority casting?
I never heard of this ... are there different methods? Can I read about it soewhere?

Thanx
Ric

Re: Using healing skills and buffs too late

Posted: Fri Jul 13, 2012 3:34 am
by rock5
You know how it is, documentation is woefully out dated. I think there is only a reference to it in my changelog for 709
http://www.solarstrike.net/phpBB3/viewt ... 225#p37225

Basically, what it used to do (and still does by default) is go through all the skills in order based on the priority value. So even though the variable is called 'priority' it is actually sequencially casting. If you set
PRIORITY_CASTING to 'true' then it will use the 'priority' value for true priority casting. What this means is it always casts the first available skill with the highest priority. So as soon as it finds a skills it can cast, it casts it and goes back to the beginning of the list. So your least popular skills at the end of your skill list will seldom if ever get cast.

This does mean that if you have a spammable skill first it will just keep using that and that would mean no benefitial skills would get cast. For this reason, priority casting only affects attack skills. All buffs and heals are still checked each loop. So in each loop through your skills, the first available attack skill will be cast and all the benefitial skills will be checked.

So in your case you only have 1 attack skill so that option should have no effect. So it was actually a mistake that I mentioned it.

Re: Using healing skills and buffs too late

Posted: Fri Jul 13, 2012 6:48 am
by Rickster
but it was a "good" mistake :) now i know about this great option!