1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Guest, PO has ceased our separate tiering and adopted Smogon tiers for SM. More information and updates here.

    Dismiss Notice

[Client Scripting] Nova's Client Script Beta v2

Discussion in 'Server and Client Scripting' started by Nightfall Alicorn, Jun 24, 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
    Nova's Client Script Beta v2
    ~ Introduction~
    Lots of time as passed, many changes, fixes, improvements and addons. After so long, it is now possible to install plugins, even make your own. Welcome to version 2.

    ~ Features ~

    * Clickables *
    • Help Links ~ help groups are now clickable links, even the plugins.
    • Time Stamps ~ quicker access to commands on a target user such as: kicks, PM ignore and spectating battle.
    ♬ Some fun commands ♬
    • Reverse ~ +Nightmare Moon: dlrow olleh
    • Sing ~ +Nightmare Moon: ♩ Good morning USA ♩ I gotta feeling it's going to be a wonderful day ♬
    • Stick ~ *** Nightmare Moon poked Fuzzysqurl with their stick.
    ♦ Customization ♦
    • Auth Symbols ~ don't like +? Maybe ~? You choose.
    • Bot Color ~ don't like server or my bot color? Feel free to change.
    • Bot Name ~ ±ClientBot boring? How about ±Charizard?
    • Bot Symbol ~ ±? Old style ++?
    • Command Symbols ~ -? Nah. Maybe ~? Or .? Even //?
    • Flash Color ~ make flashes nicer to your satisfaction.
    • Settings Export ~ backup your settings and load with import.
    ☺ Social ☺
    • Friends List ~ "keep your friends close."
    • Ignore List ~ "and your enemies even closer."
    • Stalk Words ~ get flashed by nicknames or stalk what others say.
    + Plugins +
    • Install What You Want ~ choose a variety of available plugins and remove the ones you don't use.
    • Create ~ Make your own plugin. Can be a channel game or helper. Although I hadn't included a tutorial yet. Easy to just download one and use it as a base. Requires learning of PO scripting.
    And much more...

    ~ How to Install ~
    ~~~~ [Part 1/3] ~~~~

    [​IMG]
    1. Click on Plugins on the menu bar.
    2. Click Plugin Manager in the drop-down menu.
    3. Tick the Script Window check-box.
    4. Click OK.
    5. Click on Plugins again on menu bar.
    6. Click Script Window in the drop-down menu.
    ~~~~ [Part 2/3] ~~~~

    [​IMG]
    1. Click the Download link below this thread.
    2. Copy all the text in the page.
    3. Paste the code inside the Script Window's Client scripts tab.
    4. Un-tick Safe Scripts. (The script does not contain anything bad. It's just needed for saving and loading settings next time you log on.)
    5. Tick Show Warnings.
    6. Click OK.
    ~~~~ [Part 3/3] ~~~~

    [​IMG]

    • If you are already logged on a server. You should see a message from ±ClientBot.
    • Use -help to display the list of commands available.
    • If your script isn't working. Check out the Troubleshooting section below.
    • If your updating you current script. Be sure to delete everything in the Script Window first before copying the new one. Alternatively you can use -updatescript command.

    ~ Downlaod ~
    Q: Which one do I download?
    • [Standard] - This one allows you to manually update it when you prefer to.
    • [Auto] - This one will automatically download and run the latest in memory when you log on or click OK, with this script, in the Script Window.
    Note: You can switch between them any time by updatescript command.

    ~ Troubleshooting ~
    Script won't load. / Commands won't work.
    There are many reasons for this but these are the most common.
    • Make sure you had copied all the code from the download link into the Script Window and had clicked OK.
    • Try closing the client and re-log on. If you had multiple server tabs open before, it usually causes issues updating the script.
    Getting script errors.
    This can happen from time to time, specially with some script updates that change the settings file. Usually just reopening the Script Window and clicking OK solves this. If you've already tried this. You can report a bug here but don't forget to specify what command isn't working.

    ~ Bug Report Guidelines ~
    Before you report any bugs here. Please make sure you're running the latest version of the script. You can now use -updatescript command to automatically download the latest available if your running v1.03 or newer. Note that you can see the current version you're using at the top of the -help list if you're using v1.15 or newer.

    If you are on the latest version and the issue still occurring. Copy and paste the error message, if given one, and give instructions how to reproduce it.
     
    Last edited: Mar 25, 2016
    Edna, Strudels and Zoroark like this.
  2. SongSing

    SongSing KILLL

    Joined:
    Jan 2, 2013
    Messages:
    641
    Likes Received:
    191
    PO Trainer Name:
    SongSing
    songsing suggestions:
    eval should give u the result of the evaluation

    u should be able to change the command symbol w/ a command
    let the pocket monster u see at beginning be customizable like mayb i wanna see celebi

    Code (javascript):
    1. if (SETTINGS.commandSymbolOwner.indexOf(sentMessage.charAt(0)) !== -1) {
    im guessing this is for multiple command symbols? it makes it hard if someone wants a >1 char symbol tho, could just use an array
    multicommand looks cool, im assuming u put it on timer so it doesnt freeze up client with big lists, maybe 2 seconds is too long tho (allow them to choose interval mayb?)

    the tour notification thing is cool
    maybe take away the prefix for global messag
    ur random po thing stops at 1000, thats ok for tihngs but pokenums go like way up like 1769673 is a pocket monster forme unown-?
     
    Nightfall Alicorn likes this.
  3. 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
    Thanks for your suggestions, mate.

    Okay, I've added these to my to-do list:
    • Replace command symbol by a command.
    • Ability to change Pokemon Icon during initialize.
    Possible ones:
    • Multiple command symbols for commands.

    I've added eval for advanced users and debugging script purposes.

    There are 2 command symbols. One for script owner ( - ) and other ( ? ) for others to use. However other don't have any commands yet. I need to think how to do that. But the command handler ready if someone wants to add their own public commands. Having more than 1 symbol (// for example) I may have a go at.

    I don't think I be changing this one. After testing, me and a friend agreed that 2 seconds is safe to avoid going overactive due to large list. It's setup so you can't have 2 multi commands running same time.

    Not sure about this one. Unless I make a command to replace the prefix.

    I probably remove the limit. I only added it as a precaution to prevent infinite loop crashes. But eventually there probably be more than 1000 Pokemon some point. I never thought about the forms to be honest.
     
  4. SongSing

    SongSing KILLL

    Joined:
    Jan 2, 2013
    Messages:
    641
    Likes Received:
    191
    PO Trainer Name:
    SongSing
    yea but if someone wants to like -eval 2+2 or somethin it wont give the mresult
    when you do the eval just store it to a var like var res = eval(message) and print res so it give u output

    Code (javascript):
    1. if (SETTINGS.commandSymbolOwner.indexOf(sentMessage.charAt(0)) !== -1) {
    this should be like
    Code (javascript):
    1. if (SETTINGS.commandSymbolOwner === sentMessage.substr(0,  SETTINGS.commandSymbolOwner.length)) {
     
    Nightfall Alicorn likes this.
  5. 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
    After many updates. We are now on v1.16. So far:
    • All the suggested to-do list of new features had been added.
    • Commands and functions had been improved as well as shortened in code.
    • Easier method of updating the script by -updatescript command has been added.
    I wasn't sure this script would had done this well but it has exceeded my expectations. If anyone got anymore features they want me to add. Don't be afraid to ask here. In the meantime I add more features if I come across any new ideas myself.
     
  6. 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
    v2 Finally Released

    After many many months of silence here. I've been doing changes bit by bit and experimenting. Stuff been re-coded, stuff shortened, stuff improved. You name it. I've been after getting this update done for a long time and here it is.

    I've re-written the features of the first post here and added noticeable changes. Enjoy.


    You need to re-download script above. Links are now updated for new version.

    Settings from v1 will be lost. However, the new version now allows exporting of your settings by a given code to avoid this issue in the future. (Thanks to Edna for the idea.)
     
    Jethalal likes this.
  7. Zoroark

    Zoroark Aka Flare Forum Moderator Server Moderator Forum Moderator Server Moderator

    Joined:
    Jan 29, 2013
    Messages:
    873
    Likes Received:
    1,161
    PO Trainer Name:
    SkyPhoenix / Zoroark
    Nice job man, you're always adding fun stuff to your script. :]
     
    Nightfall Alicorn likes this.
  8. 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
    Voltorb (Hot Potato) game added to plugins.

    Use -pluginserver to download and play. Commands are added to ?help voltorb / -help voltorb. You need to use -botchannel first. Enjoy.
     
  9. 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
    Update
    • Added missing credits command I thought I added before.
    • Flash All which flashes everyone in the current channel. Safety confirmation added for official channels.
     
    Zoroark likes this.
  10. 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
    Update
    • Fixed minor bugs in code.
    • Added changescript so you choose between bumble, confetti crystal scripts.
    • More info in credits added.