Ballistic Mystix APIs

Fork me on GitHub

Character rendering

http://api.bmsite.net/char/render?race=fy&gender=m
http://api.bmsite.net/char/render/:type/:width?race=fy&gender=m

This will allow to render character with items (no particle effects)

If no type is selected and 3d rendering fails, then HTTP status code 203 with 2d rendered images will be returned.

Optional parameters:

Avatar appearance

Armor, contains sheetid and item color (eg, chest=iczalv_3.sitem/1)

Items, contains sheetid (eg, handl=icmm1ss_2.sitem)

If requested item or haircut is not found (or possibly can't be used by race), then default item is used instead.

Advanced parameters

Normal parameters will override these.

Rendering service code is available on github (php client, c++ server).

Examples

2d rendered image

3d rendered image (45deg angle)

Maps (icon)

http://api.bmsite.net/maps/icon/:size/:color/:name.png

Maps icon code is available on github.

Maps javascript

http://api.bmsite.net/maps/:version/map.js

Where

If version is not set, then latest version is provided automatically.

var map1 = Ryzom.map('maps-example1');
map1.addControl(new L.Control.MousePosition());

var fh = [17162, -32906];
var marker = L.marker(fh, {icon: Ryzom.icon('npc', 'FF9', 24), title: 'Hello!'}).addTo(map1);
marker.bindPopup('Hello!');
map1.setView(fh, 8);

var map2 = Ryzom.map('maps-example2', { rzMode: 'server' });
map2.addControl(new L.Control.MousePosition());

var map3 = Ryzom.map('maps-example3', { rzSatellite: false });
map3.addControl(new L.Control.MousePosition());

Maps javascript code is available on github.

Maps tiles

http://api.bmsite.net/maps/:mode/:name/:z/:x/:y.jpg

Where

Translated text tiles are in png format so change .jpg to .png

All images are 256x256px. Base zoom level is 10 where 1px = 1meter

Maps tiles generator code is available on github.

Static maps

http://api.bmsite.net/maps/static?parameters

Where parameters are

Static maps generator code is available on github.

Weather

http://api.bmsite.net/atys/weather?continent=tryker,matis&cycles=5&offset=2

Parameters

Returns JSON

{
    "version": "1.0",
    "hour": "372877.079",
    "cycle": 124292,
    "continents": {
        "zorai": {
            "124292": {
                "cycle": 124292,
                "condition": "good",
                "value": "0.225",
                "text": "uiFair"
            }
        }
    }
}
        

Where

Ryzom weather code is available on github.