Page 1 of 1

Raid Latecomers Macro

Posted: Thu Jan 20, 2005 7:00 am
by Geekylad
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

Posted: Thu Jan 20, 2005 6:23 pm
by Zero0003
or you can just have the person zone into the graveyard, target the person and invite them. Very simple.

Posted: Thu Jan 20, 2005 7:01 pm
by Geekylad
Not good for willing in alts for loot I'm afraid. (Guild has a policy of giving alts loot but not flags :()

Posted: Fri Jan 21, 2005 3:48 am
by bam
Well now they can zone into time and loot a flag =p