Sentence:  I immediately offered my assistance to the unhappy person, who <WSD>thankfully</WSD> accepted it, and, putting himself under my conduct, begged me to convey him to some tavern, where he might send for a surgeon ... 
Meaning of the word marked with <WSD> tags:  In a thankful manner; giving thanks.