StDoodle
Minion
Crimbopolis Loot Distro
Crimbopolis Distro 2.3
Requires r8822
Working script enclosed.
New Version!
Actually does distro! For those who may want to use this from outside of HCN, here's what it does; it monitors current turns, including sewer and elf alley, but nothing else. It accumulates those across run. It has you post the summary from the previous distro, which should be in this format:
Ie
Then it shows a summary of running counts of everyone KoL says is eligible for loot (this might include people who didn't kill elves this run, but did clear sewers). It sorts them in such a way as to assign the outfit to the person with the highest tally of those who need an outfit piece, resets that person's tally to 0, then does similarly for each (if any) non-outfit piece. It warns you if there aren't enough pieces desired vs. waiting for distro, otherwise pre-selects its choices (which you can change). Then, when you press the distro button, it distributes the loot and creates a new forum post in the format recognized by the parser.
Note: the coding on this script is fairly awful, as I wanted to finish it ASAP to save the sanity of Hardcore Nation's mods.
Note2: information is saved in data files that include the clan name, so if you want to use it for more than one clan, knock yourself out.
This is a fairly customized script intended for HCN BG's, but it seems like the best place to park the files.
Instructions:
1) Go here & download htmlform.ash; put it in the "scripts" directory.
2) Download the two attached files and put them in the "relay" directory.
(NB: if you don't have these dir's, create them. Look here for help if needed.)
3) Change the file extension of "std_tables.txt" so that it's "std_tables.js"; this forum doesn't allow uploading javascript files.
4) In the relay browser, there should be a drop-down menu in the upper-middle (small, navigation) frame. If "Crimbopolis" is not in the list, hit the "re" link to the side to refresh.
5) Selecting "Crimbopolis" from the list runs the script. Note that you can click on table headers to re-order.
Version History:
Crimbopolis Distro 2.3
Requires r8822
Working script enclosed.
New Version!
Actually does distro! For those who may want to use this from outside of HCN, here's what it does; it monitors current turns, including sewer and elf alley, but nothing else. It accumulates those across run. It has you post the summary from the previous distro, which should be in this format:
Code:
[player] .... ([outfit have] of [outfit want] / [non-outfit have] of [non-outfit want]) ..... [old tally] + [last run's turns] = [tally as of post]
Code:
stdoodle (2 of 3 / 1 of 3) 12 + 2 = 14
Note: the coding on this script is fairly awful, as I wanted to finish it ASAP to save the sanity of Hardcore Nation's mods.
Note2: information is saved in data files that include the clan name, so if you want to use it for more than one clan, knock yourself out.
This is a fairly customized script intended for HCN BG's, but it seems like the best place to park the files.
Instructions:
1) Go here & download htmlform.ash; put it in the "scripts" directory.
2) Download the two attached files and put them in the "relay" directory.
(NB: if you don't have these dir's, create them. Look here for help if needed.)
3) Change the file extension of "std_tables.txt" so that it's "std_tables.js"; this forum doesn't allow uploading javascript files.

4) In the relay browser, there should be a drop-down menu in the upper-middle (small, navigation) frame. If "Crimbopolis" is not in the list, hit the "re" link to the side to refresh.
5) Selecting "Crimbopolis" from the list runs the script. Note that you can click on table headers to re-order.
Version History:
Code:
2.3 No I didn't (re: below). *sigh* Careful of situations below...
2.2 Fix sort problem that assigned non-outfit pieces to wrong person when # of people desiring non-outfits < pieces dropped
2.1 Running tally as of now in new table version described below; colorization
2.0 If you parse history & go back to current hobopolis before rebooting at "Instructions" loot desired will show in table
1.8 if (test) flag=true; else flag=true; doesn't work right ;)
1.7 Show script version on default titlebar; fix "stuck in x + x" mode forum post bug
1.6 How many stupid bugs can I leave in? Hopefully 0, now. (None were distro breaking; just debug statements.)
1.5 REALLY add version checking ;)
1.4 add info on players online and sewer-clearing, add version checking
1.3 remove extra debug statement that was always printing a blank line or 0 to the cli
1.2 increment loot totals in post (didn't previously)
1.1 fix sorting of map that needed to remain statically keyed
Attachments
Last edited: