I'm using the following code in an all MQ using guild to buff in the guild hall. What I want to be able to do is buff pets as well. Is there any way to add that in as maybe part of the tell? For example, haste %t , where %t is the person's pet.
Thanks for the help
Thanks for the help
Rich (BB code):
#Chat tell
#Event TellMsg "#1# tells you, '#2#'"
Sub Main
:Loop
/doevents chat
/goto :Loop
/return
Sub Event_Chat(string Chat, string Toon, string Msg)
/if (${Msg.Find[haste]}) {
/target pc ${Toon}
/cast "Speed of Salik"
/delay ${Math.Calc[(${Spell[Speed of Salik].MyCastTime}*10)].Int} (!${Me.Casting.ID})
} else /if (${Msg.Find[c6]}) {
/target pc ${Toon}
/cast "Clairvoyance"
/delay ${Math.Calc[(${Spell[Clairvoyance].MyCastTime}*10)].Int} (!${Me.Casting.ID})
} else /if (${Msg.Find[c5} || ${Msg.Find[voq}) {
/target pc ${Toon}
/cast "Voice of Quellius"
/delay ${Math.Calc[(${Spell[Voice of Quellius].MyCastTime}*10)].Int} (!${Me.Casting.ID})
} else /if (${Msg.Find[c4]} || ${Msg.Find[tranq]}) {
/target pc ${Toon}
/cast "Tranquility"
/delay ${Math.Calc[(${Spell[Tranquility].MyCastTime}*10)].Int} (!${Me.Casting.ID})
} else /if (${Msg.Find[c3]} || ${Msg.Find[kei]}) {
/target pc ${Toon}
/cast "Koadic's Endless Intellect"
/delay ${Math.Calc[(${Spell[Koadic's Endless Intellect].MyCastTime}*10)].Int} (!${Me.Casting.ID})
} else /if (${Msg.Find[god]} || ${Msg.Find[mr]} || ${Msg.Find[druzzil]}) {
/target pc ${Toon}
/cast "Guard of Druzzil"
/delay ${Math.Calc[(${Spell[Guard of Druzzil].MyCastTime}*10)].Int} (!${Me.Casting.ID})
}
/return