Due to the amount of interest in adding pokemon to the source, I have decided to create a little bit of documentation to help explain modify the source to add and modify formats and Pokemon.
Table of Contents
#!/bin/bash | |
# Dependencies: speedtest-cli, mtr, dnsutils (install with: sudo apt install speedtest-cli mtr dnsutils) | |
# Directory to store JSON files | |
json_dir="/path/to/json_directory" | |
# JSON file prefix | |
json_prefix="network_metrics" |
<!-- Pokemon Stat Table generator example by dtalley11 --> | |
<html> | |
<head> | |
<style type="text/css"> | |
td.statname {text-align: right; padding-right: 5px;} | |
table.stattable {border: 1px solid black;} | |
td.statvalue {text-align: center;} | |
table.stattable, td.statname, td.statvalue {border: 1px solid black;} | |
</style> | |
<script language="javascript" type="text/javascript"> |
octoshock: { | |
viableMoves:{ | |
"hurricane":1, | |
"brine":1, | |
"octazooka":1, | |
"zapcannon":1, | |
"hydropump":1, | |
"focusblast":1, | |
"aquajet":1 | |
}, |
infelino:{ | |
learnset:{ | |
bite:["6L1"], | |
leer:["6L1"], | |
quickattack:["6L5"], | |
pursuit:["6L5"], | |
firefang:["6L13"], | |
thunderfang:["6L13"], | |
icefang:["6L13"], | |
defog:["6L20"], |
adametal: { | |
viableMoves:{ | |
"geargrind":1, | |
"ironhead":1, | |
"earthquake":1, | |
"dragonclaw":1, | |
"irontail":1, | |
"outrage":1, | |
"shadowclaw":1, | |
"stoneedge":1 |
/********************************************************************************* | |
* Join Messages | |
* This file uses key:value pairs to specify a join message for each channel | |
* To add a message, simple create a new pair in the form of 'channel': 'message'. | |
* | |
* The protocol-doc.md file documents many aspects of the chat protical, | |
* including using HTML in a message. | |
* | |
* If you change this file, and want the changes to take effect, | |
* Simply type the command: /hotpatch chat as an admin in the chat, and it should |
'|html|<div class="infobox" style="border-color:blue"><center><img src="http://i.imgur.com/RKZTxPs.png"><br />' + | |
'<b><u>Welcome to the Frost Server!</u></b><br />' + | |
'Home of many leagues for you to join or challenge, battle users in the ladder or in tournaments, learn how to play Pokemon or just chat in lobby!<br /><br />' + | |
'Make sure to type <b>/help</b> to get a list of commands that you can use and <b>/faq</b> to check out frequently asked questions.<br /><br />' + | |
'To get a chatroom for your league, please talk to an admin (~) to receive one<br /><br />' + | |
'Feel free to jam out with Frost <a href="http://plug.dj/frost-ps/">here</a>!<br /><br />' + | |
'<b>Frost</b>-<blockquote><em>Promoting your league, one challenger at a time</em></blockquote></div></font></center>' |
/** | |
* System commands | |
* Pokemon Showdown - http://pokemonshowdown.com/ | |
* | |
* These are system commands - commands required for Pokemon Showdown | |
* to run. A lot of these are sent by the client. | |
* | |
* If you'd like to modify commands, please go to config/commands.js, | |
* which also teaches you how to use commands. | |
* |
"opportunist": { | |
desc: "When the user uses a consumable, it regenerates once", | |
id: "opportunist", | |
name: "Opportunist", | |
onResidualOrder: 26, // Don't know what this is for | |
onResidualSubOrder: 1, // This either | |
onResidual: function(pokemon) { | |
if (!pokemon.item) { | |
// If the pokemon does not have an Item (e.g. it got consumed) Will probably have to figure somethign out for if the pokemon didn't have an iten to start | |
pokemon.setItem(pokemon.lastItem); |
Due to the amount of interest in adding pokemon to the source, I have decided to create a little bit of documentation to help explain modify the source to add and modify formats and Pokemon.
Table of Contents