Skip to content

Instantly share code, notes, and snippets.

View Tatuy's full-sized avatar

Jesús Rafael Zúñiga Castro Tatuy

View GitHub Profile
@Tatuy
Tatuy / convert.js
Created January 4, 2020 13:13 — forked from peonso/convert.js
convert maps to OpenTibia Sprite Pack
// A tool to convert OpenTibia maps to https://github.com/peonso/opentibia_sprite_pack
// by Peonso
// dependencies NodeJS and https://github.com/Inconcessus/OTBM2JSON
// node --max-old-space-size=4096 convert.js
var start = Date.now();
const otbm2json = require("./OTBM2JSON/otbm2json");
const OLD_MUDWALLS = [356,357,358,359,360,361,362,363,364,365,366,367,371,372,373,374,375,376,377,378,379,380,381,382];
const OLD_MUDTILE = 351;