mr:innkeeper_npc
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:innkeeper_npc [2026/03/01 17:16] – Wiki improvements for 5 random pages Qwen Assistant | mr:innkeeper_npc [2026/03/01 17:16] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== InnKeeperNPC - Code References ====== | ||
| + | |||
| + | {{ rpd: | ||
| + | |||
| + | ==== Java Classes ==== | ||
| + | This entity is not implemented in Java. It uses Lua scripting instead. | ||
| + | |||
| + | ==== JSON Configuration ==== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | * Found in: `RemixedDungeon/ | ||
| + | * **Key Properties**: | ||
| + | * `friendly: true` - NPC is non-hostile to the player | ||
| + | * `movable: false` - NPC cannot move from its position | ||
| + | * `aiState: " | ||
| + | * `fraction: " | ||
| + | * `immortal: true` - NPC cannot be killed | ||
| + | |||
| + | ==== Sprite Configuration ==== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | * Found in: `RemixedDungeon/ | ||
| + | * **Animation Details**: | ||
| + | * Idle animation: 10 frames at 5 FPS, looped | ||
| + | * Run/ | ||
| + | |||
| + | ==== String Resources ==== | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | * Source: `RemixedDungeon/ | ||
| + | * Also available in multiple languages in corresponding `values-*` directories | ||
| + | |||
| + | ==== Lua Scripts ==== | ||
| + | * [[https:// | ||
| + | * Script implements the following functions: | ||
| + | * `spawn()` - Initializes NPC with trade items (FriedFish, ChargrilledMeat, | ||
| + | * `interact()` - Opens trade window between NPC and player | ||
| + | * `priceForSell()` - Sets sell price multiplier (10x item base price) | ||
| + | * `sellMode()` - Uses `CARCASS` backpack mode for selling items to player | ||
| + | * `buyMode()` - Uses `FOR_BUY` backpack mode for purchasing items from player | ||
| + | * Uses `scripts/ | ||
| + | * Uses `scripts/ | ||
| + | |||
| + | ==== Level Placement ==== | ||
| + | * Found in: `RemixedDungeon/ | ||
| + | * Found in: `RemixedDungeon/ | ||
| + | * Spawned as a stationary NPC in town/inn areas | ||
| + | |||
| + | ==== Related mr Entities ==== | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | * [[mr: | ||
| + | |||
| + | {{tag> mr npc innkeeper innkeepernpc town trader}} | ||
mr/innkeeper_npc.txt · Last modified: by 127.0.0.1
