### GET /image query examples Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Example query strings for the /image endpoint, covering still images, animations, single frames, and various parameters like gender, headgear, garment, weapon, head, action, canvas, and fan-made skin tone/color. ```http /image?job=1002 # still Poring ``` ```http /image?job=1002&action=0 # animated Poring (APNG) ``` ```http /image?job=1002&action=0&frame=2 # a single frame of that action ``` ```http /image?job=1&gender=female&headgear=4,125&garment=1&weapon=2&head=4&action=32 ``` ```http /image?job=0&canvas=200x200+75+175&action=93 ``` ```http /image?job=4069&gender=female&skinTone=3 # fan-made skin tone (not in the game) ``` ```http /image?job=4069&gender=female&skinColor=8a5a3b ``` -------------------------------- ### GET /raw/randomopt.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns a mapping of random-option IDs to display templates, e.g. "ATQM +%d". ```APIDOC ## GET /raw/randomopt.json ### Description Returns a mapping of random-option IDs to display templates, e.g. "ATQM +%d". ### Method GET ### Endpoint /raw/randomopt.json ### Response #### Success Response (200) - **id** (number) - Random option ID. - **template** (string) - Display template. #### Response Example { "1": "ATQM +%d" } ``` -------------------------------- ### GET /raw/classes.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns classes with palettes, swatches, and alternative outfits. ```APIDOC ## GET /raw/classes.json ### Description Returns classes with palettes, swatches, and alternative outfits. ### Method GET ### Endpoint /raw/classes.json ### Response #### Success Response (200) - **id** (number) - Class ID. - **palettes** (array) - Palette information. - **swatches** (array) - Swatch information. - **outfits** (array) - Alternative outfits. #### Response Example [ { "id": 1, "palettes": [], "swatches": [], "outfits": [] } ] ``` -------------------------------- ### GET /raw/hair.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns hair styles and colour swatches per race/gender. ```APIDOC ## GET /raw/hair.json ### Description Returns hair styles and colour swatches per race/gender. ### Method GET ### Endpoint /raw/hair.json ### Response #### Success Response (200) - **race** (string) - Race identifier. - **gender** (string) - Gender identifier. - **styles** (array) - Hair styles. - **colors** (array) - Colour swatches. #### Response Example { "race": "human", "gender": "male", "styles": [], "colors": [] } ``` -------------------------------- ### GET /effects/index.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Lists all effects available in the system. Items with hat effects are not included here; they are listed only in items.json. ```APIDOC ## [GET] /effects/index.json ### Description Lists all effects available in the system. Items with hat effects are not included here; they are listed only in items.json. ### Method GET ### Endpoint /effects/index.json ### Parameters None ### Response #### Success Response (200) - **effects** (array) - List of effect objects. #### Response Example ```json { "effects": [ { "id": 1130, "name": "eff_1130" } ] } ``` ``` -------------------------------- ### GET /effect/sound/index.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns a JSON object with the count and names of sound files present in the extracted tree, useful for coverage preflighting. ```APIDOC ## GET /effect/sound/index.json ### Description Returns a JSON object with the count and names of sound files present in the extracted tree, useful for coverage preflighting. ### Method GET ### Endpoint /effect/sound/index.json ### Response #### Success Response (200) - **count** (number) - Number of sound files - **names** (array of strings) - List of sound file names #### Response Example { "count": 100, "names": ["effect/ef_portal.wav", "_heal_effect.wav"] } ``` -------------------------------- ### GET /gif Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Renders a sprite as a GIF image. Supports the same query parameters as GET /image, but converts the output to GIF format. Animated GIFs are produced when an action is specified without a frame; otherwise a single-frame still GIF is returned. ```APIDOC ## [GET] /gif ### Description Renders a sprite as a GIF image. Supports the same query parameters as GET /image, but converts the output to GIF format. Animated GIFs are produced when an action is specified without a frame; otherwise a single-frame still GIF is returned. ### Method GET ### Endpoint /gif ### Parameters #### Query Parameters - **job** (integer) - Required - Sprite job ID. - **action** (integer) - Optional - Animation index (action = animation type × 8 + direction). If provided without `frame`, produces an animated GIF. - **frame** (integer) - Optional - Specific frame index. If provided, produces a single-frame GIF. - **gender** (string) - Optional - Gender for player sprites (e.g., `female`). - **headgear** (string) - Optional - Comma-separated headgear IDs. - **garment** (integer) - Optional - Garment ID. - **weapon** (integer) - Optional - Weapon ID. - **head** (integer) - Optional - Head direction (rotates head only). - **headdir** (integer) - Optional - Head direction parameter (rotates head only). - **outputFormat** (string) - Optional - Must not be `zip` (rejected with 400). ### Request Example ``` /gif?job=1002&action=0 ``` ### Response #### Success Response (200) - **Content-Type** (string) - `image/gif` - **Body** - GIF image data. #### Response Example ``` [Binary GIF data] ``` ### Error Handling - **400** - Returned if `outputFormat=zip` is specified. - **304** - Not Modified, when ETag matches. ### Notes - GIF format has hard-edged transparency and 256 colors per frame. - Immutable cache headers and ETag/304 support apply. ``` -------------------------------- ### GET /bgm/index.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves a catalogue mapping every map name to its background music track filename. This endpoint returns 404 until the --bgm extraction step has been run. ```APIDOC ## GET /bgm/index.json ### Description Retrieves a catalogue mapping every map name to its background music track filename. This endpoint returns 404 until the --bgm extraction step has been run. ### Method GET ### Endpoint /bgm/index.json ### Response #### Success Response (200) - **maps** (object) - Maps map names to track filenames. #### Response Example { "maps": { "": ".mp3" } } ``` -------------------------------- ### GET /effect/sound Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Serves a sound effect as a browser-playable WAV file. The file parameter is relative to data/wav/ without the .wav extension, exactly as the wav field carries it. ```APIDOC ## GET /effect/sound ### Description Serves a sound effect as a browser-playable WAV file. The file parameter is relative to data/wav/ without the .wav extension, exactly as the wav field carries it. ### Method GET ### Endpoint /effect/sound ### Parameters #### Query Parameters - **file** (string) - Required - The name of the sound file, relative to data/wav/, without the .wav extension. ### Response #### Success Response (200) - **body** (binary) - The sound as a WAV file (audio/wav). #### Response Example [Binary WAV data] ``` -------------------------------- ### Example map asset URLs Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Shows the URL patterns for map assets: index, manifest, raw geometry, shared texture, model, water frame, and UI image. These endpoints return 404 until the --maps extraction step is run. ```text /maps/index.json /maps/prontera/manifest.json /maps/prontera/prontera.gnd /maps/_t/a6abef1ba59fbf23.png ``` -------------------------------- ### Example /gif URLs Source: https://github.com/adsonpleal/ragassets/blob/main/README.md The /gif endpoint converts the rendered PNG/APNG to a GIF. An action without frame produces an animated looping GIF; a frame or neither produces a still GIF. Use for clients that can't display APNG. ```text /gif?job=1002&action=0 # animated Poring, as a GIF ``` ```text /gif?job=1002 # still Poring, as a GIF ``` ```text /gif?job=4252&head=1&action=40 # Dragon Knight attack, as a GIF ``` ```text /gif?job=1&gender=female&headgear=4,125&garment=1&weapon=2&head=4&action=32 ``` -------------------------------- ### footprints.json example output from --effects Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Shows the JSON structure written by --effects for footprint effects. Keys bottomLeft/bottomRight/topLeft/topRight reference .str bundles; scaleBottom/scaleTop, heightTop, stride, gap, adjustAngle are always emitted because client defaults differ from neutral values. ```json {"items":[{"id":1002239, "bottomLeft":"footprint_dragon_face_2d_bottom", "bottomRight":"footprint_dragon_face_2d_bottom", "topLeft":"footprint_dragon_face_2d", "topRight":"footprint_dragon_face_2d", "scaleBottom":0.06,"scaleTop":0.15, "heightTop":0,"stride":50,"gap":2,"adjustAngle":true}]} ``` -------------------------------- ### GET /effects/index_en.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves the same catalogue as /effects/index.json but with English names for each costume. Spanish version available at /effects/index_es.json. ```APIDOC ## GET /effects/index_en.json ### Description Retrieves the same catalogue as /effects/index.json but with English names for each costume. Spanish version available at /effects/index_es.json. ### Method GET ### Endpoint /effects/index_en.json ### Response #### Success Response (200) - **items** (array) - List of effect-only costumes - **id** (string) - Item id - **name** (string) - English costume name - **slots** (string) - Slot information - **effect** (string) - Bundle key for the effect #### Response Example { "items": [ { "id": "example_id", "name": "Example Costume (EN)", "slots": "example_slots", "effect": "example_effect" } ] } ``` -------------------------------- ### GET /raw/mobs.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns monster stats. See the Monster stats section for details. ```APIDOC ## GET /raw/mobs.json ### Description Returns monster stats. See the Monster stats section for details. ### Method GET ### Endpoint /raw/mobs.json ### Response #### Success Response (200) - **id** (number) - Monster ID. - **name** (string) - Monster name. - **stats** (object) - Monster statistics. #### Response Example [ { "id": 1, "name": "Poring", "stats": {} } ] ``` -------------------------------- ### GET /raw/jobs.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns every class as a flat JSON array sorted by id. Each class includes id, jt, name, and hasIcon. ```APIDOC ## GET /raw/jobs.json ### Description Returns every class as a flat JSON array sorted by id. Each class includes id, jt, name, and hasIcon. ### Method GET ### Endpoint /raw/jobs.json ### Response #### Success Response (200) - **id** (number) - Class ID. - **jt** (number) - Job type. - **name** (string) - Class name. - **hasIcon** (boolean) - Whether the class has an icon. #### Response Example [ { "id": 1, "jt": 0, "name": "Novice", "hasIcon": true } ] ``` -------------------------------- ### GET /bgm/{track}.mp3 Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Serves a single background music track as audio/mpeg. The track name must match the strict numeric slug pattern [0-9a-z_-].mp3, which prevents path traversal. Returns 404 until the --bgm step has been run. ```APIDOC ## GET /bgm/{track}.mp3 ### Description Serves a single background music track as audio/mpeg. The track name must match the strict numeric slug pattern [0-9a-z_-].mp3, which prevents path traversal. Returns 404 until the --bgm step has been run. ### Method GET ### Endpoint /bgm/{track}.mp3 ### Parameters #### Path Parameters - **track** (string) - Required - The track filename, e.g. "210.mp3". ### Response #### Success Response (200) - Content-Type: audio/mpeg #### Response Example [Binary audio data] ``` -------------------------------- ### GET /raw/... Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves client data tables such as items, jobs, skills, and monsters. The response includes detailed fields like 'contains' for box loot, 'description' for tooltips, and 'delay' for skill timing. ```APIDOC ## [GET] /raw/... ### Description Retrieves client data tables such as items, jobs, skills, and monsters. The response includes detailed fields like 'contains' for box loot, 'description' for tooltips, and 'delay' for skill timing. ### Method GET ### Endpoint /raw/... ### Parameters #### Query Parameters - **--raw** (boolean) - Optional - When set, prints the count of dropped boxes (e.g., 106 boxes keyed by an id not in iteminfo_new.lub). ### Response #### Success Response (200) - **items.json** (object) - Contains item data with fields like 'contains' (array of drop entries) and 'description' (string or null). - **skills.json** (object) - Contains skill data with fields like 'description' (string or null) and 'delay' (object with arrays for castFixed, castVariable, afterCast, cooldown). #### Response Example ```json { "items": [ { "id": 1000274, "contains": [ { "id": 1000274, "prob": 10, "group": 0 }, { "id": 23047, "prob": 1400, "group": 6 } ] } ], "skills": [ { "id": 1, "description": "^FF0000Some tooltip text", "delay": { "castFixed": [1500, 1500, 1500], "castVariable": [4500, 4700, 4900], "afterCast": [1000, 1000, 1000], "cooldown": [6000, 6000, 6000] } } ] } ``` ``` -------------------------------- ### GET /maps/_m/{hash}.rsm Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns a shared model file in raw `.rsm` format. Models are de-duplicated across all maps. ```APIDOC ## GET /maps/_m/{hash}.rsm ### Description Returns a shared model file in raw `.rsm` format. Models are de-duplicated across all maps. ### Method GET ### Endpoint /maps/_m/{hash}.rsm ### Parameters #### Path Parameters - **hash** (string) - Required - 16-character hex hash of the model. ### Response #### Success Response (200) - RSM model data. #### Response Example RSM model data ``` -------------------------------- ### GET /effects/index.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves the catalogue of effect-only costumes. Each entry contains the item id, name, slots, and the effect bundle key. ```APIDOC ## GET /effects/index.json ### Description Retrieves the catalogue of effect-only costumes. Each entry contains the item id, name, slots, and the effect bundle key. ### Method GET ### Endpoint /effects/index.json ### Response #### Success Response (200) - **items** (array) - List of effect-only costumes - **id** (string) - Item id - **name** (string) - Costume name - **slots** (string) - Slot information - **effect** (string) - Bundle key for the effect #### Response Example { "items": [ { "id": "example_id", "name": "Example Costume", "slots": "example_slots", "effect": "example_effect" } ] } ``` -------------------------------- ### GET /effect/sound Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Fetches a sound file for an effect. The sound is read from a separate static tree and served with immutable cache headers, ETag/304, and wildcard CORS. Names are resolved case-insensitively and EUC-KR encoded names are retried under their decoded Hangul path. ```APIDOC ## GET /effect/sound ### Description Fetches a sound file for an effect. The sound is read from a separate static tree and served with immutable cache headers, ETag/304, and wildcard CORS. Names are resolved case-insensitively and EUC-KR encoded names are retried under their decoded Hangul path. ### Method GET ### Endpoint `/effect/sound?file=` ### Parameters #### Query Parameters - **file** (string) - Required - The sound filename to fetch. Case-insensitive. May contain `%d` placeholders that expand over a range. ### Response #### Success Response (200) - Returns the sound file content (PCM WAV). #### Response Example (No explicit example provided in source.) ### Error Handling - Returns 404 if the sound file does not exist. ``` -------------------------------- ### GET /effects/{key}/effect.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves the parsed .str animation for a given effect key. Contains fps, maxKey, and layer information. ```APIDOC ## GET /effects/{key}/effect.json ### Description Retrieves the parsed .str animation for a given effect key. Contains fps, maxKey, and layer information. ### Method GET ### Endpoint /effects/{key}/effect.json ### Parameters #### Path Parameters - **key** (string) - Required - The effect key (costume resource-name slug or ASCII key for Korean-named effects) ### Response #### Success Response (200) - **key** (string) - The effect key - **fps** (number) - Frames per second - **maxKey** (number) - Maximum key frame - **layers** (array) - List of layers - **textures** (array) - Texture references - **anims** (array) - Animation data #### Response Example { "key": "example_key", "fps": 30, "maxKey": 10, "layers": [ { "textures": ["tex_0.png"], "anims": [] } ] } ``` -------------------------------- ### GET /effects/footprints.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves the footprint catalogue. Each entry contains one footprint stone with four bundle keys and placement numbers. ```APIDOC ## GET /effects/footprints.json ### Description Retrieves the footprint catalogue. Each entry contains one footprint stone with four bundle keys and placement numbers. ### Method GET ### Endpoint /effects/footprints.json ### Response #### Success Response (200) - **items** (array) - List of footprint stones - **id** (string) - Stone's item id - **effect** (string) - Bundle key for the effect - **placement** (string) - Placement numbers #### Response Example { "items": [ { "id": "example_footprint_id", "effect": "example_effect", "placement": "example_placement" } ] } ``` -------------------------------- ### GET /illust/card/{id}.png Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Serves a card's full-size illustration (300×400) keyed by item id. Returns 404 until the --illust extraction step is run. Supports immutable cache headers, ETag/304, and wildcard CORS. ```APIDOC ## [GET] /illust/card/{id}.png ### Description Serves a card's full-size illustration (300×400) keyed by item id. Returns 404 until the --illust extraction step is run. Supports immutable cache headers, ETag/304, and wildcard CORS. ### Method GET ### Endpoint /illust/card/{id}.png ### Parameters #### Path Parameters - **id** (integer) - Required - The item id of the card. ### Request Example ``` /illust/card/4001.png /illust/card/4302.png /illust/card/27083.png ``` ### Response #### Success Response (200) - Returns the card illustration image with immutable cache headers, ETag/304 support, and wildcard CORS. #### Error Response (404) - Returned if the card id is unknown or the extraction step has not been run. ``` -------------------------------- ### GET /raw/{name}_{lang}.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns localized copies of the data tables. English and Spanish versions are available for items, jobs, skills, status, randomopt, and classes. Replace {name} with the table name and {lang} with 'en' or 'es'. ```APIDOC ## GET /raw/{name}_{lang}.json ### Description Returns localized copies of the data tables. English and Spanish versions are available for items, jobs, skills, status, randomopt, and classes. Replace {name} with the table name and {lang} with 'en' or 'es'. ### Method GET ### Endpoint /raw/{name}_{lang}.json ### Parameters #### Path Parameters - **name** (string) - Required - The table name: items, jobs, skills, status, randomopt, or classes. - **lang** (string) - Required - The language code: 'en' or 'es'. ### Response #### Success Response (200) - Same structure as the corresponding base table. #### Response Example [ { "id": 1, "name": "Espada" } ] ``` -------------------------------- ### GET /raw/skills.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns every skill as a flat JSON array sorted by id. Each skill includes id, name, maxLevel, description, and delay. Follow-up hits include a 'parent' field. Includes ids the client leaves unnamed where a name can be built. ```APIDOC ## GET /raw/skills.json ### Description Returns every skill as a flat JSON array sorted by id. Each skill includes id, name, maxLevel, description, and delay. Follow-up hits include a 'parent' field. Includes ids the client leaves unnamed where a name can be built. ### Method GET ### Endpoint /raw/skills.json ### Response #### Success Response (200) - **id** (number) - Skill ID. - **name** (string) - Skill name. - **maxLevel** (number) - Maximum level. - **description** (string) - Description. - **delay** (number) - Delay in seconds. - **parent** (number) - Only on follow-up hits; parent skill ID. #### Response Example [ { "id": 1, "name": "Basic Attack", "maxLevel": 1, "description": "A basic attack.", "delay": 0.5 } ] ``` -------------------------------- ### GET /effect/str Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Fetches a skill or world effect STR file by its filename. The file is resolved from the embedded effect tables and served with immutable cache headers, ETag/304 support, and wildcard CORS. ```APIDOC ## GET /effect/str ### Description Fetches a skill or world effect STR file by its filename. The file is resolved from the embedded effect tables and served with immutable cache headers, ETag/304 support, and wildcard CORS. ### Method GET ### Endpoint `/effect/str?file=` ### Parameters #### Query Parameters - **file** (string) - Required - The filename of the STR file to fetch. Case-insensitive. ### Response #### Success Response (200) - Returns the STR file content. #### Response Example (No explicit example provided in source.) ### Error Handling - Returns 404 if the file does not exist. ``` -------------------------------- ### GET /effect/skill-map Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns a mapping from skillId to effect information, including effectId, hitEffectId, groundEffectId, and wav sound names. The wav field is a de-duplicated array of sound names already verified against the extracted tree. ```APIDOC ## GET /effect/skill-map ### Description Returns a mapping from skillId to effect information, including effectId, hitEffectId, groundEffectId, and wav sound names. The wav field is a de-duplicated array of sound names already verified against the extracted tree. ### Method GET ### Endpoint /effect/skill-map ### Response #### Success Response (200) - **skillId** (object) - Mapping from skill ID to an object with: - **effectId** (number) - Effect ID - **hitEffectId** (number) - Hit effect ID - **groundEffectId** (number) - Ground effect ID - **wav** (array of strings) - Sound names #### Response Example { "89": { "effectId": 89, "hitEffectId": null, "groundEffectId": null, "wav": ["effect/ef_stormgust.wav"] } } ``` -------------------------------- ### Example monster record in mobs.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md One record per monster in resources/raw/mobs.json, with id, names, level, HP, EXP, stats, race/size/element, boss/MVP flags, and 4th-job resistances. `res`/`mres` are nullable: `null` means unknown, `0` means no resistance. ```json { "id": 1039, "aegisId": "BAPHOMET", "name": "Bafomé", "boss": true, "mvp": true, "level": 81, "baseExp": 218089, "jobExp": 167053, "mvpExp": 109044, "hp": 668000, "def": 379, "mdef": 45, "attack": 2520, "str": 120, "agi": 125, "vit": 30, "int": 85, "dex": 186, "luk": 85, "race": "Demon", "size": "Large", "property": "Dark", "propertyLevel": 3, "res": 0, "mres": 0 } ``` -------------------------------- ### GET /effects/stones.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Retrieves the graphic-stone catalogue. Each entry contains the stone's item id and its effect bundle key. Only stones that play a .str file are included. ```APIDOC ## GET /effects/stones.json ### Description Retrieves the graphic-stone catalogue. Each entry contains the stone's item id and its effect bundle key. Only stones that play a .str file are included. ### Method GET ### Endpoint /effects/stones.json ### Response #### Success Response (200) - **items** (array) - List of graphic stones - **id** (string) - Stone's item id - **effect** (string) - Bundle key for the effect #### Response Example { "items": [ { "id": "example_stone_id", "effect": "example_effect" } ] } ``` -------------------------------- ### GET /image Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Renders a sprite based on query parameters. Supports still images, animations, and various customization options including headgear, palettes, and fan-made skin tones. ```APIDOC ## [GET] /image ### Description Renders a sprite. Every meaningful render parameter is available as a query parameter. ### Method GET ### Endpoint /image ### Parameters #### Query Parameters - **job** (comma-separated IDs) - Required - e.g. `job=1002` or `job=1002,1003` - **action** (integer) - Optional - Animation/action index. Its presence (without `frame`) yields an animation. - **frame** (integer) - Optional - A specific frame → a still image. `-1` = all frames (animation). - **gender** (`male`/`female` or `1`/`0`) - Optional - Default male. - **head** (integer) - Optional - Player head id. - **outfit** (integer) - Optional - Alternate outfit (`0` = default). - **headgear** (comma-separated ints) - Optional - Up to 3 view ids. Client item metadata determines their equipment slots; for unknown or ambiguous views, supply upper, middle, lower order with `0` for an empty slot, e.g. `headgear=4,125`. A **hat-effect** costume (`1500` *Fúria dos Shuras*, the only one the client ships today) has a blank accessory sprite and its visual in a separate looping sprite the client plays at the character's head; the renderer composites that automatically, and its longer timeline sets the animation's length. - **headgearBehind** (comma-separated ints) - Optional - **Usually unnecessary** — whether an effect headgear (aura/halo/the Sun God's Ornament `2669`) draws behind the character is decided automatically per direction from the client's layer-priority table. This param is a manual override that forces the listed ids behind in every direction (for accessories the client table doesn't cover). - **garment** (integer) - Optional - - **weapon** (integer) - Optional - - **shield** (integer) - Optional - - **bodyPalette** (integer) - Optional - `-1` = standard. - **headPalette** (integer) - Optional - `-1` = standard. - **skinTone** (`1`–`4` or `default`) - Optional - **Fan-made — see below.** `1` (the default) is the untouched original; `2`–`4` are progressively deeper tones. - **skinColor** (hex `RRGGBB`) - Optional - **Fan-made — see below.** A custom skin colour, e.g. `skinColor=8a5a3b`. A full 8-step ramp with the sprite's own shading is generated from it, not a flat fill. Mutually exclusive with `skinTone`. - **headdir** (`straight`/`left`/`right`/`all` or `0`/`1`/`2`/`3`) - Optional - Default all. For stand/sit, `straight`/`left`/`right` pin the head to that facing across the whole animation (the body still animates); `all` cycles the head through directions. - **madogearType** (`robot`/`suit` or `0`/`2`) - Optional - - **enableShadow** (boolean) - Optional - `true`/`false`. - **canvas** (string) - Optional - `WxH±X±Y`, e.g. `canvas=200x200+75+175`. - **outputFormat** (`png`/`zip` or `0`/`1`) - Optional - Default `png`. `zip` returns a ZIP of PNGs. ### Request Example ``` /image?job=1002 ``` ### Response #### Success Response (200) - Returns the rendered image (PNG or ZIP) based on `outputFormat`. #### Response Example (Image data) ### Error Handling - Missing or malformed `job`/parameter returns `400`. - Render failure (e.g. a job whose sprite isn't in the extracted assets) returns `500`. ``` -------------------------------- ### GET /maps/{map}/{map}.gat|gnd|rsw Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns raw geometry binaries for a specific map, including altitude, ground mesh, and world objects. The file type is specified by the extension. ```APIDOC ## GET /maps/{map}/{map}.gat|gnd|rsw ### Description Returns raw geometry binaries for a specific map. The extension determines the type: `.gat` for altitude, `.gnd` for ground mesh, `.rsw` for world objects. ### Method GET ### Endpoint /maps/{map}/{map}.gat|gnd|rsw ### Parameters #### Path Parameters - **map** (string) - Required - Map name (lowercase slug). - **extension** (string) - Required - One of `gat`, `gnd`, or `rsw`. ### Response #### Success Response (200) - Binary data of the geometry file. #### Response Example Binary data ``` -------------------------------- ### GET /maps/{map}/manifest.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns the asset manifest for a specific map, including geometry files, models, textures, water, UI, fog, and effects. The manifest references shared blob paths for de-duplicated assets. ```APIDOC ## GET /maps/{map}/manifest.json ### Description Returns the asset manifest for a specific map, including geometry files, models, textures, water, UI, fog, and effects. ### Method GET ### Endpoint /maps/{map}/manifest.json ### Parameters #### Path Parameters - **map** (string) - Required - Map name (lowercase slug, e.g., `prontera`). ### Response #### Success Response (200) - **files** (object) - Geometry files (e.g., `.gat`, `.gnd`, `.rsw`). - **models** (object) - Model resources mapped to shared blob paths. - **textures** (object) - Texture resources mapped to shared blob paths. - **water** (object) - Water resources mapped to shared blob paths. - **ui** (object) - UI resources mapped to shared blob paths. - **fog** (object, optional) - Fog parameters: `near`, `far`, `color` (array of 3 numbers), `factor`. Present only for maps listed in `data/fogparametertable.txt`. - **effects** (array, optional) - In-world effects placed by the map's `.rsw`. Each effect has `id`, `pos` (array of 3 numbers), and optional fields depending on type. #### Response Example { "files": { "gat": "prontera.gat", "gnd": "prontera.gnd", "rsw": "prontera.rsw" }, "models": { "model1": "../_m/abcdef1234567890.rsm" }, "textures": { "tex1": "../_t/abcdef1234567890.png" }, "water": { "frame1": "../_w/abcdef1234567890.jpg" }, "ui": { "cursor": "../_u/abcdef1234567890.png" }, "fog": { "near": 10, "far": 100, "color": [255, 255, 255], "factor": 0.5 }, "effects": [ { "id": 109, "pos": [x, y, z], "str": ["bubble1", "bubble2", "bubble3", "bubble4"], "delay": 0, "param": [0, 0, 0, 0] } ] } ``` -------------------------------- ### GET /icons/{type}/{name}.png Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Serves a static image extracted from the client GRF. The endpoint returns 404 until the --icons extraction step is run. Supports various types including item, collection, skill, job, status, and ui. ```APIDOC ## [GET] /icons/{type}/{name}.png ### Description Serves a static image extracted from the client GRF. The endpoint returns 404 until the --icons extraction step is run. Supports various types including item, collection, skill, job, status, and ui. ### Method GET ### Endpoint /icons/{type}/{name}.png ### Parameters #### Path Parameters - **type** (string) - Required - The type of icon: `item`, `collection`, `skill`, `job`, `status`, or `ui`. - **name** (string) - Required - The identifier for the icon (e.g., item id, skill id, job id, status id, or client filename for ui). ### Request Example ``` /icons/item/501.png /icons/collection/501.png /icons/skill/28.png /icons/job/4252.png /icons/status/883.png /icons/status/876.png /icons/ui/bt_female_on.png ``` ### Response #### Success Response (200) - Returns the image with immutable cache headers, ETag/304 support, and wildcard CORS. #### Error Response (404) - Returned if the icon is not found or the extraction step has not been run. ``` -------------------------------- ### GET /effect/str Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Parses a .str effect file from the extracted GRF tree and returns its structure as JSON, including layer textures, animations, and blend mode information. The file parameter is relative to data/texture/effect/ and may omit the .str suffix. ```APIDOC ## GET /effect/str ### Description Parses a .str effect file from the extracted GRF tree and returns its structure as JSON, including layer textures, animations, and blend mode information. The file parameter is relative to data/texture/effect/ and may omit the .str suffix. ### Method GET ### Endpoint /effect/str ### Parameters #### Query Parameters - **file** (string) - Required - The name of the .str file, relative to data/texture/effect/, may omit the .str suffix. ### Response #### Success Response (200) - **fps** (number) - Frames per second - **maxKey** (number) - Maximum keyframe - **layers** (array) - Array of layer objects, each containing: - **textures** (array of strings) - Texture names relative to data/texture/effect/ - **animations** (array) - Animation data with fields: frame, type, pos, uv, xy, aniframe, anitype, delay, angle, color, srcalpha, destalpha, mtpreset #### Response Example { "fps": 30, "maxKey": 10, "layers": [ { "textures": ["stormgust.png"], "animations": [ { "frame": 0, "type": 0, "pos": [0, 0], "uv": [0, 0, 1, 1, 0, 0, 1, 1], "xy": [0, 0, 100, 100, 0, 0, 100, 100], "aniframe": 0, "anitype": 0, "delay": 100, "angle": 0, "color": [255, 255, 255, 255], "srcalpha": 0, "destalpha": 1, "mtpreset": 0 } ] } ] } ``` -------------------------------- ### GET /effect/texture Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Serves a single .str layer texture as an RGBA PNG, with magenta colorkey converted to alpha and transparent RGB bled outward to prevent bilinear fringes. The file parameter is relative to data/texture/effect/ and may omit the extension. ```APIDOC ## GET /effect/texture ### Description Serves a single .str layer texture as an RGBA PNG, with magenta colorkey converted to alpha and transparent RGB bled outward to prevent bilinear fringes. The file parameter is relative to data/texture/effect/ and may omit the extension. ### Method GET ### Endpoint /effect/texture ### Parameters #### Query Parameters - **file** (string) - Required - The name of the texture file, relative to data/texture/effect/, may omit the .bmp or .tga extension. ### Response #### Success Response (200) - **body** (binary) - The texture as an RGBA PNG image. #### Response Example [Binary PNG data] ``` -------------------------------- ### GET /raw/items.json Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Returns every item as a flat JSON array sorted by id. Each item includes fields such as id, name, slots, aegisName, resourceName, description, view, spriteView, spriteBlank, viewKind, equipSlots, and costume. Items that are boxes also include a 'contains' field. ```APIDOC ## GET /raw/items.json ### Description Returns every item as a flat JSON array sorted by id. Each item includes fields such as id, name, slots, aegisName, resourceName, description, view, spriteView, spriteBlank, viewKind, equipSlots, and costume. Items that are boxes also include a 'contains' field. ### Method GET ### Endpoint /raw/items.json ### Response #### Success Response (200) - **id** (number) - Item ID. - **name** (string|null) - Bare display name; null if no display name. - **slots** (number) - Number of slots. - **aegisName** (string) - Aegis name. - **resourceName** (string) - Resource name. - **description** (string) - Description. - **view** (number) - Literal client ClassNum. - **spriteView** (number) - The view to render with; falls back to accessory/robe name tables. - **spriteBlank** (boolean) - True if the sprite renders as nothing. - **viewKind** (string|null) - "headgear", "garment", or null. - **equipSlots** (string) - Equip slot information. - **costume** (boolean) - Whether the item is a costume. - **contains** (array) - Only on the 1,498 box items; contents of the box. #### Response Example [ { "id": 1, "name": "Sword", "slots": 3, "aegisName": "Sword", "resourceName": "Sword", "description": "A basic sword.", "view": 100, "spriteView": 100, "spriteBlank": false, "viewKind": "headgear", "equipSlots": "weapon", "costume": false } ] ``` -------------------------------- ### Manifest effects array with four renderable kinds Source: https://github.com/adsonpleal/ragassets/blob/main/README.md JSON example of the manifest's effects array, showing one entry per placed in-world effect. Includes STR, sprite, procedural FUNC, and parametric emitter entries. Positions are not deduplicated; the client proximity-culls. ```json "effects": [ { "id": 109, "pos": [x, y, z], "str": ["bubble1","bubble2","bubble3","bubble4"], "delay": 0, "param": [0,0,0,0] }, { "id": 47, "pos": [x, y, z], "sprite": "torch_01", "delay": 125, "param": [1,0,0,0] }, { "id": 45, "pos": [x, y, z], "delay": 500, "param": [0.1,0.1,0,0] }, { "id": 974, "pos": [x, y, z], "delay": 1, "param": [0,0,0,0], "emitter": { "dir1": [-3,-5,-3], "dir2": [5,0,5], "gravity": [0.7,-2,0.7], "color": [255,255,255,255], "rate": [1,3], "size": [6,8], "life": [3,4], "texture": "../_t/.png", "speed": [0], "srcmode": [5], "destmode": [2], "maxcount": [20], "zenable": [1] } } ] ``` -------------------------------- ### Provision Oracle Cloud box (tools/provision-oracle.sh) Source: https://github.com/adsonpleal/ragassets/blob/main/README.md Idempotent provisioning script for the production Oracle Cloud ARM box. Safe to re-run; prints what it cannot do. ```bash tools/provision-oracle.sh # idempotent; prints what it cannot do ```