The Stranger (also known as AzuterronNPC) is a mysterious quest NPC that appears shrouded in black mist. He gives a special quest to players who encounter him.
Overview
Type: Quest NPC / Shopkeeper
Base Class: Extends Shopkeeper class
Location: Appears in special shop levels via ShopPainter
Movement: Immovable (movable = false)
Behavior: Immune to paralysis, stunning, and root effects; does not take damage from attacks (damage() method does nothing)
Defense: Defense skill is set to 1000 (cannot be hit in combat)
Speed: Moves at half normal speed (speed() = 0.5f)
Quest: Asks the player to defeat a Treacherous Spirit and bring back its heart
Quest Mechanics
Upon first interaction, the Stranger gives a quest to defeat a Treacherous Spirit
The Treacherous Spirit spawns somewhere on the current level when the quest is accepted (Quest.process() method)
After defeating the Treacherous Spirit, the player must return with the HeartOfDarkness item
Completing the quest rewards the player with a PotionOfMight item
The quest is tracked through static variables in the Quest inner class (given, completed, processed)
The quest appears in the Journal under AZUTERRON feature
Interaction Process
If quest is not given: Shows the start dialog and sets Quest.given = true
If quest is given but not completed: Checks for HeartOfDarkness item and gives PotionOfMight in return if found
If quest is completed: Functions as a regular shopkeeper