all instances of
Code:
Grphler->CastSpell(XXXX, c->GetID(), 1, -1, -1);
should probably read
Code:
Grphler->CastSpell(XXXX, Grphler->GetID(), 1, -1, -1);
so that the center of the area of effect is the bot casting the spell instead of the client issuing the command.