Help section from before the user variable changes that broke all macros
Moderator: MacroQuest Developers
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Tue Sep 17, 2002 11:20 am
Ok so I am still working on my Hunter script. I can aquire a target from a 3 tiered list of priority, advance to the target and start attacking and kill. Problem is sometimes you get the " You cannot see your target." message and unless the mob moved you could stand there all day swinging and not hit it. I thought i could use an event like this.
Code: Select all
#event CannotSee " You cannot see your target."
sub Main
:start
/doevents
/goto :start
/return
/sub event_CannotSee
/echo Set flag here
/return
but even though the message is appearing in chat it doesnt fire. I have check spaces, punctuation, and capitalization is correct on the message but it still doesnt work ??? are alerts broken ?
Fippy
[/code]
-
Valerian
- a grimling bloodguard

- Posts: 709
- Joined: Sun Jul 28, 2002 3:29 am
Post
by Valerian » Tue Sep 17, 2002 12:14 pm
Code: Select all
#event CannotSee " You cannot see your target."
is that an extra space before " You"?
I know you said you checked spaces, but that's an obvious error that I see from your code snippet.
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Tue Sep 17, 2002 12:26 pm
Yeah I tried it with and without a space at the begining and end. With and without a fullstop and none of them work

-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Fri Sep 20, 2002 7:37 am
I think I have worked out why this doesnt work. When ya get the "You cannot see your target." message you actually get sent 2 lines. I wonder if the whole line needs to be checked ?? Cant do that in one string though without a carrige return escape char in the string ?
-
Java
- a lesser mummy

- Posts: 73
- Joined: Sat Jul 13, 2002 12:03 pm
Post
by Java » Sat Sep 21, 2002 3:58 pm
Code: Select all
#Event CannotSee "You cannot see your target"
Sub main
:loop
/doevents
/goto :loop
/return
Sub Event_CannotSee
/beep
/beep
/return
I tried this as a test, it works. You try it. Lets see what happens.
Only way i was able to even test it was in Scarlet Desert, within range of a target, but too low in the sand to get a line of sight. Must be a Z axis thing.
Anyway. Try it and lets find out.
My perception is my reality.
[url=http://www.phpbb.com/][img]http://www.mutedfaith.com/images/illusion.jpg[/img][/url]
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Sat Sep 21, 2002 4:07 pm
I was tryin it in ec and standing right on top of the mob so you cant see it and it didn`t trigger once ???
-
Java
- a lesser mummy

- Posts: 73
- Joined: Sat Jul 13, 2002 12:03 pm
Post
by Java » Sat Sep 21, 2002 4:26 pm
Just tried this code snippet again. It works.
I tried it Standing over a mob and in EC, and it works.
My guess is that your MQ is bugged like when a macro just doesn't work if some event happened like zoning and running the macro again it doesn't work.
Im not at your system to know. Try logging out of EQ, end MacroQuest, Restart MQ then load EQ, log in the toon, and try this mac again.
If this isn't working for you, then it's beyond my help.
GL.
My perception is my reality.
[url=http://www.phpbb.com/][img]http://www.mutedfaith.com/images/illusion.jpg[/img][/url]
-
Fippy
- a snow griffon

- Posts: 499
- Joined: Tue Jul 16, 2002 10:42 am
Post
by Fippy » Mon Sep 30, 2002 11:38 am
Boy I am really stupid. I copied your code exactly and it worked. Then I double checked my script and noticed my event and the #define I set up for the flag variable were the same name Duh!
Changed the #define and low and behold it worked.
Thanks for double checking it Java.
Fippy
-
Java
- a lesser mummy

- Posts: 73
- Joined: Sat Jul 13, 2002 12:03 pm
Post
by Java » Mon Sep 30, 2002 6:23 pm
Fippy your quite welcome.
I'm glad it was a simple typo and not a broken install of the MQ.
The Latter would have gotten me really worried

My perception is my reality.
[url=http://www.phpbb.com/][img]http://www.mutedfaith.com/images/illusion.jpg[/img][/url]