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 Thx

