mr:scroll_of_domination_item
Table of Contents
scroll_of_domination_item - Code References
Java Classes
- ScrollOfDomination.java - Main scroll implementation
- Scroll.java - Parent scroll class
- ScrollOfDomination.doRead() - Effect implementation
Entity Properties
- getEntityKind(): Returns “ScrollOfDomination” (class name)
- Type: Consumable scroll
- Price: 80 gold (when identified)
- Target: Single creature in line of sight
- Effect: Converts enemy to pet/allied creature
Implementation Details
The ScrollOfDomination class extends the base Scroll class and implements the doRead() method which:
- Shows domination spell sprite
- Plays dominance sound effect
- Dispels invisibility from reader
- Finds all mobs in player's line of sight
- Filters out bosses, pets, and NPCs
- Randomly selects one valid target
- Converts selected mob to pet using Mob.makePet()
- Shows flare effect on successful domination
JSON Configuration
This entity is implemented in Java, no JSON configuration exists
String Resources
<string name="ScrollOfDomination_Name">Scroll of Domination</string> <string name="ScrollOfDomination_Info">This scroll will bend will of one creature in your sight. The creature will fight for you to the death.</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Related mr: Entities
mr/scroll_of_domination_item.txt · Last modified: by 127.0.0.1

