Code Duello or rules for dueling
https://www.pbs.org/wgbh/americanexperience/features/duel-code-duello-rules-dueling/"Reprinted from "American Duels and Hostile Encounters," Chilton Books, 1963.
The Code Duello, covering the practice of dueling and points of honor, was drawn up and settled at Clonmel Summer Assizes, 1777, by gentlemen-delegates of Tipperary, Galway, Sligo, Mayo and Roscommon, and prescribed for general adoption throughout Ireland. The Code was generally also followed in England and on the Continent with some slight variations. In America, the principal rules were followed, although occasionally there were some glaring deviations.
Rule 1. The first offense requires the first apology, though the retort may have been more offensive than the insult. Example: A tells B he is impertinent, etc. B retorts that he lies; yet A must make the first apology because he gave the first offense, and then (after one fire) B may explain away the retort by a subsequent apology.
Rule 2. But if the parties would rather fight on, then after two shots each (but in no case before), B may explain first, and A apologize afterward.
N.B. The above rules apply to all cases of offenses in retort not of stronger class than the example.
Rule 3. If a doubt exist who gave the first offense, the decision rests with the seconds; if they won't decide, or can't agree, the matter must proceed to two shots, or to a hit, if the challenger require it. etc....."