Safety Tells

Need some help with that macro you're working on or aren't quite sure how to get your macro to do something? Ask here!

Moderator: MacroQuest Developers

Feonix762
orc pawn
orc pawn
Posts: 15
Joined: Thu Feb 26, 2004 5:53 am

Safety Tells

Post by Feonix762 » Thu Feb 26, 2004 8:05 pm

I'm at work, so unfortunatley I can't test this out myself, but can anyone see any problems with it? Right now it's set so if you target yourself it just waits for tells, and if you lose your target the Macro ends. All it's designed to do is respond to the appropriate types of tells.

Also, since I use /delay 180s after each sent tell if it's a "safe" tell, will it continue to respond to tells recieved during the delay once it finishes? Meaning, if someone sends me a tell "macro" and I respond with "whatever.." and wait 180 seconds, will the macro then pick up tells sent during that 180s delay and reply to them again, or will it just ignore them? I'm hoping it will just wait 3 minutes and ignore any tells, then continue as normal.

Code: Select all

| tells.mac
| By Feonix762

#chat tell
#event GMMoved "You have been summoned by the gods!"


#turbo

Sub Main

:Wait
  /if $target()=="TRUE" /goto :Wait
  /endmacro
  
Sub Event_Chat
  /delay 5s
  /if "@ChatText"~~"GM" /call ResponderGM
  /if "@ChatText"~~"macro" /call ResponderM
  /if "@ChatText"~~"petition" /call ResponderM
  /if "@ChatText"~~"report" /call ResponderM
  /if "@ChatText"~~"hey" /call ResponderS
  /if "@ChatText"~~"hello" /call ResponderS
  /if "@ChatText"~~"hi" /call ResponderS
  /if "@ChatText"~~"you there" /call ResponderS
  /if "@ChatText"=="killyourself1289762" /camp desktop
  /reply sorry.. busy with reality
  /delay 180s
  /call Main

Sub Event_GMMoved

  /delay 3s
  /press down up
  /delay 2s
  /press up up
  /press down left
  /delay 3s
  /press up left
  /delay 2s
  /say what just happened?
  /delay 4s
  /camp desktop
  /endmacro

Sub ResponderM

  /delay 6s
  /reply whatever...
  /delay 180s
  /call Main

Sub ResponderS

  /delay 6s
  /reply busy with real life, sorry
  /delay 180s
  /call Main

Sub ResponderGM

  /delay 6s
  /reply sorry, i have to go to work.. im already late
  /delay 2s
  /camp desktop
  /endmacro