NPC Services

From OpenKore Wiki
Revision as of 21:31, 27 April 2021 by 4epT (talk | contribs) (4epT moved page nPC Services to NPC Services over a redirect without leaving a redirect)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Service is a some action which may be performed with different NPCs.

Storaging, buying and selling should use the nearest available NPC when NPC isn't configured.

Buy

Item lists with prices are needed.

There are standard buying lists, but some NPCs sell items using custom dialogs.

File Format

To be compatible, we need to store detailed NPC descriptions not in npcs.txt.

Service data:

  • Service name (storage, save, cartrent, sell, buy)
  • Service fee
  • Custom data (item lists and prices)
  • NPC location
  • NPC talk sequence

Other Required Features

  • Select-response-by-text, select-response-by-regexp in NPC talk sequences