This one will open a window with links to create a macro or assist directly, and a couple other stuff
Pretty much the same script alot of people have, but in the bot
syntax is !assist <player name>
<?
$assist = new Assist($bot);
$commands["tell"]["assist"] = &$assist;
$commands["pgmsg"]["assist"] = &$assist;
$commands["gc"]["assist"] = &$assist;
  /*
    The Class itself...
  */
  class Assist
  {
    var $bot;
    
    
    /*
      Constructor:
        Hands over a referance to the "Bot" class.
    */
    function Assist (&$bot)
    {
      $this -> bot = &$bot;
    }
    /*
      This gets called on a tell with the command
    */
    function tell($name, $msg)
    {
		if (preg_match("/^" . $this -> bot -> commpre . "assist (.+)$/i", $msg, $info)) { $output = $info[1]; }
		$this -> bot -> send_tell($name, $this -> doAssist($output)) ;
    }
    /*
      This gets called on a msg in the privgroup with the command
    */
    function pgmsg($name, $msg)
    {
		if (preg_match("/^" . $this -> bot -> commpre . "assist (.+)$/i", $msg, $info)) { $output = $info[1]; }
		$this -> bot -> send_pgroup($this -> doAssist($output));
    }
    
    
    
    /*
      This gets called on a msg in the guildchat with the command
    */
    function gc($name, $msg)
    {
		if (preg_match("/^" . $this -> bot -> commpre . "assist (.+)$/i", $msg, $info)) { $output = $info[1]; }
		$this -> bot -> send_gc($this -> doAssist($output));
    }
    /*
    	Makes the message
    */
    function doAssist($msg)
    {
		$ucname = ucfirst($msg);
    	$inside = "<font color=CCInfoText><font color=CCInfoHeader>Macro:</font>\nAssist <a href='chatcmd:///macro $msg /assist $msg'>$ucname</a>\n\n";
		$inside .= "<font color=CCInfoHeader>Command:</font>\nAssist <a href='chatcmd:///assist $msg'>$ucname</a>\n\n";
    	
		$inside .= "<font color=CCInfoHeader>Extras:</font>\nAnnonymous on/off: <a href='chatcmd:///anon'>/anon</a>\n";
		$inside .= "Turn auto attack player <a href='chatcmd:///option AutoAttackPvP 1'>on</a> <a href='chatcmd:///option AutoAttackPvP 0'>off</a>\n";
		$inside .= "Turn auto target player <a href='chatcmd:///option AutoTargetPvP 1'>on</a> <a href='chatcmd:///option AutoTargetPvP 0'>off</a>\n";
		$inside .= "Turn show all names <a href='chatcmd:///option ShowAllNames 1'>on</a> <a href='chatcmd:///option ShowAllNames 0'>off</a>";
		
  		return "Assist: " . $this -> bot -> make_blob($ucname, $inside);
    }
  }
?>