public function ai_respond($chatcmd, $key, $args = null) { if (Shadowlang::hasLangRealNPC($this, $key)) { $message = Shadowlang::langNPC($this, $this->getChatPartner(), $key, $args); } else { $message = $key; } return $this->ai_act($chatcmd . ' ' . $message); }