mr:service_man_npc
Table of Contents
Service Man Npc - Code References
Java Classes
- ServiceManNPC.java - Main implementation of the Service Man NPC
- Extends `ImmortalNPC` base class
- Implements `Packable` interface for save/load functionality
Key Methods
- interact(Char hero): Handles player interaction, checks internet connection and viewing limits
- getReward(): Returns gold reward item (base 150 gold + bonus based on films seen)
- getLimit(): Calculates viewing limit (4 + hero level)
- resetLimit(): Resets the filmsSeen counter
Fields
- BASIC_GOLD_REWARD: Constant = 150 (base gold reward)
- filmsSeen: Static tracked variable for total films watched by player
JSON Configuration
This entity does not appear to have specific JSON configuration files.
String Resources
<string name="ServiceManNPC_Name">employee</string> <string name="ServiceManNPC_Desc">A regular worker of the local establishments.</string> <string name="ServiceManNPC_NoConnection">I am sorry, you cannot use our service right now. (Internet connection required)</string> <string name="ServiceManNPC_NotReady">Sorry, the movie is not ready yet, you may try again in a few minutes.</string> <string name="ServiceManNPC_Limit">I do apologise, but every new adventurer can watch only %d movies total.</string> <string name="ServiceManNPC_Limit_Reached">I do apologise, but you've reached your current limit. But you'll be able to use our service again for every hero level you receive!</string>
Lua Scripts
This entity is implemented in Java, no Lua script exists
Entity Kind
- getEntityKind(): ServiceManNPC
Related mr Entities
Additional Information
- ServiceManNPC is an NPC that provides video reward system functionality
- Found in the main game, related to advertising rewards
- Allows players to watch videos in exchange for gold rewards
Images
mr/service_man_npc.txt · Last modified: by 127.0.0.1
