Moderator: MacroQuest Developers


Not everything gives you a message. If I'm at max casting range and nuke something I don't get a message unless it is resisted.Imperfect wrote:This is already done. Event triggered macros. Try it you'll love it.
Code: Select all
/target baddie
/varset tID $target(id)
/call cast SlowingInsects
/assist
/if n $target(id)==$tID /goto :TryAgainCode: Select all
:TryCast
/delay 0
/cast $CurrentSpell
/if n "$target(distance)"<"230.01" /if n "$char(gem,1)"=="-2" /goto :TryCast

I sat and watched my macro for about a half hour and I think I found one of my problems. The person (or persons) that made several of the zones Kunark placed a spawn point for mobs that were below the surface, so my macro is trying to target these mobs and cast of them. Then runs back expecting something to come but it never does, then it cancels out and restarts the loop... it then selects the same mob and goes in circle like this until something else spawns.Phantal wrote:Maybe if I get bored sometime I'll try to find the offset for this for you ... i've been intending to find it for stuff I've wanted to do anyway.
In the meantime you could set it up to check the distance to make sure nothing goes awry.
For example, let's say the range on the spell you intend to cast is 200 feet, and you have a focus effect that raises your effective casting range by 15%, making your new effective casting range for 200 range spells 230 feet.
Now, that won't work right now because there's a bug with $char(gem,xxx). When a spell is unuseable either due to recast time, or because another spell is being cast, it should return -2. However, right now under all circumstances, $char(gem,xxx) is returning 0 if the slot is empty, and the name of the spell in that slot if it is not empty.Code: Select all
:TryCast /delay 0 /cast $CurrentSpell /if n "$target(distance)"&"230.01" /if n "$char(gem,1)"=="-2" /goto :TryCast
Also note that you will always receive a message if you were too far away when the spell was supposed to land ... it might come late if your lagged, but it'll come.
-Phantal
You dont get any message whatsoever if you cast on non-attackable NPCs (like invis triggers) either, so you cant tell if the NPC your casting on is secepable.. sp.. to being attacked.S_B_R wrote:If you cast on a Mob that is at max range, and you do not get a success message, that means the spell landed successfully. Only failures like: Resist, fizzle, or out-of-range are sent at max range. There really isn't a reason to check if the spell landed, you need only check to make sure it did not fail.
...I think... ... ...works for me at least...
