[Battle Scripting] Nightfall's Battle Script

Discussion in 'Server and Client Scripting' started by Nightfall Alicorn, Apr 22, 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
    Nightfall's Battle Script

    Thought I post my battle script here for others to edit and use.

    Examples:
    Battle intro message.

    Nightfall Alicorn: [Bot]: Let's go.
    Your last Pokemon remaining message. (Like gym leaders do, in-game.)
    Nightfall Alicorn: [Bot]: Not over yet.
    Your opponent on last Pokemon remaining message.
    Nightfall Alicorn: [Bot]: Good game.
    Greet the spectators message. (Only greets that person once to prevent spammers.)
    Nightfall Alicorn: [Bot]: Hi <user name>.

    Installing & Setting Up the Script
    The instructions on how to install and setup the script are found in the code in the links below.

    Main: http://pastebin.com/a2f3ZRJ8
    Raw: http://pastebin.com/raw.php?i=a2f3ZRJ8

    Questions & Answers:
    Q: What does this script do?
    A: It's a script that automatically sends messages in battle.

    Q: Where are the instructions to install and setup the script?
    A: They are found at the top of the script's code itself, with the settings you can edit under it. Saves users having to rapidly find this page.

    Q: Can I use samples of your code?
    A: Of course. I be happy if you can make something good with it.

    Q: The script isn't working.
    A: There are many reasons for this, here's the main ones:
    - Make sure you had copied all the raw code given from the link, even the instructions part.
    - If you had opened 2 server tabs on PC, try closing and opening Pokemon Online.
    - Make sure you pasted the code in the client script window and not the battle one by mistake.
    - Make sure Safe Scripts is off and Show Warnings is on, in the plugin script window, since Safe Scripts can disable functionality I think.
    - Are you getting a code line error? If so check that line of the code. You may had deleted something you shouldn't had.