function main()
{
addtrigger shard "@*@ says to the group,\"shard a@grpmember@\""
do
{
while !${QueuedCommands}
{
waitframe
}
ExecuteQueued
}
while 1
}
function shard(string trigline, string grpmember)
{
target ${grpmember}
do
{
face ${Target}
if ${Target.Distance} > 10
press -hold ${forward}
else
press -release ${forward}
}
while ${Target.Distance} > 10
Me.Ability[ShardSpellNameHere]:Use
}
Couldnt I change this:noacess said:Say the player's name was Toadie. The person would type "shard aToadie"
addtrigger shard "@*@ says to the group,\"shard a@grpmember@\""
addtrigger shard "@grpmember@ says to the group,\"shard\""
Thanks Karye!Karye said:use
to pick up request both in group and raid chatCode:AddTrigger Shard "\\aPC @*@ @*@:@groupmember@\\/a says to the@*@heart@*@"