event problem with hitsmode

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

Moderator: MacroQuest Developers

User avatar
Jon100
a hill giant
a hill giant
Posts: 161
Joined: Mon Sep 22, 2003 6:15 am
Location: UK

event problem with hitsmode

Post by Jon100 » Sat Dec 04, 2004 5:42 pm

Code: Select all

#event hit "punch |${Target.CleanName}| for #*#"
#event hit "You punch |${Target.CleanName}| for #*# points of damage."
"punch a drovarg rager for 22" ..... works.
"You punch a drovarg rager for 124 points of damage." .... does not.

Maybe I'm too tierd, but any ideas why the second doesnt work?

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

Same event name

Post by JJ » Sat Dec 04, 2004 11:48 pm

From the looks of it, you have the same event name: #event hit

So it will take the first match.

That's my guess.

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 » Sun Dec 05, 2004 1:15 am

It takes any event that matches on events with the same name. I had 4 events in my druid macro to identify if I'm trying to cast an outdoor spell indoors. I've since split them into 2 separate events due to odd zones that are outdoors yet don't allow mounts, but you can theoretically have 10 events with the same name and different triggers.
[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]

User avatar
Jon100
a hill giant
a hill giant
Posts: 161
Joined: Mon Sep 22, 2003 6:15 am
Location: UK

Post by Jon100 » Sun Dec 05, 2004 3:00 am

It's actually longer than that:

Code: Select all

#event hit "pierce |${Target.CleanName}| for #*#"
#event hit "punch |${Target.CleanName}| for #*#"
#event hit "bash |${Target.CleanName}| for #*#"
#event hit "kick |${Target.CleanName}| for #*#"
#event hit "slash |${Target.CleanName}| for #*#"

#event hit "You pierce |${Target.CleanName}| for #*# points of damage."
#event hit "You punch |${Target.CleanName}| for #*# points of damage."
#event hit "You bash |${Target.CleanName}| for #*# points of damage."
#event hit "You kick |${Target.CleanName}| for #*# points of damage."
#event hit "You slash |${Target.CleanName}| for #*# points of damage."

#event hit "You pierce |${Target.CleanName}| for #*#"
#event hit "You punch |${Target.CleanName}| for #*#"
#event hit "You bash |${Target.CleanName}| for #*#"
#event hit "You kick |${Target.CleanName}| for #*#"
#event hit "You slash |${Target.CleanName}| for #*#"
Sub Event_Hit is detecting whether we actually hit a mob. The first set is for Hitsmode 'Abbreviated'. The next set is meant to catch the same event in Hitsmode 'Normal'. (The 3rd set is me trying to debug why the 2nd set isnt working).

I'm happy that having multiple "#event hit" is ok.

I'm happy that the first set work, "pierce |${Target.CleanName}| for #*#" etc, but neither of the next two sets work. I'm puzzled why.

Any other ideas pls?


Possible lead:
Going back through my log file of last night's test, even when in Abbreviated mode the log file shows the *full* line.

"You pierce a drachnid webmaster for 55 points of damage." etc.

Only on screen is it abbreviated.

I'm not sure if this is connected, but it looks a bit suspicious.

Zeus
a hill giant
a hill giant
Posts: 180
Joined: Wed Feb 19, 2003 10:03 am
Contact:

Post by Zeus » Mon Dec 13, 2004 1:30 am

Try this

Code: Select all

"You punch |${Target.CleanName}| for#*#points of damage."
I don't remember exactly what was but I had some problems with those spaces and killing them worked. You can test with killing just the space before or the space after too see if either works. Honestly been a while since I ran into that and I'm not quite sure of what I tested and whatnot.

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 » Mon Dec 13, 2004 8:57 am

It may have been an issue with the old blech too. This still a problem with the December zip?
[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]

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 » Mon Dec 13, 2004 7:17 pm

Blech was updated just now....

FrankJScott
naggy
naggy
Posts: 2385
Joined: Sun Feb 19, 2023 7:11 am

Best Product Site

Post by FrankJScott » Fri Aug 18, 2023 2:55 pm

Why don't you Google it! before you post

FrankJScott
naggy
naggy
Posts: 2385
Joined: Sun Feb 19, 2023 7:11 am

Great Product Site

Post by FrankJScott » Fri Aug 25, 2023 12:55 pm

Please Google it! before posting

FrankJScott
naggy
naggy
Posts: 2385
Joined: Sun Feb 19, 2023 7:11 am

Useful Natural Nutri Vitamins Website

Post by FrankJScott » Sat Aug 26, 2023 10:28 am

In reply to the guy asking about best keto diet shakes, nutri spec immuno synbiotic, turmeric and black pepper capsules reviews, turmeric curcumin complex with bioperine, cheap quality protein powder, healthy breakfast replacement shakes, I highly suggest this new natural nutri supplements tips or nutri women's vitamins, black pepper turmeric tea, turmeric curcumin with ginger & bioperine benefits, pure nutrition curcumin with black pepper, turmeric mixed with black pepper, turmeric with pepper pills, as well as this excellent tumeric black pepper capsules blog alongside all healthy weightloss shakes, nutri gut probiotics, nutri shed supplements, slimfast advanced smoothie mixes, turmeric and pepper capsules, bioperine health benefits, and don't forget this top rated natural nutri supplements link which is also great. Also, have a look at this top tumeric black pepper capsules blog as well as nutri nano coq10, nutrigain slim powder, most affordable protein powder, good cheap protein powder, nutridyn brain restore, nutri lean gainer, alongside all this great tumeric black pepper capsules blog not to mention pukka turmeric capsules, health benefits of turmeric and black pepper, organic turmeric curcumin and organic black pepper, turmeric and pepper water benefits, protein shakes for lunch, ginger turmeric black pepper benefits, alongside all new smoothie meal replacements tips which is also worth a look. I also recommend this new tumeric black pepper capsules info alongside all best premade diet shakes, best meal replacement shakes for weight loss, healthiest meal replacement protein shakes, nature's truth turmeric curcumin with black pepper, easy meal replacement smoothies, best milkshake diet uk, alongside all this top rated natural nutri supplements blog as well as nutricalm sunshine, slimfast advanced nutrition creamy chocolate smoothie mix, smoothie substitute for meal, cheap protein shakes for weight loss, best cheap vegan protein powder, top shakes for weight loss, not to mention excellent smoothie meal replacements details and don't forget moringa turmeric and black pepper benefits, slimfast advanced nutrition vanilla cream smoothie mix, lean1 ™ vanilla protein, turmeric curcumin with bioperine benefits, cheap diet pills that work, nutri advanced d3 k2, which is also great. Finally, have a look at this awesome tumeric black pepper capsules details with turmeric 1000 mg with black pepper, inexpensive probiotics, affordable creatine, best cheap protein powder for weight gain, benefits of turmeric and black pepper tea, lean1 vanilla protein powder, for good measure. Check more @ Great Tumeric Black Pepper Capsules Info 1ac75_e

FrankJScott
naggy
naggy
Posts: 2385
Joined: Sun Feb 19, 2023 7:11 am

Awesome Pet Supplements Guide

Post by FrankJScott » Tue Aug 29, 2023 4:07 pm

In response to the person inquiring about pet supplements australia, organic pet supplements, holistic pet supplements, pet supplements for pets with skin allergies, pet supplements for pets with luxating patella, pet supplements for pets with travel anxiety, I highly recommend this awesome support tinctures for cats and dogs tips or pet slippery elm supplements, pet nettle supplements, pet quercetin supplements, pet oregano supplements, pet supplements for pets with thunderstorm phobia, pet egg protein supplements, not to mention this great herbal tinctures for cats and dogs details on top of pet supplements for pets with muscle weakness, pet bilberry supplements, pet muscle supplements, pet supplements for pets with fear of vet visits, pet liver supplements, pet immune system supplements, as well as this excellent superfood gravy pet supplement blog which is also great. Also, have a look at this high rated herbal tinctures for cats and dogs tips and don't forget pet digestive supplements, pet joint care supplements, pet supplements for pets with nerve damage, natural pet food, pet supplements for pets with seizures, pet collagen supplements, as well as this excellent pet supplements details as well as organic pet supplements, pet wellbeing australia, pet supplements for pets with fear of mirrors, pet supplements for pets with fear of shadows, pet eleuthero supplements, pet skin and coat care, and don't forget best superfood gravy pet supplement tips which is also worth a look. I also recommend this excellent pet supplements url alongside all pet supplements for pets with aggression problems, pet supplements for pets with fear of pain, pet fish oil supplements, pet hip supplements, petz park, herbal supplements for cats, alongside all this awesome herbal tinctures for cats and dogs tips alongside all pet supplements for pets with fear of abandonment, natural pet food, pet calming supplements, pet supplements for pets with shedding problems, pet rhodiola supplements, pet circle, and don't forget top support tinctures for cats and dogs tips on top of pet meat protein supplements, pet fish oil supplements, pet colostrum supplements, pet supplements for pets with worms, pet allergy relief, pet supplements for pets with fear of leashes and leads, which is also great. Finally, have a look at this top pet supplements site with pet supplements for pets with muscle atrophy, pet skin supplements, pet supplements for pets with fear of crates and pens, pet supplements for pets with seizures, pet immune system supplements, pet supplements for pets with shedding problems, for good measure. Check more @ Updated Pet Supplements Info 6b3ce3c