Alerts Problem

Help section from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Kwyjibo
decaying skeleton
decaying skeleton
Posts: 7
Joined: Thu Jul 17, 2003 10:11 pm

Alerts Problem

Post by Kwyjibo » Fri Jul 18, 2003 10:25 pm

Have been trying to get alerts to work but they dont seem to be working for me. For a simple test I tried:

Code: Select all

| Test.mac

  Sub Main
    /alert clear 1
    /alert add 1 "Watchman Halv"    

    :Loop
     /if $alert(1)==True {
       /target alert 1
       }
     /goto :Loop

   /return
Nothing seems to happen and when I type /target alert 1 it comes back with, There are no " around.

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 » Fri Jul 18, 2003 10:52 pm

What does /alert list 1 show?

Kwyjibo
decaying skeleton
decaying skeleton
Posts: 7
Joined: Thu Jul 17, 2003 10:11 pm

Post by Kwyjibo » Fri Jul 18, 2003 11:44 pm

Current Alerts:
watchman halv (0-100)
1 alerts listed.

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 » Sat Jul 19, 2003 12:20 am

Oh, duh. They started putting underscores instead of spaces. To get the real name of your mob, target it and then /echo $target(name). You should get something like Watchman_Halv00. Watchman_Halv should do for alert purposes.

Kwyjibo
decaying skeleton
decaying skeleton
Posts: 7
Joined: Thu Jul 17, 2003 10:11 pm

Post by Kwyjibo » Sat Jul 19, 2003 12:35 am

Thanks that did the trick.