Raid Latecomers Macro

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

Geekylad
a lesser mummy
a lesser mummy
Posts: 48
Joined: Tue Jan 04, 2005 11:53 am

Raid Latecomers Macro

Post by Geekylad » Thu Jan 20, 2005 7:00 am

Hi all,

I'm sat bored at work so i thought i would attempt something, therefore I can't test it till later. It's basic and has bits of code borrowed from all over. The sole purpose of this macro is to invite any guildies that send a tell saying 'invite' as I am tired of zoning out of Time to pick up latecomers.

Ideally I would like to be able to send a /tell to the bot with the name of the person to invite as it's less obvious but I'll work on that later. It will invite then disband group leaving the people invited in the raid (all theoretical atm till i test)


Code: Select all

|PoTime Biatch
|This mac is made to invite latecomers for Time Raids. On recieing a tell saying 'invite' from a guildie it will autoinvite then disband.


#chat tell

#define <guild> "<guildname here>"

Sub Main

/echo PoTime Bitch Macro Activated

/declare Latecomer   	string	outer
/declare InviteReturn   string	outer
/declare InviteTimer   	timer	outer

:loop
/doevents
/delay 2s
/goto :loop

Sub Event_Chat(ChatType,Sender,ChatText)
/varset Latecomer ${Sender}
/if (${ChatText.Find[Invite]}) {
  /call Invite
  /if (${InviteReturn.Equal[INVITE_SUCCESS]} /disband
}
/return


Sub Invite
/squelch /target clear
/target ${Sender}
/if (!${Target.ID}) {
  /echo Failed to get a Target
  /varset InviteReturn TARGET_FAILED
  /return
}
/varset InviteTimer 10s
/if (${Target.Guild.Equal[<guild>]}) {
  /invite
  :wait4join
  /if (${InviteTimer}==0) {
    /echo Invite Timed Out
    /varset InviteReturn INVITE_FAILED
    /return
  }
}
/if (${Group}==0) {
  /delay 1s
  /goto :wait4join
}
/varset InviteReturn INVITE_SUCCESS
/return 
Any comments/suggestions welcome.

Thx

Zero0003
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun May 02, 2004 1:42 pm

Post by Zero0003 » Thu Jan 20, 2005 6:23 pm

or you can just have the person zone into the graveyard, target the person and invite them. Very simple.

Geekylad
a lesser mummy
a lesser mummy
Posts: 48
Joined: Tue Jan 04, 2005 11:53 am

Post by Geekylad » Thu Jan 20, 2005 7:01 pm

Not good for willing in alts for loot I'm afraid. (Guild has a policy of giving alts loot but not flags :()

bam
a ghoul
a ghoul
Posts: 149
Joined: Thu May 13, 2004 11:53 pm

Post by bam » Fri Jan 21, 2005 3:48 am

Well now they can zone into time and loot a flag =p