mr:dread_knight_mob
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| mr:dread_knight_mob [2026/10/13 18:47] – Wiki maintenance: fix dread_knight_mob (JSON+Lua refs), fix weapon_item (pt link spelling), fix fire_enchantment (es links), fix healing_spell image refs; translate pt healing_spell Wiki Maintenance | mr:dread_knight_mob [2026/10/13 18:50] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Dread Knight Mob - Code References ====== | ||
| + | |||
| + | ===== Implementation Sources ===== | ||
| + | This entity is defined via JSON with Lua behavior: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Lua Script ===== | ||
| + | <code lua> | ||
| + | local RPD = require " | ||
| + | local mob = require " | ||
| + | |||
| + | return mob.init{ | ||
| + | attackProc = function(self, | ||
| + | -- 1/4 chance: death stroke + double damage | ||
| + | if enemy ~= nil and math.random(4) == 1 then | ||
| + | RPD.Sfx.DeathStroke: | ||
| + | return dmg * 2 | ||
| + | end | ||
| + | -- 1/10 chance to stun | ||
| + | if enemy ~= nil and math.random(10) == 1 then | ||
| + | RPD.affectBuff(enemy, | ||
| + | end | ||
| + | return dmg | ||
| + | end | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== Mob Stats (from JSON and Lua) ===== | ||
| + | * **HP**: 40 | ||
| + | * **Base Defense Skill**: 15 | ||
| + | * **Base Attack Skill**: 17 | ||
| + | * **Damage**: 8-16 | ||
| + | * **Defense Rating**: 12 | ||
| + | * **Experience for Kill**: 8 | ||
| + | * **Max Level**: 15 | ||
| + | * **Type**: Undead | ||
| + | * **Loot**: Gold (2% chance) | ||
| + | |||
| + | ===== Special Abilities (from JSON/Lua) ===== | ||
| + | * **Double Damage**: 25% chance (Random.Int(4) == 1) to deal double damage with DeathStroke effect | ||
| + | * **Stun**: 10% chance (Random.Int(10) == 1) to apply Stun buff on attack | ||
| + | |||
| + | ===== JSON Configuration ===== | ||
| + | This entity has JSON configuration in these files: | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | |||
| + | ===== Sprite Configuration (from JSON) ===== | ||
| + | <code json> | ||
| + | { | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | }, | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | " | ||
| + | } | ||
| + | } | ||
| + | </ | ||
| + | |||
| + | ===== String Resources ===== | ||
| + | English strings from [[https:// | ||
| + | <code xml> | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | <string name=" | ||
| + | </ | ||
| + | |||
| + | ===== Spawn Locations (from Bestiary.json) ===== | ||
| + | * **Necropolis Level 2**: 0.015 spawn rate | ||
| + | * **Necropolis Level 3**: 0.015 spawn rate | ||
| + | * **Necropolis Level 4**: 0.045 spawn rate | ||
| + | |||
| + | ===== Lua Scripts ===== | ||
| + | This entity is implemented in Java, no Lua script exists | ||
| + | |||
| + | ===== Related Files ===== | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
mr/dread_knight_mob.txt · Last modified: by 127.0.0.1
