[Server Scripting] Hot Potato Game (Server Version)

Discussion in 'Server and Client Scripting' started by Nightfall Alicorn, Apr 30, 2015.

  1. Nightfall Alicorn

    Nightfall Alicorn Left Pokémon Online, most likely not coming back.

    Joined:
    Oct 15, 2013
    Messages:
    491
    Likes Received:
    171
    PO Trainer Name:
    Nightmare Moon
    This script was converted from client to server. The original client script version can be found here:
    http://pokemon-online.eu/threads/hot-potato-game.30921/

    This is basically a server channel script game of pass the bomb which is actually a potato. The objective of this game is to make sure you're not the person holding the potato when it explodes or you get kicked from the channel.

    Download Location
    Main: http://pastebin.com/v8e3c2fV
    Raw Code: http://pastebin.com/raw.php?i=v8e3c2fV

    How to Install
    1. This script was written to work with the official Pokemon Online server scripts which can be found here: https://github.com/po-devs/po-server-goodies
    2. Copy the code from the download link and paste it into a notepad application.
    3. Save it as "hotpotatogame.js" and set type to "All Files", or "JavaScript" if the app supports the extension. Encoding has to be ANSI also.
    4. In the Pokemon Online application folder. Move the saved js file to app_directory/scripts/ folder containing the other support scripts.
    5. In the app_directory folder. Open scripts.js.
    6. Locate the plug-ins array (which should be on line 23) (Plugins: ["mafia.js", "amoebagame.js", "tournaments.js", "tourstats.js", "trivia.js", "tours.js", "newtourstats.js", "auto_smute.js", "battlefactory.js", "hangman.js", "blackjack.js", "mafiastats.js", "mafiachecker.js", "hotpotatogame.js"],) and add "hotpotatogame.js".
    7. Make sure the script is saved then restart the server app for changes to take effect.
    8. Locate the new permanent channel called Hot Potato Game and have fun.
    I've asked official server staff here if it could be added to the main server but I think the script was rejected. So I've posted it here for others to use.

    The script should be error free. I've tested it best as I can on my own server.

    Any bugs or errors, or even ideas on improvements, post here.