Nice one 
Shorten..
SCAR Code:
{*******************************************************************************
function Stunned: Boolean;
By: NCDS
Description: Return's True if stunned by NPC.
*******************************************************************************}
function Stunned: Boolean;
var
P: TPoint;
Search: TBox;
begin
P := Point(MSCX, MSCY);
Searth := IntToBox(P.x - 30, P.y - 30, P.x + 30, P.y + 30);
Result := FindColorTolerance(P.x, P.y, 2155764, Search.x1, Search.y1,
Search.x2, Search.y2, 5) and
IsChatBoxTextBetween('stunned', 0, 7, 8);
end;