->'''Quark''': The sixth Rule of Acquisition expressly states...\\
'''Zek:''' [='=]''Never allow family to stand in the way of opportunity''.' I certainly never have.
-->-- ''Series/StarTrekDeepSpaceNine'', "The Nagus"

Do you want to join the pirates, thieves, less savory people, scoundrels in general? Then you need the Scoundrel's code. It teaches those that want to be scoundrels how to behave for their best gain. Its suggestions and rules are usually less than ethical, when not outright illegal, hence ''Scoundrel'' code. Less savory anti-heroes and other protagonists will often quote it. Antagonists will quote it less often.

Depending on the society in a PlanetOfHats, this kind of list can be a central tenet of its culture. Due to its nature, the people that follow such a code tend to be good or amoral. Evil characters may consider it as advice, but ignore it for profit. A chaotic character may lack the discipline to follow it, or may prefer to improvise. Lawful folks won't usually follow such a code unless said code is the cultural norm. The LovableRogue and others of the TricksterArchetype are prone to following this kind of code. It is always dangerous to count on someone following the scoundrel's code and many even instruct their followers to ignore the rules for results. Again, this is a code for scoundrels and so they're not big on rules in the first place.

Compare HonorAmongThieves, which is an genuine moral code for the criminal or unsavory. Also compare the EvilOverlordList, a meta[=/=]GenreSavvy version of this for {{Evil Overlord}}s.



[[folder: Fan Fic ]]

* ''Fanfic/TheKillerRarityverse'': Rarity promises to never hurt Sweetie Belle, the other five members of the Mane Six or foals.
* In ''Manga/YuGiOh'' story ''Fanfic/AGameOfMasques'', Yugi is an incubus who doesn't have much use for others' rules (for instance, he's on the run for seducing a Lord of Hell's consort). However he has his own set of rules that he abides by, including that he will never break up an established couple (unless they are already on the rocks or established on false pretenses) and he doesn't use his actual powers for seduction, because that would be "cheating".


[[folder: Film ]]

* ''Franchise/PiratesOfTheCaribbean'': The Pirates' Code (Or [[AltumVidetur Pirata Codex]]) is one that governs the relations of pirates. For instance, if someone says "parley" you have to take them to your captain alive. However, there are a number of caveats to this code.
** You have to ''be'' a pirate in order for the code to apply to you.
** "The code's more like guidelines than actual rules."
** Is Captain Teague within hearing distance? If he is, then obey the code or [[JudgeJuryAndExecutioner he will shoot you without hesitation and neither your captain or mates will complain about it.]]
* In ''Film/{{Casino}}'', Ace Rothstein talks about his soon-to-be wife Ginger following "the Hustlers' Code" -- basically, making sure that she pays off everyone who is in a position to help her carry out her profession as a high-class prostitute, so they have an incentive to do so.


[[folder: Literature ]]

* ''Franchise/StarWars'' [[Franchise/StarWarsExpandedUniverse Expanded Universe]]:
** Han Solo's mentor Roa has Roa's Rules: Never ignore a call from help, steal only from those richer than you, never play cards unless you're prepared to lose, don't pilot under the influence, and always be prepared to make a quick getaway.
** {{Bounty Hunter}}s in that universe ''also'' have [[http://starwars.wikia.com/wiki/Bounty_Hunters%27_Creed an accepted code of conduct.]] No Bounty Is Worth Dying For; People Don't Have Bounties, Only Acquisitions Have Bounties (meaning that anyone you are being paid to shoot is just a target, not a sentient being); Capture By Design, Kill By Necessity; [[ApeShallNeverKillApe No Hunter Shall Slay Another Hunter]]; [[EnemyMine No Hunter Shall Refuse Aid to Another Hunter]]; No Hunter Shall Interfere With Another's Hunt (the rules of not sabotaging/killing other Hunters rule are not in play with the [[Videogame/StarWarsTheOldRepublic Great Hunt]], where the goal is to ''compete'' with other hunters, however); and In the Hunt One Captures or Kills, Never Both (meaning you don't kill an unarmed target who has surrendered. If they try to escape is another story).
* The "Secret Peace" of the ''{{Literature/Gentleman Bastard}}s'' books describes the terms under which organized crime can exist in Camorr without encountering vastly more organized resistance, most significantly that the noble families and the city watch are not to be targeted. This is cheerfully ignored by [[ChurchgoingVillain the few who worship]] the Crooked Warden, god of thieves and tricksters, who teaches that the wealthy should remember that their fortunes are never entirely safe.


[[folder: Live Action TV ]]

* The Ferengi Rules of Acquisition from ''Series/StarTrekDeepSpaceNine'', which range from harsh ("A Ferengi without profit is no Ferengi at all.") to pragmatic ("You can't make a deal if you're dead.") to PetTheDog ("Good customers are as rare as latinum. Treasure them.")
* ''Series/{{Hustle}}'' often refers to 'the Grifter's Code'.
* ''Series/{{Dexter}}'' has the "Code of Harry" which allows him to uphold a measure of control over his SerialKiller tendencies.
* Dennis Stanton, a GentlemanThief who, after going straight, became a recurring character in ''Series/MurderSheWrote'', maintained his own code of conduct; never steal anything his victims couldn't afford to lose, never steal anything of sentimental value, and only steal items that were insured by a specific insurance company. The last one's more for personal revenge, as the company in question refused to pay for a treatment that could have saved his wife's life.


[[folder: Tabletop Games ]]

* The ''TabletopGame/DungeonsAndDragons'' d20 System Reference Documents have variant rules for an [[http://www.d20srd.org/srd/variant/campaigns/honor.htm "honour" system]] which can include this sort of moral code as guidelines for characters to follow. In said SRD are included the Thieves' Code and the Mafia's Omerta -- both of which mix HonorAmongThieves and ScoundrelCode.
* ''TabletopGame/{{GURPS}}'':
** The core rules offer a Pirate's Code of Honor in addition to the more standard types. It is, needless to say, less restrictive.
** The idea is parodied in the ''TabletopGame/DiscworldRolePlayingGame'', wherein the rules followed by some pirates are complicated enough that they've been known to press-gang contract lawyers, and sometimes start arguing about a point of order in the middle of a raid.


[[folder: Theatre ]]

* {{Parodied}} in ''Theatre/ThePiratesOfPenzance'': The pirates' code entails that they will never hurt an orphan, so anyone who [[BlatantLies claims to be an orphan]] [[LoopholeAbuse will be spared]]. Word gets around, resulting in some serious FlawExploitation. Frederic observes:
--> "The last three ships we took proved to be manned entirely by orphans, and so we had to let them go. One would think that Great Britain’s mercantile navy was recruited solely from her orphan asylums – which we know is not the case."


[[folder: Video Games ]]

* In the Franchise/StarWarsExpandedUniverse game ''VideoGame/KnightsOfTheOldRepublicIITheSithLords'', you learn on [[WretchedHive Nar Shaddaa]] there's a bounty on all Jedi - you count for this - and its a big one. Thing is the bounty hunter rule that they can't hunt each other is in effect, and Nar Shaddaa has gone horribly quiet. This should be an indicator of just how many bounty hunters are after you.
* [[http://assassinscreed.wikia.com/wiki/Pirate_code_of_Bartholomew_Roberts Bartholomew "Black Bart" Roberts' famous code]] [[InsistentTerminology with 11 articles]] factors into ''VideoGame/AssassinsCreedIVBlackFlag''. It's pure SchmuckBait, as it places all power in Roberts' hands, but as he himself notes, [[NoHonorAmongThieves he never said anything about loyalty in them]].
* The Phantom Thieves in ''VideoGame/Persona5'' have two guiding rules regarding whom they target for HeelFaceBrainwashing. The target must be unanimously agreed on and they must never kill.
* In ''VideoGame/FinalFantasyXIV'', the port city Limsa Lominsa was founded by pirates. To keep from tearing itself apart, a code was put into effect with three core tenants. One, you don't steal from fellow Lominsans. Two, you don't rob another pirate crew of their hard earned spoils. And three, [[SlaveryIsASpecialKindOfEvil You don't treat people as goods.]] To help uphold the code, the Rogue's Guild (formerly the Upright Thieves) act as Limsa Lominsa's SecretPolice, targeting and assassinating those who break the code.


[[folder: Web Comics ]]

* ''[[TheJoyOfX The Seventy Maxims of Maximally Effective Mercenaries]]'', in ''Webcomic/SchlockMercenary''.


[[folder: Real Life ]]

* Albanian mobsters follow the [[https://en.wikipedia.org/wiki/Kanun_(Albania) Kanun]], a 500-year-old set of traditional Albanian laws, in their criminal dealings.
* The many variations of the [[http://en.wikipedia.org/wiki/Pirate%27s_Code Pirate's Code]].