First approach: (all of these produce the same effect)
//probably most convienent way ("text document" (look up 'text' in the reference) way): client/script={"\ macro z return "Attack" q return "World Say"\ "} // (the backslashes are for escaping the newlines. in a "text document", you can put newlines, and unescaped double quotes)
//OR client/script="macro\n z return \"Attack\"\n q return "World Say\""
client/command_text = ".alt " Just makes 'macro mode' on by default, as if the player pressed the ALT button next to DS' command line.