Shaman Macro - v0.7.2 - Hubba (2004-11-09)

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

User avatar
fearless
Not a Psychic
Posts: 2684
Joined: Wed Mar 10, 2004 3:52 pm

Post by fearless » Mon Sep 20, 2004 5:44 pm

This may help with the alias checks

http://www.macroquest2.com/phpBB2/viewtopic.php?t=9277
Reading . . . it's not just for me.

[url=http://www.catb.org/~esr/faqs/smart-questions.html]How To Ask Questions The Smart Way[/url]
[quote="Ccomp5950"]Fearless showed me the light, you too shall learn.[/quote]

3djoker
a hill giant
a hill giant
Posts: 167
Joined: Thu Jun 24, 2004 11:19 pm

Post by 3djoker » Mon Sep 20, 2004 7:23 pm

I gather the group, start the script with ma as target, shammy will summon pet and buff but wont get into the combat loop or show exp whenever mob is killed. I start manually slow malo dd etc on the shammy with script running and all of a sudden it starts. I cant figure out what starts it, Ive tried loads of ways so I know how to do next time but its impossible hehe. BUT when its running, it runs and runs :)
try this. start the macro as you normally do. before your start to do any kind of pulling type

Code: Select all

/assist on 
see if that works.

i played around with this a bit and it wouldnt do crap. when i typed /assist on, it worked fine.

just a suggestion, not saying it will work or not.

demitri
orc pawn
orc pawn
Posts: 16
Joined: Fri Jul 23, 2004 7:04 pm

Post by demitri » Mon Sep 20, 2004 7:25 pm

cheers 3djoker,

will try that, actually makes sense in a none logic way ;)

/deim

Hubba
orc pawn
orc pawn
Posts: 22
Joined: Wed Jul 14, 2004 5:00 am

Post by Hubba » Tue Sep 21, 2004 2:44 am

Thanks guys.
Still I do this for fun as anyother coder here.
And best way to get comments and support is to realese the script here.

IC you like a .ini file. What would you like the .ini file to contain?
I don't feel like /alias makes the script load slow.

The 1st thing the shaman hangs on is when he will cast up the pet. It is a shitload of recast time on a pet imo. But I figure, when he is running, there is no need to restart him as you have toggle for most of the things.

As for the nuke routine, I have not used it that much cuz the mobs die fast in our grp. But I will look into that "not memming nuke spell". This might have something to do with Spell_Routines.inc. My version I use is 08/21/2004 and it does not work :/

I have parked this shaman in WoS with a monk (7.9K HPs) as tank and it works great. Just lower the dotat to 60% :)

I have implemented so you can tell him to heal or do heals over time (hot). You can also tell him to slow your target, but that is not 100% tested. There I might add in a respond to the teller when the mob is slowed.

Bug: Some times when shaman dies, he hangs on casting a spell - "spell not memmed".

if the "/assist on" fixes your problem demitri, I will add it into the code to ease it up for ya.

Hubba
orc pawn
orc pawn
Posts: 22
Joined: Wed Jul 14, 2004 5:00 am

Post by Hubba » Tue Sep 21, 2004 5:15 am

Missed gem number on nuke spell.

Now he might mem it, has not tested it tho as I am at work.

demitri
orc pawn
orc pawn
Posts: 16
Joined: Fri Jul 23, 2004 7:04 pm

Post by demitri » Tue Sep 21, 2004 6:46 pm

ok,

Now I have tested it a lot, 14h+ and Im pretty happy :) ..... but:

Still wont start, I gotto spam "/echo toggle combatat 99" and if Im lucky it will start... Not even sure thats the trigger but it seems to get it out of the loop?!

Am I the only one having this problem?!

The only change Ive done, since none of my chars need sta or agi, is this:

Code: Select all

   /declare SpellGrpBuff[3] string outer
   /varset SpellGrpBuff[1] "Blessing of Replenishment"
   /varset SpellGrpBuff[2] "Focus of the Seventh"
   /varset SpellGrpBuff[3] "Talisman of Alacrity"
|   /varset SpellGrpBuff[4] "Talisman of the Wrulan"
|   /varset SpellGrpBuff[5] "Talisman of the Boar"
If I just can get it to start when I want I would be a very very very happy man :)

When its running, its unbeatable, love it!

/deim

Hubba
orc pawn
orc pawn
Posts: 22
Joined: Wed Jul 14, 2004 5:00 am

Post by Hubba » Wed Sep 22, 2004 2:14 am

The only thing I can think of atm is the UI.
Do you have the default UI?
Somehow, it looks like he can't read the targets HPs. What the script does is to check when the mob is on 99% HPs or below. Then he will Malo Slow asap.

Does he change target as the char/player he assists change target?

If you klick of a grpbuff, does he rebuff that one asap?

One thing that did't work propper for me last night is that he does not allways cast he HoT on him self before he does Canni5. I didn't bother that much tho. And, he does not mem Canni4 after death, tho he use the same spell mem routine as when you start.
Those are the two things I know atm that needs a little fix.

demitri
orc pawn
orc pawn
Posts: 16
Joined: Fri Jul 23, 2004 7:04 pm

Post by demitri » Wed Sep 22, 2004 4:43 am

Yeah, using default ui and it assists MA fine, it just doesnt malo/slow/dot/DD.

And yeah, it does rebuff if I click any of the grpbuffs off.

/deim

Hubba
orc pawn
orc pawn
Posts: 22
Joined: Wed Jul 14, 2004 5:00 am

Post by Hubba » Wed Sep 22, 2004 9:04 am

Code: Select all

/if (${Target.PctHPs}<=${CombatAt} && ${Target.ID}==${TargetArray[4]}) 
This is the line that check if he will do any combat stuff. Like Malo or Slow.

While scrip is running you can typ the following things in the chat.

Code: Select all

/echo ${Target.PctHPs}
This shall return the curren % HPs of the target in number like 78

Code: Select all

/echo ${Target.ID}
This will return a number that you can compare with what he has in target list

Code: Select all

/echo ${TargetArray[4]}
If this number is equal the Target.ID number it's OK.

Easy way, take a light blue con pull and take it down to 90%HPs and stop there to check the commands.

Code: Select all

${Target.PctHPs}<=${CombatAt} && ${Target.ID}==${TargetArray[4]}
Im not sure if this will work to write the whole line. But if so, it will return TRUE or FALSE.

It's a PIA to debug in MQ.
Other ways is to put in /echo in the code to check what he is doing. Can be quite spammy tho.
Sub GetTarget
/assist ${M_Assist}
/delay 3
/if (${Target.Type.Equal[NPC]}) /if (${Target.Distance}<=${AssistAt} && ${Target.ID}!=${TargetArray[4]} && ${Target.PctHPs}<=${CombatAt}) {
/echo I got a new target
/varset TargetArray[1] ${Target.CleanName}
Sub Slow
/if (${Target.PctHPs}<=${CombatAt} && ${Target.ID}==${TargetArray[4]}) {
/echo Gonna Slow the mob
/if (${Me.CurrentMana}<${Spell[${SpellSlow}].Mana}) {
/echo Shid ! I don't have mana to Malo %T
} else {
:Slow_Loop
(color text dont work in code so I made a quote.)

Insert the the text in red in your code. He will then say when he has a new target and when he will try to slow. If he does get target but you dont get the "Gonna Slow the mob" then you might consider recompile MQ from a new directory.

Hope this mumbo jumbo text can help you. :)

edger
decaying skeleton
decaying skeleton
Posts: 1
Joined: Wed Sep 22, 2004 6:27 pm

same issue

Post by edger » Wed Sep 22, 2004 6:35 pm

it buffs fine, summons pet.. but wont malo/slo/petattack/dot..

it was working, then i made group larger, and its wasting mana healing necros for 300hp

Hubba
orc pawn
orc pawn
Posts: 22
Joined: Wed Jul 14, 2004 5:00 am

Post by Hubba » Thu Sep 23, 2004 2:52 am

A damn necros. Well, lower the healcasterat to 30 or something.

Or just remove them from this line

Code: Select all

/if (${Group[${i}].Class.Name.Equal[Cleric]} || ${Group[${i}].Class.Name.Equal[Druid]} || ${Group[${i}].Class.Name.Equal[Wizard]} || ${Group[${i}].Class.Name.Equal[Magician]} || ${Group[${i}].Class.Name.Equal[Necromancer]} || ${Group[${i}].Class.Name.Equal[Enchanter]}) /if (${Group[${i}].PctHPs}<=${CasterHeals}) {
Tho, they will never get a heal.
I will add so that necros get HoT insted of adding them to casters heal.

As for the malo slow thingy, Me myself has never had any probblem with it.

demitri
orc pawn
orc pawn
Posts: 16
Joined: Fri Jul 23, 2004 7:04 pm

Post by demitri » Thu Sep 23, 2004 2:38 pm

edger,

Spam the following to get your shaman to "activate":

/echo toggle combatat 99

dont know why its needed for some but it does the trick for me.

/deim

smlogg
decaying skeleton
decaying skeleton
Posts: 1
Joined: Tue Aug 24, 2004 8:11 pm

Post by smlogg » Fri Sep 24, 2004 1:07 am

Great job, found a few bugs though, and some tweaks that may be looked into.

#1 issue is healing corpses. Been more than one occasion where tries to target a member with low hp (from being rezzed) and instead targets their corpse and tries to heal it over and over.

Nother problem is trying to cast a horse in zones where you cant use them, but its still an outdoor zone. ends up spamming the horse summon over and over

Might wanna tweak the nuke and healing routines as well. Only casts HoT's on myself when I use it right before Canni. Anything else and it uses Daluda. Maybe tell it to cast fast heals on MT only? Or have a toggle to that effect?

Also found that the bot will nuke over and over until the mob dies with nuke routine on. Not really a big issue but maybe only nuke twice per mob?

Hubba
orc pawn
orc pawn
Posts: 22
Joined: Wed Jul 14, 2004 5:00 am

Post by Hubba » Fri Sep 24, 2004 2:43 am

#1 Healing Corpses, It is know by me and has never been fixed. maybe cuz it's to easy to fix. hehe.

#2 Horse thinngy, What he does when he summons a mount, is to check for the text "#*#outdoors#*#". If you summon a horse indoors, you will get a line with "bla bla bla outdoors only" Check that you get this message. Else it will chain cast that horse like mad.

#3 Shaman heal, We/I have cleric in ours grps, so shaman only do backup heals and make sure all casters have full HPs. He is the guard for casters. We use AFCleric with some tweaks for heals. It woork great. If you like him to cast HoT on the others insted of a normal heal, just write down the HoT spell name where the heal spells is.

#4 Shammy the wizard, Sure I can fix a toggle for the nuke, how many times he will do it per mob etc, Shaman nukes a far from effective in a good exp group, our mobs dies quite fast and I never turn the nuke routine on. Thats why Nuke is so low priority.

The number 1 issue will be looked at. I have notice him healing mounts over player to.

AEbard
a lesser mummy
a lesser mummy
Posts: 43
Joined: Fri Jan 30, 2004 10:53 am

Post by AEbard » Mon Oct 04, 2004 6:53 pm

great macro