• My Pages
  • Comments
  • Add Link
  • Subscribe
  • Subscribe User
  • Edit (GUI)
  • Edit (Text)
  • Rename Page
  • Copy Page
  • Load Page
  • Save Page
  • Delete Page
  • Attachments
  • Check Spelling
  • Diffs
  • Info
  • Revert to this revision
  • XML
  • Render as Docbook
  • Print View
  • Raw Text
  • Delete Cache
  • Like Pages
  • Local Site Map
  • Remove Spam
  • Package Pages
  • Sync Pages
    • Diff for "AutoRunScript"
    Differences between revisions 2 and 3
    Revision 2 as of 2014-08-12 16:30:26
    Size: 733
    Editor: Inanna
    Comment:
    Revision 3 as of 2014-12-31 18:13:53
    Size: 1156
    Editor: Inanna
    Comment:
    Deletions are marked like this. Additions are marked like this.
    Line 5: Line 5:
    Your script contained in this file can be anything. Some common uses are to set map colors, tell [[NEATO]] you're connected, auto-use common items like amulets or holiday promo items, and to have alts report back to a main account their city and account status.  Your script contained in this file can be anything. Some common uses are to set map colors, tell [[NEATO]] you're connected, auto-use common items like amulets or holiday promo items, and to have alts report back to a main account their city and account status.

    Keep in mind this runs in EVERY city at startup. If you want to use items or perform account maintenance type stuff, you will probably want those things only running from 1 city. You can add something like this to your script at start...

     . {{{
    if city.timeSlot != 0 goto allCities

    //put your stuff to perform here only in one city

    label allCities

    // put your stuff to perform here for all cities
    }}}


    This file is automatically read and loaded at bot startup if the "run scripts" box is checked in the Director or on the bot's login screen. Anything in this file will be ran as a script in each city in the bot. The file must be located in the same folder as the bot executable file in order for it to run it.

    The -runscript Startup Parameter will also call and load this file if it's used without a file name after it.

    Your script contained in this file can be anything. Some common uses are to set map colors, tell NEATO you're connected, auto-use common items like amulets or holiday promo items, and to have alts report back to a main account their city and account status.

    Keep in mind this runs in EVERY city at startup. If you want to use items or perform account maintenance type stuff, you will probably want those things only running from 1 city. You can add something like this to your script at start...

    • if city.timeSlot != 0 goto allCities
      
      //put your stuff to perform here only in one city
      
      label allCities
      
      // put your stuff to perform here for all cities


    CategoryExtras

    AutoRunScript (last edited 2017-12-21 04:02:23 by Inanna)