ktoxktox docs
ktx_cases

Overview

How a case is opened and where the reward is decided.

A case is an inventory item. Using it opens the case list with that case already selected, and the button on it starts the reel. When the reel stops, the reward is handed over. The command opens the same list with nothing selected:

Config.OpenCaseCommand = {
    enabled = true,
    name = "cases",
}

Where the reward comes from

The server picks it before the reel moves. It checks the inventory, draws the reward, takes the case and sends the reel data with the index of the winning entry in it. When the reel stops, the client reports back with nothing but the session token, and the server hands over the reward it kept on that session.

That is where the order matters. The client is told which entry wins so it can build the reel, but it never gets to name a reward. What comes back is a token, and the server grants what it stored under it.

An opening that is never finished is refunded. Sessions live five minutes, and a disconnect gives the case back right away.

Where to go next

Casesbuilding a case and its reward pool
Itemsthe items your inventory needs, and the icons

Install, framework and database are under Setup.