to delameres surprise , however , as he neared the fortress , longword raised a hand in welcome and shouted down a friendly greeting , and by the time he had ridden through the gate , longsword was down in the ward , waiting impatiently for him .