Two Macro Requests [Request Fulfilled]

Macro requests from before the user variable changes that broke all macros

Moderator: MacroQuest Developers

Amadeus
The Maestro
The Maestro
Posts: 2036
Joined: Sat Jun 29, 2002 3:51 pm

Two Macro Requests [Request Fulfilled]

Post by Amadeus » Thu Jul 04, 2002 10:47 pm

I'm not sure if these are possible....buuut

1. Alarm.mac - /beeps you every second (until you /endmacro) at a particular time (ie, /macro alarm.mac 20:15)

2. FriendAlert.mac - This would alert you everytime one of your friends logged on. (or, if this isn't possible, something like '/macro FriendAlert.mac <friend>')

User avatar
L124RD
Site Admin
Site Admin
Posts: 1343
Joined: Fri Jun 14, 2002 12:15 am
Location: Cyberspace
Contact:

Post by L124RD » Thu Jul 04, 2002 11:47 pm

Salutations,
here we go, as always, i've never run these but am coding them as i go! whe!

Code: Select all

| alarm.mac
| syntax: /macro alarm.mac <hour> <minute>
sub main
  :loop
    /if n $time(h)==$p0 /if n $time(m)==$p1 {
      /varset t0 10
      /goto :alarmloop
    }
  /goto :loop
  :alarmloop
    /if n $t0==0 {
      /varset t0 10
      /beep
   }
   /goto :alarmloop
/return
As for the friends list? we can check if they are in the zone, but not online since mq does not as of yet have access to who all, it can just try to find the name of every spawn in the zone and see if the match is its name, and continue for ever... and ever...