camp check macro [Request Fulfilled]

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

Moderator: MacroQuest Developers

Dakadabrewer
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Aug 25, 2002 4:37 pm

camp check macro [Request Fulfilled]

Post by Dakadabrewer » Tue Sep 24, 2002 9:46 am

sorta needed this fast , before the patch need a simple macro when someone shouts or oocs camp check it replies with a shouted message.

not sure how to read all teh text strings for the different channel, im assuming i can just use /shout txt after the text checking loop

Dakadabrewer
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Aug 25, 2002 4:37 pm

Post by Dakadabrewer » Tue Sep 24, 2002 11:37 am

I am trying to work out the exact code myself this is what I am wanting to do in *psudocode" im not sure if I want to call $p0 or $P2

edit: code brackets

Code: Select all

Sub main

   :checkcall
     /if $p0=="camp" goto camped
     /goto : checkcall

   :camped
     /shout mobs are camped
     /goto checkcall
/return


User avatar
DeathSpiral
a ghoul
a ghoul
Posts: 95
Joined: Thu Aug 22, 2002 6:31 pm

Post by DeathSpiral » Tue Sep 24, 2002 5:47 pm

Nah, you're looking for something more like this:

Code: Select all

| - campcheck.mac -

| String to look for
#define StringTest camp

#chat shout
#chat ooc

sub Main
   :Loop
      /doevents
      /goto :Loop
/return

sub Event_Chat
   /if "$p2"~~"StringTest" /ooc [whatever] is camped!
/return
Very simplistic, but should do what needs to be done. Just set the StringTest define to what you want to check for and update the /ooc'd message.

/wave
I am orc pawn, hear me yell for centurians...

Dakadabrewer
decaying skeleton
decaying skeleton
Posts: 6
Joined: Sun Aug 25, 2002 4:37 pm

Post by Dakadabrewer » Tue Sep 24, 2002 8:13 pm

thanks man thats great , knew what i wanted just wasnt sure of how to get there 8)