Kongregate Legacy of a Thousand Suns Raid Link Helper for Chat

By doomcat Last update Apr 4, 2013 — Installed 42,113 times.

Script Summary: (<i>AKA doomscript</i>)Raid links will display name, FS, OS/Target, can remove images, and more (user customizable). Raid links will refresh the game, not the whole page. All links posted to chat are remembered, and more!



Version: 1.1.22

Script homepage

Thumb
License: "Kongregate Legacy of a Thousand Suns Raid Link Helper for Chat" (henceforth known as "doomscript") is free to download and use unlimited times on unlimited devices. You're allowed to modify the script for personal use, but you need written permission from doomcat to distribute those modifications. If you plan to distribute doomscript in whole or in part, modified or not, as part of an application other than in userscript form, some fees may apply. Contact doomcat for pricing.
Warranty: This userscript comes with no assurance or guarantee of functionality, suitability, or other promise of working as you intend. doomcsript is provided as-is.

New Google Chrome Install Procedures! (See Below)



Report Bug / Request Feature

Important Links

Shortcut to this page: http://tinyurl.com/doomscript

Script source control: http://www.assembla.com/code/doomscript/subversion/nodes


Report bugs and request features in the official system, or on our chatzy page or send doomcat a profile whisper on Kongregate.

News:

April 4th: 1.1.22 - This version fixes the major issue with the script not starting based on some Kongregate HTML changes. It also adds the {size: #} filter to all filters, so /lcc {size: 10} should load all raids which can fit 10 players and /lcc {size: >100} should load all raids which fit 250 or 500 players. Fixed a couple other minor bugs with filters is less used commands. Added new /forum command which works the same as the /wiki command, except it searches the forums (Thanks to anonimmm for this contribution).

March 21st: 1.1.21 - The icons on the toolbar and menu got eaten by the image host. I've fixed the toolbar icons, but the menu images (gradients mostly) are still missing. Thanks to Solsund, we've been able to fix the Invalid Raid ID issue. Also, all filters should now accept a zone filter, like /lcc {zone: 4} or /raidstyle {zone: WR} + red + on black.

February 24th: 1.1.20 - This and the last version did a lot to clean up and streamline communication with CConoly through the /loadcconoly command.

February 13th: 1.1.18 - Other than one potential remaining bugfix for /updateraiddata receiving 403-Forbidden errors, doomscript is now out of active development. The script merge of SRLTSX and doomscript as well as quite a number of new and interesting features is now going to be the top scripting priority for Sycdan and me. This project is titled KongE, and it will consist of a combination of and updates to doomscript, SRLTSX, Raid Tools, SRDOTDX, QuickFriend, and a few other goodies.

What does this mean for you?
doomscript will still receive updates until KongE is fully deployed, and that timeline has shifted back a lot due to SReject no longer participating and my personal stuff. Therefore, we're still going to add new raids and world raids to doomscript as they come out for the forseeable future, but we do not plan to add any additional core features or fix any non-critical bugs. We hope that this means you'll get KongE that much faster, and we expect you'll be blown away by it. Thanks for all the support and 40,000 downloads, and everyone will be well informed as KongE is released.

Installation - INSTALL BUTTON IS GREEN NEXT TO SCRIPT TITLE, OTHERS ARE ADS!

Once you install the script, you must refresh the game page for it to take effect. To update the script, simply install it again. If you run into trouble updating, try removing the old script and then installing it fresh.

Chrome < v21 users: Click install link to the top right
Chrome v21+ users: Right click install link to the top right. Choose Save link as... and save the 124753.user.js file to your desktop. Go to Wrench Menu > Tools > Extensions in the browser. Drag the downloaded file onto the extensions page and accept the installation of the script. Delete the script from your desktop.
Additional Guide: How to make Chrome work like it did before

Firefox users: Install GreaseMonkey add-on. Restart your browser. Then click install link to the top right.
Opera users: Right-click the install link and "Save Target As" into your Opera userscript folder. Questions or Problems installing? Check the install tutorial or whisper doomcat on Kongregate.

How /loadcconoly a.k.a. /lcc works:

At this point, most people are aware and use the recent (since v1.1.17) /lcc command, but it seems to be a little misunderstood.

/lcc runs off of the kindness of CConoly.com. When you /lcc filter, it first downloads all alive raids, and those raids are then stored into your local script memory as seen raids (the same place that raids from chat go). After that, the script automatically runs /loadall filter with the filter you provided when you did /lcc. If the filter is blank, all seen raids will be joined. If the filter is !, no raids will be joined, otherwise all raids matching the filter will be joined. (See /seenraids below to find the filter format)

Examples:
Download Everything, Join all raids: /lcc
Download Everything, Join no raids: /lcc !
Download Everything, Join only NM Bashan, Missile, and Colossas: /lcc bashan|missile|colossa 4

Download Nothing, Join all raids: /loadall
Download Nothing, Join Telemachus and Void Killers: /loadall tele|void

Chat Commands

You type these into the Kongregate chat box just like you'd type /w name message. This is only a selection of the commands. Use the command below to get a complete list of commands in your script.

Command: /w RaidBot help or /raidhelp

Displays the script help

Command: /reload

Reloads the game without reloading the page

Command: /loadraid url

url - The url of a raid link that you want to load. It should load in the same window without refreshing just like clicking a link Loads the url without reloading the page

Command: /raid raidName difficulty

raidName - The name or partial name of the raid. If a partial name matches multiple raids, you'll get multiple results
difficulty - Optional. A number 1 to 4, where 1 is normal and 4 is nightmare. If no difficulty is provided, all 4 are shown.
Displays info about the raid

Examples:
/raid horror
/raid dule 4

Command: /raidformat newFormat

newFormat - Optional. The format that you'd like for your raid links to be displayed as.
The default format is {image} {visited} Raid: [{size}-{stat}-{difficulty}-{fs}] {name}
A popular short format is {visited} {diff} {name}
If newFormat is omitted, it will display the current format

If newFormat is reset, your format will revert to the default format

Format options (hover for description):
cache-state, cache-state-nice, state, status, cache-state-short, state-short, status-short, difficulty, diff, fs, fair, fairshare, health, id, image, line, name, os, optimal, short-name, shorter-name, shortest-name, size, stat, target, time, url,
/raidformat {image} {cache-state-short} {shorter-name} {line}[{size}-{diff}-{fs}-{os}]{line}{id} SRLTSX format:
/raidformat {visited} {name} - {diff} - {fs}/{os}

Command: /seenraids raidName difficulty {state: stateName} {age: ageFormat} {fs: fsFormat} {os: osFormat} {count: numResults} {page: pageNum}

raidName - Optional. The name or partial name of the raid. If a partial name matches multiple raids, you'll get multiple results
difficulty - Optional. A number 1 to 4, where 1 is normal and 4 is nightmare. If no difficulty is provided, all 4 are shown.
stateName - Optional. Should be either {state: seen} or {state: visited}
ageFormat - Optional. Should be like {age: <24h}><=10m}>= 1d}
fsFormat - Optional. Should be like {fs: <1M} or {fs: =200k} or {fs: >2M}
osFormat - Optional. Should be like {os: <1M} or {os: =200k} or {os: >2M}
numResults - Optional. Should be like {count:10} to limit to just 10 results
pageNum - Optional. Should be like {page: 2} to get second page of results. Each page has numResults results on it. If there's no page, you'll get the first page of results

Displays all raids you've seen linked to in chat for the past 200 hours that match your criteria

Examples:
Find all raids you've seen, but not visited
/seenraids

Find all raids you've seen, but not visited that you saw posted in the last 5 hours
/seenraids {age: <5h}

Find the first 10 results raids you've seen, but not visited that you saw posted in the last 5 hours that have FS < 1M
/seenraids {age: <5h} {fs:<1M} {count: 10}

Find all normal telemachus raids that you've visited before
/seenraids tele 1 {state:visited}

Find all void killer raids you've seen
/seenraids killer

Find all void nightmare vorden raids you've seen
/seenraids vorden 4

Command: /clearraids raidName difficulty {state: stateName} {age: ageFormat} {fs: fsFormat} {count: numResults} {page: pageNum}

raidName - Optional. The name or partial name of the raid. If a partial name matches multiple raids, you'll get multiple results
difficulty - Optional. A number 1 to 4, where 1 is normal and 4 is nightmare. If no difficulty is provided, all 4 are shown.
stateName - Optional. Should be either {state: seen} or {state: visited}
ageFormat - Optional. Should be like {age: <24h}><=10m}>= 1d}
fsFormat - Optional. Should be like {fs: <1M} or {fs: =200k} or {fs: >2M}
numResults - Optional. Should be like {count:10} to limit to just 10 results
pageNum - Optional. Should be like {page: 2} to get second page of results. Each page has numResults results on it. If there's no page, you'll get the first page of results

Clears all raids from script memory that match your criteria

Examples:
Clear all raids you've seen, but keep ones visited
/clearraids {state:!visited}

Clear all normal telemachus raids that you've visited before
/clearraids tele 1 {state:visited}

Clear all void killer raids from memory
/clearraids killer

Clear all void nightmare vorden raids from memory
/clearraids vorden 4

Clear all raids you've seen, but not visited that you saw posted in the last 5 hours
/clearraids {age: <5h}


Acknowledgements

Thanks to SReject for making raid links open in the same window without refreshing.

Thanks to all who have helped test the script, and everyone who's suggested features and reported bugs!

Works in Firefox, Chrome, and Opera (others untested). Report bugs and request features to doomcat's Kongregate profile


Important Facts:

  1. This script does not alter gameplay in any way. It won't help you in game.
  2. This script is only a surface change in YOUR chat. No one else will see this enhanced description unless they also have this script.
  3. Some raid names may be missing, and might appear as "Legacy of a Thousand Suns Raid: [Normal] Unknown Raid (id: serpent)" or similar. Please post that link in a private message to me on Kongregate


  4. Disclaimer: I wrote this entirely of my own volition and it not endorsed by Kongregate or Legacy of a Thousand Suns (5th Planet Games), and I don't own the rights to either of the aforementioned properties. Released as-is. No warranties. If it breaks your chat, just disable it and please tell me.