A pokemon mmo using pokemonshowdown's server.
PART 1 - SETUP POKEMON SHOWDOWN
- Download & Install Pokemon Showdown
- In the root directory add bot.js & mmo.js from this repo's "serverpsjs" folder
- Add these lines to the very end of the "chat-commands.js" file
- const Bot = require('./bot').setup(exports.commands);
- const MMO = require('./mmo').setup(exports.commands);
- Replace sockets.js from the root with the "serverpsjs" folders's sockets.js
Part 2 - SETUP PSMMO
- Download PSMMO
- Add to a webserver OR add to /static/ folder in Pokemon-Showdown
- if using /static/ set the port = 80 in vars.js
- Change pokemon showdown server @ vars.js and change vars.server to your ip address && vars.port, if needed
Changes to Pokemon Showdown:
- bot.js - comes with bot that battles
- mmo.js - mmo commands (encounter pokemon, moving in maps, chat, etc.)
- sockets.js - snippet of code for bot.js to work (hackish)
- Change its name on client @ vars.js - vars.wildPokemonBot
- Change its name on server @ bot.js - bot.name
Don't forget to run the command below on your server, otherwise nothing will work. /makechatroom psmmo