cRPG

Strategus => Strategus General Discussion => Topic started by: dodnet on October 07, 2012, 02:01:14 pm

Title: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: dodnet on October 07, 2012, 02:01:14 pm
Hey... I made a small Greasemonkey script for Firefox and Chrome that sorts the inventory screen on Strategus 4. It can only be used with Firefox + Greasemonkey-Addon (https://addons.mozilla.org/de/firefox/addon/greasemonkey/) or Chrome (no need for an addon here).

It sorts the items on the inventory and faction screen by their group and condition (from best to worst). It is now grouped in the same order as in the weapons screen. Now with some eye friendly changes and a better hoster.

visitors can't see pics , please register or login


Usage is at your own risk, if your computer crashes and your house burns down, I'm not responsible!

Install 4.1: http://userscripts.org/scripts/show/152233

Changelog:
(click to show/hide)

Old versions:
(click to show/hide)

Some screenshots:
Inventory screen with total amount of items
(click to show/hide)

Sorting by condition
(click to show/hide)

Towncenter
(click to show/hide)

Buying screen
(click to show/hide)

And the new layout based on the cRPG layout:
(click to show/hide)

(click to show/hide)

Messages within strategus (it uses the normal cRPG-messages):
(click to show/hide)

Known issues:
- Gold on top is not shown (0 gold)
- Closing some of the windows might take a few clicks and in some popups the searching may not work (faction popup).
- Some things might not work in Chrome as I use some Greasemonkey functions to store stuff (like the selected condition level in the buying screen).

The buttons on the map screen are based on the ones from Kass (http://forum.meleegaming.com/strategus-general-discussion/strategus-graphics-suggestions/). I didn't enable the cursors as well, as they were hard to see, but they are in the code.
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Thuron on October 07, 2012, 03:31:40 pm
Great work dude! I'm looking forward to see it for the faction items..  8-)
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 08, 2012, 08:13:01 pm
Gonna test it and see if sorts all the "precious legally obtained items" that I have at -2.
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 08, 2012, 08:24:55 pm
Okay greasemonkey tells me JS isnt recongised.. when i try to install it via firefox or can i do it any other way?
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: dodnet on October 08, 2012, 08:39:15 pm
Okay greasemonkey tells me JS isnt recongised.. when i try to install it via firefox or can i do it any other way?

Is it maybe this issue: http://stackoverflow.com/questions/10187750/greasemonkey-does-not-recognize-and-cant-install-local-scripts ? Can you try to download the file with IE and save it locally?
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 08, 2012, 08:59:07 pm
hmm well its "active" now, but i still dont see any changes too my inventory with firefox.
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: dodnet on October 08, 2012, 09:18:09 pm
Well it basically only sorts the same items together (like all Khergit Leather Boots and all Light Lances), but not necessarily all boots and all lances.
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 08, 2012, 09:54:44 pm
well my mail mittens for example are still spread out everywere...
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: dodnet on October 08, 2012, 10:15:28 pm
When you are on the inventory screen in strategus and open the Greasemonkey dropdown menu, does it show Greasemonkey as active and the script as active too?
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 09, 2012, 11:53:43 am
Yep, both have ticks next too them when im on the inventory page.

Edit Screenshot:

visitors can't see pics , please register or login
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: dodnet on October 09, 2012, 12:05:20 pm
Edit Screenshot:

visitors can't see pics , please register or login


Thats not my script... thats the old script from eye candy. Remove it please, if shouldn't work anymore. Mine is called "Strategus Sorted Inventory".

Already working on an improved version btw  :wink:
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 09, 2012, 12:11:58 pm
what the... grr sorry dodnet...
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Haboe on October 09, 2012, 12:13:33 pm
Good initiative.

I love how you covered up the numbers, so we cant see how much broken peasant gear you own xD
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 09, 2012, 12:14:16 pm
well i see one green plus :p
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 09, 2012, 12:30:12 pm
Surpising as it maybe, it now works! Thanks Dodnet  :D
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: dodnet on October 09, 2012, 12:34:28 pm
I love how you covered up the numbers, so we cant see how much broken peasant gear you own xD

Got millions of it  :mrgreen:
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 09, 2012, 12:43:49 pm
dodnet could you make the next version with a firefox friendly file extension also? And can you make it work on the faction page? That would be EPIC.
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: dodnet on October 09, 2012, 12:51:34 pm
dodnet could you make the next version with a firefox friendly file extension also? And can you make it work on the faction page? That would be EPIC.

Yeah, faction page should be working soon. But I don't think I can change the file extension... its Javascript, so... did install for me without flaws.
Title: Re: Strategus sorted inventory (Greasemonkey script)
Post by: Andswaru on October 09, 2012, 01:37:28 pm
hm okay took me a while to work out how to install from URL since im not techincally gifted, a little instruction guide would of been useful :D
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0
Post by: dodnet on October 09, 2012, 08:55:53 pm
Updated to 2.0:
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0
Post by: Elindor on October 09, 2012, 09:20:19 pm
This is great!!

If possible can we be able to toggle so that we only see a certain category at a time?
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0 for Strategus 4
Post by: Braeden on October 11, 2012, 01:09:41 am
This is awesome.  You rock.
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0
Post by: Andswaru on October 11, 2012, 03:38:58 pm
Updated to 2.0:
  • now works on the faction screen too
  • items are now completely sorted by their category and their order in the category
  • added an overview with amount of items in each class on the inventory screen

Exellent work. Kick ass update.
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0 for Strategus 4
Post by: Tydeus on October 11, 2012, 06:42:32 pm
Need this for the info tab and for the factions tab. Very nice though.
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0 for Strategus 4
Post by: kinngrimm on October 12, 2012, 11:00:29 am
mmm, was just searching for things upgraded in a fief, you think that would be a suitable addition? So that if you look for items which are upgraded either with discount or loom that those would show up like in the first line and everything else below as usual.
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0 for Strategus 4
Post by: Andswaru on October 12, 2012, 11:23:43 am
Need this for the info tab and for the factions tab. Very nice though.

info tab would be brillaint... was transfering alotta gear and it takes a long time because the positions now dont match in the Inventory and the info tab.
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0 for Strategus 4
Post by: dodnet on October 12, 2012, 11:40:16 am
mmm, was just searching for things upgraded in a fief, you think that would be a suitable addition? So that if you look for items which are upgraded either with discount or loom that those would show up like in the first line and everything else below as usual.

I tried, but it only works on the first page (horses). If you click any of the subcategories, the site is changed with Javascript and Greasemonkey won't work anymore. This is something that needs to be implemented by the devs.

Need this for the info tab and for the factions tab. Very nice though.

Yeah, I tried that too on the info tab, but the info page uses some internal IDs that are completely different from the ones in the inventory page. There's also no information about the item condition. I'll look into it next week, but I think I don't have a chance with that either.
BTW: sorting on the faction tab is working with the current version.
Title: Re: Strategus sorted inventory (Greasemonkey script) 2.0 for Strategus 4
Post by: Butan on October 12, 2012, 01:23:56 pm
Great work dodnet
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: dodnet on October 18, 2012, 10:55:05 pm
Time for some update...

3.0
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Bjarky on October 20, 2012, 12:10:22 am
If i where a girl i would throw myself at you :-3
Good work  :!:
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: kinngrimm on October 20, 2012, 04:18:57 am
The download site asks me for my telephone number, same like with the last eye candy download.
Perhaps a different distributer?
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: dodnet on October 20, 2012, 08:40:29 am
The download site asks me for my telephone number, same like with the last eye candy download.
Perhaps a different distributer?

Yeah, those freehosters can be annoying. You can close these ads somehow, no need for your telephone. I'll try to find a better one next week.
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Latvian on October 20, 2012, 09:28:59 am
i am sorry but i need complete idiot guide to make this work i downloaded file and launched it and it gave me some kind of error
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: dodnet on October 20, 2012, 09:51:45 am
i am sorry but i need complete idiot guide to make this work i downloaded file and launched it and it gave me some kind of error

It can only be used with Firefox + Greasemonkey-Addon (https://addons.mozilla.org/de/firefox/addon/greasemonkey/) or Chrome (no need for an addon there). You can't run it alone as a script.
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Latvian on October 20, 2012, 10:03:34 am
i got chrome   viedo tutorial for complete retard would be nice or   coloured picture guide how to intall this
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: dodnet on October 20, 2012, 06:24:29 pm
In Chrome go into settings, Addons and drag and drop the downloaded script into the settings window. That should be it for installing on Chrome.
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Latvian on October 20, 2012, 06:40:24 pm
worked :)
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Digglez on October 21, 2012, 08:19:25 am
let me know when you find a decent host...like dropbox, skydrive, some sort of cloud service in western hemisphere
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Elindor on October 21, 2012, 08:22:21 pm
dodnet is there a way to make it so you can see equipment in your fief/castle/town the same way you see it in your personal inventory??  Rather than just a list?
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: dodnet on October 21, 2012, 08:42:26 pm
dodnet is there a way to make it so you can see equipment in your fief/castle/town the same way you see it in your personal inventory??  Rather than just a list?

Sorry I can't. The items in that list hold no reference I can use.
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Elindor on October 22, 2012, 06:02:19 pm
Yeah that list is useless :(
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Elindor on November 05, 2012, 06:41:18 pm
so frustrated right now with the inventory list that is viewed in the "info" panel and is used for transferring...makes transferring such a pain in the ass unless you are just dumping it all. 

is there ANYTHING that can be done with that dodnet or devs?

it would amazing if you could transfer from the inventory panel since that one (thanks to dodnet) is wonderfully sorted and shows you what you are transferring and what is remaining.
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Digglez on November 05, 2012, 06:54:55 pm
so frustrated right now with the inventory list that is viewed in the "info" panel and is used for transferring...makes transferring such a pain in the ass unless you are just dumping it all. 

is there ANYTHING that can be done with that dodnet or devs?

it would amazing if you could transfer from the inventory panel since that one (thanks to dodnet) is wonderfully sorted and shows you what you are transferring and what is remaining.

amen, but still doesnt address fief owners inventory. what about a separate tab for fief inventory?
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: kinngrimm on November 05, 2012, 08:05:56 pm
for the towncenter

- could the highlighting be done for a price i would define by myself? So cooky safes that price and if i get to towncenter again, all wares with a price below that would be shown in green?
- also a sorting by final price, location and amount would be nice to have.
Title: Re: Strategus sorted inventory (Greasemonkey script) 3.0 for Strategus 4
Post by: Kirbyy on November 11, 2012, 01:44:36 am
Damn you for making me wait 60 seconds for a download!
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: dodnet on November 11, 2012, 02:58:09 pm
Ok... time for some major update.

First some easy stuff...

(click to show/hide)


But now for some special stuff...

And the new layout based on the cRPG layout:
(click to show/hide)

(click to show/hide)

Messages within strategus (it uses the normal cRPG-messages):
(click to show/hide)

I included some useful dialogs into the Strategus site: messages, factions, locations, heros. Items are clickable too and show the normal cRPG-item stats.

The buttons on the map screen are based on the ones from Kass (http://forum.meleegaming.com/strategus-general-discussion/strategus-graphics-suggestions/). I didn't enable the cursors as well, as they were hard to see, but they are in the code.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Andswaru on November 11, 2012, 03:12:14 pm
dodnet for strategus president.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Bjarky on November 11, 2012, 03:23:59 pm
I suddenly feel attracted to u DoD  :oops:
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: BASNAK on November 11, 2012, 03:53:48 pm
This is awesome DOD. love you
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: kinngrimm on November 11, 2012, 08:52:23 pm
thanks dodnet great work, Kass will be happy that his work sees the light of day  :mrgreen:
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: BaleOhay on November 11, 2012, 09:18:30 pm
excellent work man. I appreciate the time you spent on doing this.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: SoA_Sir_ODHarry on November 11, 2012, 11:04:15 pm
herrrrrooo
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Elindor on November 12, 2012, 05:07:07 pm
dodnet, could the sorting of quality in the weapons tab default at 0 instead of +3?

personally makes more sense to me, as most people are looking for anything unbroken, not just +3 stuff at this point...

small thing
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Rikthor on November 12, 2012, 05:24:10 pm
awesome job :mrgreen:
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: dodnet on November 12, 2012, 05:34:14 pm
dodnet, could the sorting of quality in the weapons tab default at 0 instead of +3?

personally makes more sense to me, as most people are looking for anything unbroken, not just +3 stuff at this point...

It is at 0 by default, I guess you are using Chrome? On Chrome the setting aren't stored because I use some Greasemonkey function that isn't supported on Chrome and it gets reset to some value. Same goes for the username on the top, it changes to "undefined" on Chrome, this is only working on Firefox atm. I'll try to find a solution for that.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Elindor on November 12, 2012, 05:40:02 pm
Ahh...yeah I use chrome :(
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Inglorious on November 12, 2012, 07:50:40 pm
Donations tab. Get one.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Corsair831 on November 13, 2012, 04:39:31 pm
VERY VERY VERY happy with this script ... It looks nicer and is more organised, sure, but the best bit for me is the

HEROS - FACTIONS - LOCATIONS - BATTLES tab along the top ... makes it so much easier to find out people's performance and reliability ratings when recruiting for battles ...

thankyouthankyouthankyou :)
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Artyem on November 14, 2012, 01:20:43 am
Please upgrade the transfer menu next, trying to take count on all of the gear I keep in my village is like trying to count how many cats you have in a six story mansion filled with bacon grease.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: BASNAK on November 19, 2012, 08:59:45 pm
Is it just me, or did the Attack button get removed D:
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Bjarky on November 19, 2012, 09:08:20 pm
Is it just me, or did the Attack button get removed D:
hmmm i still got mine   :)
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: BASNAK on November 19, 2012, 09:16:22 pm
Do you use Chrome Bjarky? I tried both ctrl + F5 and restarting chrome. Still can't see it :S
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Bjarky on November 19, 2012, 10:47:43 pm
i use ff  :D
maybe check in ya chrome scripts if u got the some doubles, u only need the newest.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: dodnet on November 20, 2012, 03:00:20 am
Seems like the hoster of the images is partially down, for me its the move button missing.  :mrgreen:
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: KillerofFlowers on November 21, 2012, 06:54:32 am
Instead of seeing a huge list of the gear i have in my village i would much prefer if u could make it so that it would become like the inventory page where u see whats on you. maybe create a new tab for the village gear? Also if there was someway to do the same thing in the faction tabs when u look at the people in your factions gear, if that could be like the inventory page also. Idk how much work this requires, but these changes would really be great to see.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Elindor on November 21, 2012, 06:58:07 am
 :arrow: http://forum.meleegaming.com/strategus-general-discussion/trading-through-inventory-page/
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: dodnet on November 21, 2012, 11:42:31 am
Instead of seeing a huge list of the gear i have in my village i would much prefer if u could make it so that it would become like the inventory page where u see whats on you. maybe create a new tab for the village gear? Also if there was someway to do the same thing in the faction tabs when u look at the people in your factions gear, if that could be like the inventory page also. Idk how much work this requires, but these changes would really be great to see.

I really would like to change the mess on the info screen, but I can't. The items on this page use completely different IDs than the ones on the other pages. So I have no reference between them (except maybe the name of the item). Sorry.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: KillerofFlowers on November 21, 2012, 01:29:32 pm
Guess we jus have to hope that chadz hears our cries
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Smoothrich on January 08, 2013, 07:53:03 pm
Bug report, the Trade and Follow buttons are mixed up.
Title: Re: Strategus sorted inventory 4.0 for Strategus 4 now with Eye Candy
Post by: Butan on January 08, 2013, 09:17:12 pm
Bug report, the Trade and Follow buttons are mixed up.

Oh man, and I didnt know why I was trading when I was following and vice versa :lol: nice find it will help me (and even before it gets fixed you can just click on the other button)


Now we need inventory list in the "info" panel, if it is possible !

It is so long and boring to transfer items that way: I have to open a new tab to look at my own inventory list, and then I switch to the "info panel" tab and search for the item name etc... otherwise its impossible to manage big armies stuff.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: dodnet on January 15, 2013, 06:32:04 pm
Bug report, the Trade and Follow buttons are mixed up.

Hi, thanks for the info. I updated the script to 4.1. Those two buttons should be correct now.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: kinngrimm on January 18, 2013, 09:18:34 pm
thanks for implementing the strat viewer nicely, well done mate
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sir_Winston_Churchill on January 19, 2013, 08:21:54 pm
Great work, this is going to make things a lot easier :D One thing that I think would be useful would be to say how many weapons/armors are in crates so it would be easier to make a crateless army. Anyways, amazing job, thank you so much!
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Le_Mikz on February 11, 2013, 09:04:16 pm

 Its so much easier to manage things now when using this!! :D

 Only one thing what someone mentioned, is that view in "inventory" and equipment list on "info" goes differently.
Its manageable, but i wish someday we find way to fix it too.

 This is great job from you!! :) I have recommended this for soooo many :D:D
 Thx!
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Elindor on February 12, 2013, 01:46:31 am
Only one thing what someone mentioned, is that view in "inventory" and equipment list on "info" goes differently.
Its manageable, but i wish someday we find way to fix it too.

http://forum.meleegaming.com/strategus-general-discussion/strategus-tool-belt-v1-0-5-3-(improved-interface)/
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: kinngrimm on February 20, 2013, 08:17:59 am
anyone else having trouble with the addons? may have to do with new firefox version not sure, but the addon while is still shown as active in the option/addon it wont show on strat website.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Butan on February 20, 2013, 12:43:33 pm
Everything working with me.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Le_Mikz on February 20, 2013, 06:46:34 pm
 Works fine with me too with firefox
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Chris_the_Animal on February 20, 2013, 09:07:41 pm
Im using this for several month now and i think this is really excellent work.

well done dodnet
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: kinngrimm on February 22, 2013, 05:06:52 am
seems after latest update my greasemonkey was disabled.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Erasmas on February 22, 2013, 05:14:43 pm
I had this problem, re - instalation of grease helped.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: kinngrimm on February 22, 2013, 08:05:19 pm
not even that :) there is this monkey head, and when you click on it, in the drop down menue is a "enable" funtion  :mrgreen:
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: kinngrimm on March 02, 2013, 03:23:02 pm
with the latest changes to the messaging system in cRPG, the messaging out of Strategus doesnt work anymore with firefox. Browser tries to open message but fails.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Butan on March 02, 2013, 10:45:11 pm
with the latest changes to the messaging system in cRPG, the messaging out of Strategus doesnt work anymore with firefox. Browser tries to open message but fails.

Me too.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sir_Winston_Churchill on March 08, 2013, 08:01:16 pm
It might just be a problem with Chrome, but I can't sell items on the towncenter because the button to change the price never appears.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: fosr on April 22, 2013, 10:18:37 am
Need updated,  :)
some new equipment in inventory error, new equipment into goods.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Vermilion on May 20, 2013, 04:01:35 am
I like it :) Though couple things I personalised 
loom level - ► +
removed the changed attack follow etc buttons (got used to the old style, it just looked wrong  :D )
changed it so it rank 0 for weapons (filtering above 0 for me is unnecessary, still always 1 line of items)
Added a couple of the newer items
messages links to the full cRPG page

Think that's all..  :)

If anyone wants my personalised version feel free to do so http://userscripts.org/scripts/show/167931

Thanks for making a great script, I'm always too lazy to make my own I just edit others  :twisted:
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Kampfkarotte on May 25, 2013, 01:34:10 am
awesome =D
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Vermilion on May 25, 2013, 07:53:14 pm
WARNING TO CHROME USERS

The script seems to have stopped working with the latest chrome version (27) therefore until this has been fixed I would advise not updating your chrome, unless you would rather the update than the strat enhancer  :twisted:

Maybe someone has or can create a solution to this  :D
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Dach on May 25, 2013, 10:57:01 pm
I confirm, stopped working in Chrome :(
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Turkhammer on May 26, 2013, 04:49:00 am
Yep, the script no longer works with Chrome 27,and I can't figure out out to revert Chrome back to an older version.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Artyem on May 27, 2013, 05:31:53 am
Someone please fix  :cry:
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Chychy on May 27, 2013, 02:15:01 pm
Test this version and tell me if this is fixed : http://userscripts.org/scripts/show/168674
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Vermilion on May 27, 2013, 03:00:31 pm
Looks good :) thank you :D


I have edited my version as well thanks to Chy and their //

Link in my post a few above still works but here it is again.

My version = http://userscripts.org/scripts/show/167931
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Mr.K. on May 27, 2013, 07:33:18 pm
Test this version and tell me if this is fixed : http://userscripts.org/scripts/show/168674

Works again, but there's a small bug. The new armors like Leather Scale Armor and Norman Pot helmet are counted as Trading goods. Otherwise, great job.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Artyem on May 27, 2013, 08:51:24 pm
Thank you very much, both of you, it works just fine for me.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: fosr on May 28, 2013, 09:05:01 am
Looks good :) thank you :D


I have edited my version as well thanks to Chy and their //

Link in my post a few above still works but here it is again.

My version = http://userscripts.org/scripts/show/167931

Thank you!
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Vermilion on May 28, 2013, 01:17:33 pm
Works again, but there's a small bug. The new armors like Leather Scale Armor and Norman Pot helmet are counted as Trading goods. Otherwise, great job.

Yeah looks like dotnet lost interest in updating it just before the last weapon/armor update. I think I got most of the new items but may have missed 1 or 2 let me know if you notice any..

FF - http://userscripts.org/scripts/show/168792
Chrome with Chy patch - http://userscripts.org/scripts/show/168791
Chrome Vermilion ed - http://userscripts.org/scripts/show/167931

Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on June 03, 2013, 03:32:22 am
Yeah looks like dotnet lost interest in updating it just before the last weapon/armor update. I think I got most of the new items but may have missed 1 or 2 let me know if you notice any..

FF - http://userscripts.org/scripts/show/168792
Chrome with Chy patch - http://userscripts.org/scripts/show/168791
Chrome Vermilion ed - http://userscripts.org/scripts/show/167931




I'm having some trouble getting the FF version to work. Whenever i click on the install it does not install it and instead brings up a page that looks like this
(click to show/hide)
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Lt_Anders on June 03, 2013, 03:33:08 am
Picture messed up?
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on June 03, 2013, 03:33:25 am
ninja
and yes, it was.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Lt_Anders on June 03, 2013, 04:15:37 am
K, I believe that error is due to greasemonkey script. Update it and see if it changes. I use to get that error before and I believe that was the fix...
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on June 03, 2013, 04:28:40 pm
No joy unfortunately, i've got the most updated version and it still happens. Thanks for suggesting something so quickly though :)
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Taser on June 08, 2013, 11:09:04 pm
I've just recently started using chrome but I get a popup saying that chrome won't allow me to install extensions from this website. Don't see a way to get around it via settings.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on June 09, 2013, 02:32:44 am
I've just recently started using chrome but I get a popup saying that chrome won't allow me to install extensions from this website. Don't see a way to get around it via settings.

There is a program for chrome called Tampermonkey (https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) which allows you to run greasemonkey scripts without fiddling directly with chromes extension files. Once you have tamper monkey installed simply click on the icon in the upper right of chrome and click add new script. Then just copy and paste the source code of the greasemonkey script and save it. Now whenever you go to the http://strategus.c-rpg.net/ you'll see a notification on the tampermonkey icon that a script is active, and if everything was done correctly it will run as it ought to.

Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Taser on June 09, 2013, 03:31:16 am
There is a program for chrome called Tampermonkey (https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en) which allows you to run greasemonkey scripts without fiddling directly with chromes extension files. Once you have tamper monkey installed simply click on the icon in the upper right of chrome and click add new script. Then just copy and paste the source code of the greasemonkey script and save it. Now whenever you go to the http://strategus.c-rpg.net/ you'll see a notification on the tampermonkey icon that a script is active, and if everything was done correctly it will run as it ought to.

That did it.

Thanks. Appreciate it.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Vovka on July 11, 2013, 09:54:33 am
can u add village name for goods in INFO menu (for transfer)  :P
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Butan on November 09, 2013, 02:24:15 pm
Bump.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Vermilion on November 19, 2013, 07:37:55 pm
Don't know if dotnet has pick this back up or not..

If not I've added the new items to the links below


FF - http://userscripts.org/scripts/show/168792
Chrome with Chy patch - http://userscripts.org/scripts/show/168791
Chrome Vermilion ed - http://userscripts.org/scripts/show/167931
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Butan on February 17, 2014, 03:52:14 pm
Still works, except for a very minor bug where the "Enter" button doesnt show.

You cant enter a fief with this plug-in enabled. Until someone updates it, disable it to enter a fief, and re-enable it to use its many advantages.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Haze_The_Hobo on February 18, 2014, 09:58:21 pm
Thanks alot once again, great app for strat!
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on April 08, 2014, 09:48:57 pm
Don't suppose anyone that knows something about coding what-nots like this could be bothered to add the newer items in crpg to it. or point me to a link if someone already has done such. I'd do it myself but i know nothing about anything. :\
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Aye_Chingao on April 09, 2014, 12:23:53 am
I'm working on it, but it's a huge pain in the butt, and it probably won't be perfect.  I'll post what I've changed if I ever get it finished.  It took about 2 hours of dead battle time to do just horses and body armor, and I still don't think I got it 100% perfect.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Aye_Chingao on April 11, 2014, 03:28:21 am
Here's the version I'm using now.

http://userscripts.org/scripts/show/459969

I completely removed the code that changes the buttons on the map tab.

I also updated the item lists directly from of the current weapons page source code so everything should get sorted and counted correctly.  (Please let me know if I'm wrong about this!)

If anyone wants to try to update other scripts feel free to incorporate the item arrays from this script.

Use at your own risk, no warranties or support expressed nor implied.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on April 11, 2014, 06:42:03 am
Here's the version I'm using now.

http://userscripts.org/scripts/show/459969

I completely removed the code that changes the buttons on the map tab.

I also updated the item lists directly from of the current weapons page source code so everything should get sorted and counted correctly.  (Please let me know if I'm wrong about this!)

If anyone wants to try to update other scripts feel free to incorporate the item arrays from this script.

Use at your own risk, no warranties or support expressed nor implied.

Don't even know if it works yet. You're the best anyhow.

Edit: It appears to work, all the new gear I have is in the right places in any event. Thank you very much kind sir.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: BaleOhay on April 11, 2014, 01:31:02 pm
on the info tab my equipment still is all broken icons and listed vertically, however looks fine on the inventory page. not sure what is the deal with that
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Corsair831 on April 11, 2014, 02:30:10 pm
Here's the version I'm using now.

http://userscripts.org/scripts/show/459969

I completely removed the code that changes the buttons on the map tab.

I also updated the item lists directly from of the current weapons page source code so everything should get sorted and counted correctly.  (Please let me know if I'm wrong about this!)

If anyone wants to try to update other scripts feel free to incorporate the item arrays from this script.

Use at your own risk, no warranties or support expressed nor implied.

thank you, kind sir!
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Rhalzo on April 11, 2014, 06:31:02 pm
on the info tab my equipment still is all broken icons and listed vertically, however looks fine on the inventory page. not sure what is the deal with that

I think that has more to do with the STB script than the sorted inventory.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: BaleOhay on April 11, 2014, 09:02:25 pm
Thanks. You are probably right
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Turkhammer on April 12, 2014, 07:56:47 pm
Here's the version I'm using now.

http://userscripts.org/scripts/show/459969

I completely removed the code that changes the buttons on the map tab.

I also updated the item lists directly from of the current weapons page source code so everything should get sorted and counted correctly.  (Please let me know if I'm wrong about this!)

If anyone wants to try to update other scripts feel free to incorporate the item arrays from this script.

Use at your own risk, no warranties or support expressed nor implied.

That webpage is no longer available.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Sparvico on April 13, 2014, 01:34:38 am
That webpage is no longer available.

I believe userscripts.org is simply down, either for maintenance or because the big bad evil people got to them. I can post the source code with Aye_Chingao permission, as I have it in my own tampermonkey script (chromes version of greasemonkey).
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: ARN_ on September 08, 2014, 06:05:14 pm
Bump please get the link to work again, I cant do strat without this script :S
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Aye_Chingao on September 09, 2014, 01:38:40 am
This is out of date, and I'm probably not going to update it, but here you go!

Code: [Select]
// ==UserScript==
// @name        Strategus Sorted Inventory
// @namespace   http://strategus.c-rpg.net/DoD_Wolper
// @description Sorts the inventory on the cRPG Strategus website, appends the cRPG-Layout to the website and improves some other stuff
// @include     http://strategus.c-rpg.net/*
// @downloadURL http://userscripts.org/scripts/source/152233.user.js
// @updateURL   http://userscripts.org/scripts/source/152233.meta.js
// @version     4.1 - Modified by Jake, use at your own risk!!!
// ==/UserScript==

const cPageMap = "MAP";
const cPageInventory = "inv";
const cPageFaction = "faction";
const cPageShop = "buy";
const cPageShopAll = "buy=all";
const cPageTowncenter = "towncenter";

var itemOrigin = new Object();
itemOrigin["good"] = new Array("Chalk", "Slate", "Fine Tapestry", "Ornate Carpets", "Salted Clams", "Wrought Iron Bars", "Camel Milk", "Wild Horse Steak", "Oak Timber", "Bananas", "Hemp", "Birch Bark", "Sandstone", "Onions", "Diamonds", "Dyes", "Tanned Leather", "Spruce Lumber", "Giant Crabs", "Whale Oil", "Dried Horse Meat", "Radishes", "Ceramic Bowls", "Silk Hats", "Brass Bars", "Iron Tools", "Gold Bars", "Baked Bricks", "Fine Woodcuts", "Embroidered Hats", "Pearls", "Concrete", "Rubies", "Dates", "Root Carvings", "Steppe Tea", "Goat Cheese", "Preserved Goat Bladders", "Silver Chalices", "Silver Jewelry", "Dried Goat Meat", "Colored Sands", "Gold Ore", "Silk Cloth", "Beautiful Paintings", "Fresh Shrimp", "Ceder Timber", "Ash Sapling", "Mining Tools", "Linen", "Fine-bred Mountain Goats", "Yew Seedlings", "Zinc Ore", "Smoked Salmon", "Northern Perch", "Raw Ammolite", "Preserved Crayfish", "Oak Furniture", "Delicious Apples", "Jet Jewelry", "Raw Obsidian", "Musical Instruments", "Bear Hides", "Fox Furs", "Olive Oil", "Elegant Curtains", "Dried Herring", "Amber Jewelry", "Dried Beef", "Wooden Reliefs", "Cow Hides", "Sun Dried Bricks", "Eels", "Fine Eel Skin Hoses", "Glass Chalices", "Well-bred Cows", "Emeralds", "Olives", "Fine Cutlery", "Striped Bass", "Sugarcane", "Trained Donkeys", "Albino Donkeys", "Velvet", "Well-Bred Sheep", "Marble", "Clay", "Peppered Pickles", "Ceramic Sculptures", "Salted Cod", "Eelskin", "Carrots", "Copper Ore", "Red Potatoes", "Reindeer Antlers", "Onyx", "Hemp Rope", "Coconuts", "Malachite", "Tiger Fur", "Iron Bars", "Brass Sheets", "Elm Timber", "Smoked Codfish", "Granite", "Quartz", "Pumpkins", "Jasper Gems", "Dried Potatoes", "Horse Saddles", "Dried Eel", "Dried Corn", "Boar Tusks", "Bejeweled Cutlery", "White Seedy Bread", "Salted Mackerel", "Strong Barrels", "Large Eggs", "Apple Pies", "Amber Gems", "Dried Leather", "Healthy Pigs", "Iron Ore", "Fine Lamb Wool", "Exotic Flowers", "Ale", "Fox Furs", "Marble Sculptures", "Heavy Waybread", "Carved Oak Planks", "Spices", "Goat Milk", "Pure White Candles", "Camel Hooves", "Bear Meat", "Chicken Feathers", "Frog Legs", "Dried Reindeer Meat", "Silver Bars", "Gold Jewelry", "Pig Iron Ingots", "Linen", "Rock Salt", "Cured Leather", "Fine-coated Mules", "Raw Hides", "Pork Ribs", "Sapphires", "Mushrooms", "Mysterious Meat", "Wooden Sculptures", "Iron Jewelry", "Wolf Pelts", "Wheat", "Raw Wool", "Albino Chicken", "Silver Ore", "Stone Reliefs", "Strong Nord Ale", "Spiced Strongwine", "Pigeons", "Bear Skins", "Limestone", "Bee Wax", "Fine Wool", "Dried Bear Meat", "Tents", "Dried Camel Meat", "Hops", "Nickel Bars", "Barley", "Lutefisk", "Boar Ribs", "Crabs", "Snake Meat", "Yeast", "Wheat Flour", "Dog Meat", "Honey", "Kitten", "Exotic Chalk", "Exotic Ornate Carpets", "Exotic Wrought Iron Bars", "Exotic Camel Milk", "Exotic Wild Horse Steak", "Exotic Bananas", "Exotic Hemp", "Exotic Birch Bark", "Exotic Diamonds", "Exotic Tanned Leather", "Exotic Dried Horse Meat", "Exotic Silk Hats", "Exotic Brass Bars", "Exotic Concrete", "Exotic Rubies", "Exotic Root Carvings", "Exotic Steppe Tea", "Exotic Preserved Goat Bladders", "Exotic Silver Jewelry", "Exotic Colored Sands", "Exotic Beautiful Paintings", "Exotic Silk Cloth", "Exotic Ceder Timber", "Exotic Ash Sapling", "Exotic Mining Tools", "Exotic Jet Jewelry", "Exotic Musical Instruments", "Exotic Olive Oil", "Exotic Wooden Reliefs", "Exotic Eels", "Exotic Emeralds", "Exotic Trained Donkeys", "Exotic Well-Bred Sheep", "Exotic Marble", "Exotic Clay", "Exotic Ceramic Sculptures", "Exotic Eelskin", "Exotic Carrots", "Exotic Onyx", "Exotic Hemp Rope", "Exotic Malachite", "Exotic Tiger Fur", "Exotic Elm Timber", "Exotic Quartz", "Exotic Jasper Gems", "Exotic Dried Corn", "Exotic White Seedy Bread", "Exotic Fine Lamb Wool", "Exotic Ale", "Exotic Heavy Waybread", "Exotic Carved Oak Planks", "Exotic Camel Hooves", "Exotic Bear Meat", "Exotic Chicken Feathers", "Exotic Dried Reindeer Meat", "Exotic Silver Bars", "Exotic Pig Iron Ingots", "Exotic Rock Salt", "Exotic Cured Leather", "Exotic Wooden Sculptures", "Exotic Mysterious Meat", "Exotic Raw Wool", "Exotic Albino Chicken", "Exotic Silver Ore", "Exotic Spiced Strongwine", "Exotic Bear Skins", "Exotic Limestone", "Exotic Bee Wax", "Exotic Dried Camel Meat", "Exotic Boar Ribs", "Exotic Snake Meat", "Exotic Wheat Flour", "Exotic Dog Meat", "Exotic Honey", "Exotic Kitten", "Exotic Slate", "Exotic Oak Timber", "Exotic Baked Bricks", "Exotic Radishes", "Exotic Embroidered Hats", "Exotic Dates", "Exotic Gold Ore", "Exotic Smoked Salmon", "Exotic Delicious Apples", "Exotic Dried Beef", "Exotic Fine Eel Skin Hoses", "Exotic Albino Donkeys", "Exotic Red Potatoes", "Exotic Coconuts", "Exotic Dried Potatoes", "Exotic Horse Saddles", "Exotic Dried Eel", "Exotic Bejeweled Cutlery", "Exotic Exotic Flowers", "Exotic Fox Furs", "Exotic Marble Sculptures", "Exotic Spices", "Exotic Pure White Candles", "Exotic Frog Legs", "Exotic Linen", "Exotic Fine-coated Mules", "Exotic Wolf Pelts", "Exotic Wheat", "Exotic Stone Reliefs", "Exotic Pigeons", "Exotic Dried Bear Meat", "Exotic Tents", "Exotic Hops", "Exotic Barley");
itemOrigin["place"] = new Array("Ada Kulun", "Aab", "Alburq Castle", "Ahmerrad", "Aldelen", "Almerra Castle", "Amashke", "Ambean", "Amere", "Asugan Castle", "Ayn Assuadi", "Ayyike", "Azgad", "Balanli", "Bardaq Castle", "Bariyye", "Bhulaban", "Bazeck", "Buillin", "Bulugha Castle", "Bulugur", "Burglen", "Buvran", "Caraf Castle", "Chaeza", "Chalbek Castle", "Chelez", "Chide", "Culmarr Castle", "Curaw", "Curin Castle", "Dashbigha", "Derchios Castle", "Dhibbain", "Dhirim", "Dirigh Aban", "Dirigsene", "Distar Castle", "Dramug Castle", "Dugan", "Dumar", "Durquba", "Durrin Castle", "Dusturil", "Ehlerdah", "Elberl", "Emer", "Emirin", "Ergellon Castle", "Epeshe", "Etrosq Castle", "Fearichen", "Fedner", "Fenada", "Fisdnar", "Fishara", "Gisim", "Glunmar", "Grunwalder Castle", "Habba", "Haen", "Halmar", "Hanun", "Haringoth Castle", "Hawaha", "Hrus Castle", "Ibdeles", "Ibdeles Castle", "Ibiran", "Ichamur", "Ilvia", "Iqbayl", "Ismirala", "Ismirala Castle", "Istiniar", "Iyindah", "Jameyyed Castle", "Jamiche", "Jamiche Castle", "Jayek", "Jeirbe Castle", "Jelbegi", "Jelbegi Castle", "Jelkala", "Karindi", "Kedelke", "Kelredan Castle", "Khudan", "Knudarr Castle", "Kulum", "Kwynn", "Malayurg Castle", "Maras Castle", "Mawiti", "Mazen", "Mazigh", "Mechin", "Mijayet", "Mit Nun", "Narra", "Nelag Castle", "Nemeja", "Nomar", "Odasan", "Pagundur", "Peshmi", "Praven", "Qalyut", "Radoghir Castle", "Rduna", "Rebache", "Reindi Castle", "Reveran", "Reyvadin", "Rindyar Castle", "Rivacheg", "Rizi", "Ruldi", "Ruluns", "Rushdigh", "Ruvar", "Ryibelet", "Ryibelet Castle", "Samarra Castle", "Saren", "Sargoth", "Sarimish", "Sekhtem", "Senuzgda Castle", "Serindiar", "Shariz", "Shapeshte", "Sharwa Castle", "Shibal Zumr", "Shulus", "Slezkh", "Slezkh Castle", "Sumbuja", "Sungetche Castle", "Suno", "Tadsamesh", "Tahlberl", "Tamnuh", "Tash Kulun", "Tazjunat", "Tebandra", "Tehlrog Castle", "Teramma Castle", "Tevarin Castle", "Tilimsal", "Tilbaut Castle", "Tihr", "Tismirr", "Tosdhar", "Tshibtin", "Tulbuk", "Tulbuk Castle", "Tulga", "Udiniad", "Uhhun", "Uhhun Castle", "Ulburban", "Unriya", "Unuzdaq Castle", "Ushkuru", "Uslum", "Uxkhal", "Uzgha", "Vayejeg", "Veidar", "Veluca", "Vezin", "Vyincourd Castle", "Wercheg", "Weyyah Castle", "Yalen", "Yalibe", "Yaragar", "Yruma Castle", "Zagush", "New Ada Kulun", "New Ahmerrad", "New Almerra Castle", "New Amashke", "New Ambean", "New Asugan Castle", "New Ayn Assuadi", "New Ayyike", "New Bardaq Castle", "New Bhulaban", "New Bulugur", "New Caraf Castle", "New Chaeza", "New Dashbigha", "New Derchios Castle", "New Dhirim", "New Dirigh Aban", "New Distar Castle", "New Dugan", "New Durquba", "New Ehlerdah", "New Dusturil", "New Emer", "New Emirin", "New Ergellon Castle", "New Habba", "New Halmar", "New Hawaha", "New Ichamur", "New Ismirala", "New Jameyyed Castle", "New Jelbegi", "New Karindi", "New Kedelke", "New Kelredan Castle", "New Knudarr Castle", "New Kwynn", "New Malayurg Castle", "New Mazigh", "New Mechin", "New Mit Nun", "New Narra", "New Nomar", "New Peshmi", "New Qalyut", "New Reindi Castle", "New Rindyar Castle", "New Samarra Castle", "New Sargoth", "New Senuzgda Castle", "New Serindiar", "New Shibal Zumr", "New Shulus", "New Slezkh", "New Sumbuja", "New Sungetche Castle", "New Tadsamesh", "New Tamnuh", "New Tash Kulun", "New Tilbaut Castle", "New Tilimsal", "New Tshibtin", "New Tulbuk", "New Tulbuk Castle", "New Uhhun", "New Ulburban", "New Unriya", "New Unuzdaq Castle", "New Uzgha", "New Vyincourd Castle", "New Weyyah Castle", "New Yalibe", "New Yaragar", "New Yruma Castle", "New Zagush", "Nova Aab", "Nova Amere", "Nova Chide", "Nova Burglen", "Nova Curaw", "Nova Dhibbain", "Nova Durrin Castle", "Nova Fenada", "Nova Grunwalder Castle", "Nova Ibiran", "Nova Ismirala Castle", "Nova Jelbegi Castle", "Nova Mawiti", "Nova Mijayet", "Nova Radoghir Castle", "Nova Rduna", "Nova Rebache", "Nova Reyvadin", "Nova Saren", "Nova Sarimish", "Nova Sekhtem", "Nova Shariz", "Nova Sharwa Castle", "Nova Slezkh Castle", "Nova Tahlberl", "Nova Tazjunat", "Nova Tismirr", "Nova Tosdhar", "Nova Tulga", "Nova Uhhun Castle", "Nova Uslum", "Nova Uxkhal", "Nova Vayejeg", "Nova Veluca");

var allItems = new Array();
allItems[0]  = new Array("00", "Trading goods", "equip_inv.png", 0);
allItems[1]  = new Array("01", "Horses", "equip_horse.png", 6190, 1, 2, 3, 4, 10, 5, 6, 7, 6049, 6051, 6474, 6050, 8, 524, 525, 6048, 9, 526, 527);
allItems[2]  = new Array("14", "Throwing", "equip_throw.png", 23, 25, 528, 26, 28, 29, 536, 32, 534, 34, 529, 5142, 46, 537, 47, 48, 535, 36, 38, 30, 539, 40, 42, 44, 538);
allItems[3]  = new Array("02", "Body armors", "equip_body.png", 364, 369, 6479, 366, 367, 368, 370, 372, 373, 374, 375, 376, 412, 413, 6354, 371, 378, 5393, 377, 379, 431, 432, 6481, 5498, 6482, 381, 382, 384, 383, 386, 385, 390, 6213, 389, 6352, 4722, 391, 5169, 387, 388, 394, 392, 399, 6480, 393, 395, 396, 6353, 397, 398, 5500, 416, 400, 6060, 417, 419, 472, 418, 403, 434, 420, 5501, 437, 438, 3971, 404, 6059, 440, 5394, 5919, 365, 401, 402, 414, 415, 421, 422, 423, 424, 425, 426, 427, 428, 429, 430, 433, 3130, 442, 443, 3137, 4952, 444, 4723, 5502, 445, 6485, 6483, 6484, 6214, 447, 6486, 5738, 5741, 405, 454, 5507, 5506, 407, 408, 409, 410, 411, 459, 441, 448, 6478, 450, 458, 461, 5916, 446, 6218, 460, 4947, 4948, 4949, 4950, 4951, 451, 4957, 439, 5505, 5918, 4958, 6219, 449, 455, 6217, 5739, 5740, 5742, 457, 456, 6062, 452, 6058, 435, 4955, 406, 4720, 453, 6061, 6063, 4956, 5504, 5509, 5499, 4953, 4954, 462, 463, 436, 5917, 3972, 6215, 5496, 469, 464, 465, 466, 6216, 5508, 467, 473, 474, 475, 4721, 476, 477, 478, 480, 5503, 5497, 468, 547, 541, 545, 471, 380, 470, 479);
allItems[4]  = new Array("03", "Head armors", "equip_head.png", 273, 283, 256, 257, 258, 259, 260, 261, 262, 279, 280, 255, 284, 5915, 263, 295, 268, 264, 265, 266, 267, 294, 298, 299, 5162, 270, 272, 274, 275, 276, 277, 278, 309, 6057, 6350, 495, 271, 286, 281, 285, 5484, 5168, 287, 288, 289, 290, 291, 292, 312, 348, 282, 269, 300, 293, 296, 5914, 302, 297, 301, 307, 5159, 303, 5160, 5161, 5155, 5156, 5157, 5163, 304, 353, 6351, 5164, 5165, 305, 317, 319, 321, 306, 308, 311, 5733, 3968, 5158, 310, 326, 347, 349, 350, 5730, 5737, 314, 323, 313, 320, 322, 549, 330, 4938, 5385, 5386, 6210, 6476, 5913, 315, 324, 325, 5486, 5487, 6477, 5494, 6056, 318, 327, 329, 328, 5736, 5492, 5910, 338, 5734, 5483, 5488, 5489, 5731, 5493, 494, 546, 331, 5490, 504, 332, 335, 4944, 5491, 5166, 4939, 333, 4942, 363, 5912, 5167, 4941, 334, 336, 337, 4945, 5735, 361, 5482, 3969, 316, 6206, 4943, 339, 359, 5485, 5384, 6209, 362, 6207, 6208, 340, 360, 6055, 507, 5911, 4940, 341, 5732, 5495, 6054, 540, 342, 503, 5885, 5388, 5389, 6204, 6205, 4946, 343, 6348, 5390, 5391, 5392, 506, 5154, 6212, 344, 345, 346, 351, 352, 356, 6349, 6211, 354, 355, 5387, 357, 358, 509, 492, 5383);
allItems[5]  = new Array("04", "Leg armors", "equip_leg.png", 218, 219, 5727, 5479, 5480, 6052, 220, 5906, 222, 223, 221, 224, 4936, 225, 226, 228, 5153, 227, 5907, 229, 3966, 230, 4937, 5728, 5729, 5908, 234, 235, 238, 6053, 5909, 3967, 233, 236, 4935, 232, 244, 237, 231, 239, 243, 240, 242, 241);
allItems[6]  = new Array("05", "Hand armors", "equip_hand.png", 245, 6475, 246, 5884, 6343, 253, 6341, 6342, 251, 252, 6338, 6339, 247, 248, 6345, 6346, 550, 249, 543, 542, 6344, 254, 6347, 5481, 6340, 533);
allItems[7]  = new Array("06", "Polearms", "equip_polearm.png", 552, 89, 90, 91, 491, 132, 101, 92, 111, 5371, 93, 94, 99, 123, 6584, 6585, 6586, 6587, 6588, 6589, 6590, 95, 100, 107, 116, 103, 133, 104, 108, 4754, 96, 109, 4753, 112, 98, 120, 122, 110, 102, 5856, 118, 5855, 113, 106, 5857, 119, 105, 114, 5858, 117, 4692, 124, 115, 97, 126, 128, 531, 532, 530);
allItems[8]  = new Array("07", "Two handed", "equip_twohand.png", 502, 129, 130, 137, 131, 136, 139, 138, 519, 147, 134, 189, 142, 149, 135, 140, 145, 146, 152, 143, 155, 151, 148, 150, 153, 154, 518, 158, 6332, 141, 144, 517, 6198, 156, 3320, 157, 159, 522, 521, 160);
allItems[9]  = new Array("08", "One handed", "equip_onehand.png", 489, 161, 162, 164, 165, 166, 168, 500, 3322, 167, 173, 172, 551, 171, 554, 169, 163, 5900, 174, 170, 5372, 177, 178, 180, 175, 184, 185, 187, 183, 181, 190, 186, 499, 188, 200, 192, 197, 196, 182, 176, 205, 179, 191, 202, 194, 3195, 201, 195, 3194, 193, 207, 516, 203, 209, 206, 208, 204, 213, 211, 198, 520, 215, 212, 6591, 3192, 3196, 3298, 217, 3190, 216, 210, 3193, 6022, 3323, 199, 510, 214, 523, 6021, 3191, 4755);
allItems[10] = new Array("09", "Shields", "equip_shield.png", 490, 497, 488, 508, 52, 49, 53, 58, 51, 50, 54, 60, 59, 55, 74, 75, 79, 56, 57, 62, 80, 505, 496, 498, 61, 493, 72, 64, 66, 70, 73, 548, 501, 77, 85, 76, 6019, 71, 83, 86, 81, 82, 78, 63, 65, 67, 68, 69, 84, 6018, 87, 6020, 544, 88);
allItems[11] = new Array("10", "Bows", "equip_bow.png", 17, 18, 19, 16, 21, 5141, 22, 20);
allItems[12] = new Array("11", "Arrows", "equip_arrow.png", 481, 482, 484, 483);
allItems[13] = new Array("12", "Crossbows", "equip_crossbow.png", 11, 12, 13, 14, 15);
allItems[14] = new Array("13", "Bolts", "equip_bolt.png", 485, 486);

var items = document.getElementsByClassName("item");
var itemsSorted = [];
var itemCount = [];
var categoryCount = new Array();

function getCategoryById(id)
{
for(var i = 0; i < allItems.length; i++)
{
if(allItems[i].indexOf(parseInt(id), 3) >= 0)
return i;
}
return 0;
}

function getSortingById(id)
{
for(var i = 0; i < allItems.length; i++)
{
var x = allItems[i].indexOf(parseInt(id), 3);
if(x >= 0)
{
if(x < 10)
x = "000" + x;
else if(x < 100)
x = "00" + x;
else if(x < 100)
x = "0" + x;
return allItems[i][0] + "_" + x;
}
}
return "0";
}

function sortItems()
{
var funcSort = function(a, b)
{
akey = a.getAttribute("sort");
bkey = b.getAttribute("sort");
asubkey = parseInt(a.getAttribute("itemcondition"));
bsubkey = parseInt(b.getAttribute("itemcondition"));
if (akey == bkey)
{
if(asubkey < bsubkey) return 1;
if(asubkey > bsubkey) return -1;
return 0;
}
if (akey < bkey) return -1;
if (akey > bkey) return 1;
}

itemsSorted.sort(funcSort);

for(var i = 0; i < itemsSorted.length; i++)
{
itemsSorted[i].parentNode.appendChild(itemsSorted[i]);
}
}

function addItemEvents()
{
for(var i = 0; i < itemsSorted.length; i++)
{
    (function (i) {
        itemsSorted[i].getElementsByTagName("img")[0].onclick = function () {
        var id = itemsSorted[i].getAttribute("itemid");
        if(id != "0")
popupShow("http://c-rpg.net/index.php?page=itemdetail&id=" + id)
        };
    }) (i);
}
}

function showAllItems()
{
var shoppages = document.getElementById("shoppages").childNodes;
for(var i = 0; i < shoppages.length; i++)
{
shoppages[i].setAttribute("style", "");
}
}

function addShopTabAll()
{
var tab = document.getElementById("all_tab");
if("" + tab == "null")
{
tab = document.createElement("a");
tab.setAttribute("id", "all_tab");
tab.setAttribute("class", "shop_type");
tab.setAttribute("href", "?buy=all");
var img = document.createElement("img");
img.setAttribute("src", "img/equip_inv.png");
tab.appendChild(img);
document.getElementById("shoptabs").appendChild(tab);
}
tab.setAttribute("onclick", "setTab('#all_tab', '#itp_type_all');");
}

function addShopItemConditionSelect()
{
var select = document.createElement("select");
select.setAttribute("id", "showShopItemsByCondition");
select.setAttribute("style", "text-align: center;");
var opt;
for(var i = 3; i >= -2; i--)
{
opt = document.createElement("option");
if(GM_getValue("showShopItemsByCondition", -2) == i)
opt.setAttribute("selected", "selected");
opt.innerHTML = (i > 0 ? "+" : "") + i;
select.appendChild(opt);
}
select.addEventListener("change", updateShopView, false);
var tab = document.getElementById("buy_page");
tab.insertBefore(select, tab.firstChild);
tab.insertBefore(document.createTextNode("Hide items lower than level "), select)
}

function updateShopView()
{
var select = document.getElementById("showShopItemsByCondition");
var showCondition = select.options[select.options.selectedIndex].value;
GM_setValue("showShopItemsByCondition", showCondition);

for(var i = 0; i < itemsSorted.length; i++)
{
var condition = parseInt(itemsSorted[i].getAttribute("itemcondition"));
itemsSorted[i].setAttribute("style", (condition < showCondition ? "display: none;" : ""));
}
}

function addInventoryOverView()
{
var div = document.createElement("div");
var str = "";

str += "<table width='100%' border='0'>";
str += "<tr><td valign='top'><table border='0'>";
for(var i = 0; i < categoryCount.length; i++)
{
str += "<tr><td><img src='/img/" + allItems[i][2] + "' width='15px'></td>";
str += "<td>" + allItems[i][1] + ": <td align='right'><strong>" + categoryCount[i] + "</strong></td></tr>";
if((i == 2) || (i == 6) || (i == 10))
str += "</table></td><td valign='top'><table border='0'>";
}
str += "</table></td></tr>";
str += "</table>";

div.innerHTML = str;
itemsSorted[0].parentNode.insertBefore(div, itemsSorted[0].parentNode.firstChild);
}

function pageIs(page)
{
if((page == cPageMap) && (document.location.href.indexOf("http://strategus.c-rpg.net/index.php") >= 0))
return true;
if(document.location.href.indexOf("http://strategus.c-rpg.net/news.php?" + page) >= 0)
return true;
return false;
}

function popupShow(url)
{
var popup = document.createElement("div");
popup.setAttribute("id", "popupframe");
var frm = document.createElement("iframe");
frm.setAttribute("allowtransparency", "true");
frm.setAttribute("src", url);
var btn = document.createElement("img");
btn.setAttribute("src", "http://c-rpg.net/img/border_close_button.png");
btn.setAttribute("title", "Close");
btn.addEventListener("click", popupClose, false);
popup.addEventListener("click", popupClose, false);
popup.appendChild(frm);
popup.appendChild(btn);
document.body.appendChild(popup);
}

function popupClose()
{
var popup = document.getElementById("popupframe");
if(popup != null)
popup.parentNode.removeChild(popup);
}

function setStylesheets()
{
var css = "";

// Inventory/Towncenter
if(pageIs(cPageShop))
{
css += ".conditionbad { background-color: rgba(200, 0, 0, 0.1); }";
css += ".conditiongood { background-color: rgba(0, 200, 0, 0.1); }";
}
else
{
css += ".conditionbad { background-color: rgba(100, 0, 0, 0.1); } ";
css += ".conditiongood { background-color: rgba(0, 100, 0, 0.1); } ";
}
css += ".myown { background-color: rgba(0, 0, 255, 0.1) !important; } ";
css += ".cheap { background-color: rgba(0, 100, 0, 0.1); } ";
css += ".cheaper { background-color: rgba(0, 200, 0, 0.1); } ";

// Popup
css += "#popupframe { background: url('http://c-rpg.net/img/bgoverlay75.png') repeat scroll 0 0 transparent; width: 100%; height: 100%; top: 0; left: 0; position: fixed; z-index: 99; }";
css += "#popupframe iframe { position: absolute; top: 120px; left: 250px; width: 676px; height: 600px; z-index: 100; border: none; }";
css += "#popupframe img { z-index: 101; position: absolute; top: 120px; left: 864px; padding: 10px; cursor: pointer; }";


// Cursors
/*
css += "#player_info li.sendaction:nth-of-type(9) { cursor: url(http://img855.imageshack.us/img855/7936/followmousepointer.png), pointer; }";
css += "#player_info li.sendaction:nth-of-type(8) { cursor: url(http://img846.imageshack.us/img846/3710/attackmousepointer.png), pointer; }";
css += "#player_info li.sendaction:nth-of-type(9):not(:last-child) { cursor: url(http://img826.imageshack.us/img826/4296/trademousepointer.png), pointer; }";
css += "#player_info li.sendaction:nth-of-type(10) { cursor: url(http://img855.imageshack.us/img855/7936/followmousepointer.png), pointer; }";
*/

// Buttons Player-Menu
//css += "#player_menu { overflow: hidden; }";
/*css += "#player_menu li:first-of-type, #player_menu li#move_player, #player_menu li#stop_player { float: right; font-size: 0px; overflow: hidden; vertical-align: middle; text-align: center; color: black; opacity: 0.7; margin-top: 5px; margin-bottom: 5px; }";
css += "#player_menu li:first-of-type:after, #player_menu li#move_player:after, #player_menu li#stop_player:after { font-size: 12px; font-weight: bold; line-height: 22px; }";
css += "#player_menu li#move_player:active { color: red; opacity: 1.0; }";
css += "#player_menu li:first-of-type:hover, #player_menu li#move_player:hover, #player_menu li#stop_player:hover { color: white; opacity: 1.0; }";

css += "#player_menu li#stop_player { width: 92px; background: url(http://img13.imageshack.us/img13/430/attackplayerbutton.png) transparent no-repeat; }";
css += "#player_menu li#stop_player:after { content: 'Stop'; }";

css += "#player_menu li#move_player { width: 90px; margin-left: -9px; background: url(http://img542.imageshack.us/img542/9219/tradeplayerbutton.png) transparent no-repeat; }";
css += "#player_menu li#move_player:after { content: 'Move'; }";

css += "#player_menu li:first-of-type { width: 97px; margin-right: 20px; margin-left: -5px; background: url(http://img547.imageshack.us/img547/6402/followplayerbutton.png) transparent no-repeat; }";
css += "#player_menu li:first-of-type:after { content: 'My Stats'; }";

css += "#player_menu li:nth-of-type(3):not(#stop_player) { clear: both; }";
css += "#player_menu li:nth-of-type(4) { clear: both; }";

css += "#player_menu li[id^='location'] { color: darkred; }";
css += "#player_menu li[id^='hero']:not(:first-of-type) { color: darkgreen; }";

css += "#player_menu { min-height: 50px; }";
    */
// Mainheader from cRPG
css += "#chatlink { display: none; }";
//css += "#settings { display: none; }";
css += "#settings #showpartynames, #settings #showtownnames, #settings #showpartiesarmysizethreshold, #settings label[for=showpartynames], #settings label[for=showtownnames], #settings label[for=showpartiesarmysizethreshold] { display: none; }";
css += "#settings label a { color: red; position: relative; top: -35px; left: 180px; }";
css += "#settings {"
+ " background: url(http://c-rpg.net/img/bg_info.png) no-repeat scroll 0 0 transparent;"
+ " color: #DDBE8F;"
+ " height: 49px;"
+ " padding: 11px 0 0 5px;"
+ " position: absolute;"
+ " top: 10px;"
+ " width: 262px;"
+ "}";

// cRPG-Layout
css += "#headerCRPG {"
+ " height: 110px;"
+ " left: 0;"
+ " position: absolute;"
+ " right: 0;"
+ " top: 0;"
+ " z-index: 2;"
+ "}"
+ "#headerCRPG h1 {"
+ " background: url(http://c-rpg.net/img/bg_logo_strategus.png) no-repeat scroll 0 0 transparent;"
+ " height: 96px;"
+ " left: 275px;"
+ " position: absolute;"
+ " top: 16px;"
+ " width: 77px;"
+ " z-index: 3;"
+ "}"
+ "#headerCRPG h1 span {"
+ " display: none;"
+ "}"
+ "#headerCRPG h2 {"
+ " font-size: 15px;"
+ " margin: 0px;"
+ "}"
+ "#headerCRPG .info {"
+ " background: url(http://c-rpg.net/img/bg_info.png) no-repeat scroll 0 0 transparent;"
+ " color: #DDBE8F;"
+ " height: 49px;"
+ " left: 10px;"
+ " padding: 11px 0 0 15px;"
+ " position: absolute;"
+ " top: 10px;"
+ " width: 252px;"
+ "}"
+ "#headerCRPG .info .char {"
+ " display: block;"
+ " font-size: 15px;"
+ " font-weight: bold;"
+ " height: 21px;"
+ " line-height: 19px;"
+ "}"
+ "#headerCRPG .info .itemCRPG {"
+ " background-position: left center;"
+ " background-repeat: no-repeat;"
+ " display: inline-block;"
+ " font-size: 12px;"
+ " font-weight: bold;"
+ " line-height: 16px;"
+ " padding-left: 18px;"
+ "}"
+ "#headerCRPG .info .itemCRPG + .itemCRPG {"
+ " margin-left: 10px;"
+ "}"
+ "#headerCRPG .info a.itemCRPG {"
+ " color: #DDBE8F;"
+ " text-decoration: none;"
+ "}"
+ "#headerCRPG .info a.itemCRPG:hover {"
+ " color: white;"
+ "}"
+ "#headerCRPG .info .itemCRPG.gold {"
+ " background-image: url(http://c-rpg.net/img/hi_gold.png);"
+ "}"
+ "#headerCRPG .info .itemCRPG.message {"
+ " background-image: url(http://c-rpg.net/img/hi_message.png);"
+ "}"
+ "#headerCRPG .info .itemCRPG.battle {"
+ " background-image: url(http://c-rpg.net/img/hi_battle.png);"
+ "}"
+ "#headerCRPG .info .itemCRPG.generation {"
+ " background-image: url(http://c-rpg.net/img/hi_emblem.png);"
+ "}"
+ "#headerCRPG .info .itemCRPG.level {"
+ " background-image: url(http://c-rpg.net/img/hi_sword.png);"
+ "}"
+ "#headerCRPG .nav {"
+ " background: url(http://c-rpg.net/img/bg_pole.png) no-repeat scroll right 18px transparent;"
+ " left: 349px;"
+ " position: absolute;"
+ " top: 0;"
+ " white-space: nowrap;"
+ " z-index: 4;"
+ "}"
+ "#headerCRPG .nav .dynamic, #headerCRPG .nav .static {"
+ " display: inline-block;"
+ " vertical-align: top;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary {"
+ " margin: 4px 0 0 2px;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a {"
+ " background: url(http://c-rpg.net/img/button_gray_center.png) no-repeat scroll left center transparent;"
+ " display: inline-block;"
+ " height: 26px;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a span {"
+ " border-left: 1px solid rgba(255, 255, 255, 0.5);"
+ " border-right: 1px solid rgba(0, 0, 0, 0.25);"
+ " color: rgba(0, 0, 0, 0.75);"
+ " display: inline-block;"
+ " font-size: 12px;"
+ " font-weight: bold;"
+ " height: 20px;"
+ " line-height: 18px;"
+ " margin: 3px 0;"
+ " padding: 2px 10px 0;"
+ " text-decoration: none;"
+ " text-shadow: 0 1px 0 white;"
+ " text-transform: uppercase;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a span {"
+ " line-height: 20px;"
+ " padding: 0 10px;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:hover span {"
+ " color: black;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:first-child {"
+ " background-clip: content-box, padding-box;"
+ " background-image: url(http://c-rpg.net/img/button_gray_center.png), url(http://c-rpg.net/img/button_gray_start.png);"
+ " background-origin: content-box, padding-box;"
+ " background-position: left center, left center;"
+ " padding-left: 15px;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:last-child {"
+ " background-clip: content-box, padding-box;"
+ " background-image: url(http://c-rpg.net/img/button_gray_center.png), url(http://c-rpg.net/img/button_gray_end.png);"
+ " background-origin: content-box, padding-box;"
+ " background-position: right center, right center;"
+ " padding-right: 15px;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:only-child {"
+ " background-clip: content-box, padding-box, padding-box;"
+ " background-image: url(http://c-rpg.net/img/button_gray_center.png), url(http://c-rpg.net/img/button_gray_start.png), url(http://c-rpg.net/img/button_gray_end.png);"
+ " background-origin: content-box, padding-box, padding-box;"
+ " background-position: right center, left center, right center;"
+ " padding-left: 15px;"
+ " padding-right: 15px;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:first-child span {"
+ " border-left: 0 none;"
+ " padding-left: 0;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:last-child span {"
+ " border-right: 0 none;"
+ " padding-right: 0;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:only-child span {"
+ " border-left: 0 none;"
+ " border-right: 0 none;"
+ " padding-left: 0;"
+ " padding-right: 0;"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:hover {"
+ " background-image: url(http://c-rpg.net/img/button_gold_center.png);"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:first-child:hover {"
+ " background-image: url(http://c-rpg.net/img/button_gold_center.png), url(http://c-rpg.net/img/button_gold_start.png);"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:last-child:hover {"
+ " background-image: url(http://c-rpg.net/img/button_gold_center.png), url(http://c-rpg.net/img/button_gold_end.png);"
+ "}"
+ "#headerCRPG .nav .dynamic .primary a:only-child:hover {"
+ " background-image: url(http://c-rpg.net/img/button_gold_center.png), url(http://c-rpg.net/img/button_gold_start.png), url(http://c-rpg.net/img/button_gold_end.png);"
+ "}"
+ "#headerCRPG .nav .dynamic .secondary {"
+ " height: 20px;"
+ " margin: 4px 0 0 3px;"
+ " text-align: right;"
+ "}"
+ "#headerCRPG .nav .dynamic .secondary a {"
+ " background-attachment: scroll, scroll;"
+ " background-clip: border-box, padding-box;"
+ " background-color: transparent;"
+ " background-image: url(http://c-rpg.net/img/bg_tab_small_start.png), url(http://c-rpg.net/img/bg_tab_small_end.png);"
+ " background-origin: border-box, border-box;"
+ " background-position: left center, right center;"
+ " background-repeat: no-repeat, no-repeat;"
+ " background-size: auto auto, auto auto;"
+ " border-left: 8px solid transparent;"
+ " color: rgba(222, 200, 166, 0.5);"
+ " display: inline-block;"
+ " font-size: 12px;"
+ " font-weight: bold;"
+ " line-height: 17px;"
+ " margin-right: 2px;"
+ " padding-right: 8px;"
+ " text-decoration: none;"
+ "}"
+ "#headerCRPG .nav .dynamic .secondary a:hover {"
+ " color: #DEC8A6;"
+ "}"
+ "#headerCRPG .nav .dynamic .secondary a.current {"
+ " color: #DEC8A6;"
+ " font-weight: bold;"
+ "}"
+ "#headerCRPG .nav .static {"
+ " padding-right: 10px;"
+ "}"
+ "#headerCRPG .nav .static a {"
+ " background-position: left top;"
+ " background-repeat: no-repeat;"
+ " display: inline-block;"
+ " margin-top: 16px;"
+ " vertical-align: top;"
+ "}"
+ "#headerCRPG .nav .static a span {"
+ " display: none;"
+ "}"
+ "#headerCRPG .nav .static a.donate {"
+ " background-image: url(http://c-rpg.net/img/bg_flag_donate.png);"
+ " height: 39px;"
+ " width: 24px;"
+ "}"
+ "#headerCRPG .nav .static a.forum {"
+ " background-image: url(http://c-rpg.net/img/bg_flag_forum.png);"
+ " height: 37px;"
+ " width: 26px;"
+ "}"
+ "#headerCRPG .nav .static a.download {"
+ " background-image: url(http://c-rpg.net/img/bg_flag_download.png);"
+ " height: 47px;"
+ " width: 24px;"
+ "}"
+ "#headerCRPG .nav .static a.help {"
+ " background-image: url(http://c-rpg.net/img/bg_flag_help.png);"
+ " height: 44px;"
+ " width: 18px;"
+ "}";

// Viewer
css += "#sv-overlay { background: url(../img/sub_t.png) no-repeat scroll center top border-box, url(../img/sub_b.png) no-repeat scroll center bottom border-box, url(../img/sub_c.png) repeat-y scroll center top padding-box transparent; }";
css += "#sv-overlay { border-bottom: 22px solid transparent; border-top: 22px solid transparent; width: 300px; left: 10px; }";
css += "#sv-overlay { position: fixed !important; bottom: 10px; top: auto !important; left: 10px !important; }";
css += "#sv-overlay span { color: black; padding-left: 20px; font-size: 12px; }";
css += "#sv-overlay span[id^='sv'] { color: darkblue; padding-left: 0px; }";

var styleElement = document.createElement("style");
styleElement.type = "text/css";
if (styleElement.styleSheet){
styleElement.styleSheet.cssText = css;
} else {
styleElement.appendChild(document.createTextNode(css));
}
document.getElementsByTagName("head")[0].appendChild(styleElement);
}

function addSomeNiceStuff(strategusUsername)
{
var e1, e2, e3, e4;
var hd = document.createElement("div");
hd.setAttribute("id", "headerCRPG");
e1 = document.createElement("h1");
e1.innerHTML = "<span>cRPG beta</span>";
hd.appendChild(e1);

// Info
e1 = document.createElement("div");
e1.setAttribute("class", "info");
// Username
e2 = document.createElement("div");
e2.setAttribute("class", "char");
e2.innerHTML = strategusUsername;
e1.appendChild(e2);
// Gold
e2 = document.createElement("div");
e2.setAttribute("class", "itemCRPG gold");
e2.innerHTML = "0"; // TODO: Gold
e1.appendChild(e2);
// Messages
e2 = document.createElement("a");
e2.setAttribute("class", "itemCRPG message");
e2.setAttribute("title", "Show messages");
e2.setAttribute("href", "#");
e2.innerHTML = "Messages";
e2.addEventListener("click", function() { popupShow("http://c-rpg.net/index.php?page=messenger"); }, false);
e1.appendChild(e2);
hd.appendChild(e1);

// Nav
e1 = document.createElement("div");
e1.setAttribute("class", "nav");
// Dynamic
e2 = document.createElement("div");
e2.setAttribute("class", "dynamic");
// secondary
e3 = document.createElement("div");
e3.setAttribute("class", "secondary");
// Chat
e4 = document.createElement("a");
e4.setAttribute("title", "Join our chat channel #mount&amp;blade-crpg @ qnet.org");
e4.setAttribute("target", "_blank");
e4.setAttribute("href", "http://webchat.quakenet.org/?channels=mount%26blade-crpg");
e4.innerHTML = "Join chat";
e3.appendChild(e4);
// Map settings
/* e4 = document.createElement("a");
e4.setAttribute("title", "Show map settings");
e4.setAttribute("href", "#");
e4.setAttribute("onmouseover", "Javascript:document.getElementById('settings').setAttribute('style', 'display: block;');");
e4.setAttribute("onmouseout", "Javascript:document.getElementById('settings').setAttribute('style', 'display: hidden;');");
e4.innerHTML = "Map settings";
e3.appendChild(e4);*/
e2.appendChild(e3);

// primary
e3 = document.createElement("div");
e3.setAttribute("class", "primary");
// cRPG
e4 = document.createElement("a");
e4.setAttribute("title", "Visit cRPG-website");
e4.setAttribute("href", "http://c-rpg.net/");
e4.setAttribute("target", "_blank");
e4.innerHTML = "<span>cRPG</span>";
e3.appendChild(e4);
// Factions
e4 = document.createElement("a");
e4.setAttribute("title", "Show Strategus factions");
e4.setAttribute("href", "#");
e4.addEventListener("click", function() { popupShow("http://c-rpg.net/index.php?page=strategusinfofaction"); }, false);
e4.innerHTML = "<span>Factions</span>";
e3.appendChild(e4);
// Locations
e4 = document.createElement("a");
e4.setAttribute("title", "Show Strategus locations");
e4.setAttribute("href", "#");
e4.addEventListener("click", function() { popupShow("http://c-rpg.net/index.php?page=strategusinfolocation"); }, false);
e4.innerHTML = "<span>Locations</span>";
e3.appendChild(e4);
// Heroes
e4 = document.createElement("a");
e4.setAttribute("title", "Search for Strategus heroes");
e4.setAttribute("href", "#");
e4.addEventListener("click", function() { popupShow("http://c-rpg.net/index.php?page=strategusinfohero"); }, false);
e4.innerHTML = "<span>Heroes</span>";
e3.appendChild(e4);
// cRPG Battles
e4 = document.createElement("a");
e4.setAttribute("title", "Visit cRPG battle page");
e4.setAttribute("href", "http://c-rpg.net/index.php?page=battlesupcoming");
e4.setAttribute("target", "_blank");
e4.innerHTML = "<span>Battles</span>";
e3.appendChild(e4);
e2.appendChild(e3);
e1.appendChild(e2);
// Static
e2 = document.createElement("div");
e2.setAttribute("class", "static");
e2.innerHTML = '<a class="forum" target="_blank" href="http://c-rpg.net/?page=forumlogin" title="Visit forums"><span>Forum</span></a>'
+ '<a class="download" target="_blank" href="http://c-rpg.net/cRPGLauncher.exe" title="Download latest version"><span>Download</span></a>'
+ '<a class="donate" target="_blank" href="http://c-rpg.net/?page=donate" title="Help with a donation"><span>Donate</span></a>'
+ '<a class="help" target="_blank" href="http://wiki.c-rpg.net/index.php?title=Skills" title="Find more information in the wiki"><span>Help</span></a>';
e1.appendChild(e2);
hd.appendChild(e1);
document.getElementById("header").appendChild(hd);
}

function echo(str)
{
console.log(str);
}

function sortedInventoryMain()
{
var strategusUsername = "None";
if(!pageIs(cPageMap))
{
strategusUsername = document.getElementsByTagName("h2")[0].innerHTML;
GM_setValue("strategusUsername", strategusUsername);
}
else
{
strategusUsername = GM_getValue("strategusUsername", "None");
}

setStylesheets();
addSomeNiceStuff(strategusUsername);

for(var i = 0; i < allItems.length; i++)
{
categoryCount[i] = 0;
for(var j = 3; j < allItems[i].length; j++)
itemCount[j] = 0;
}

for(var i in items)
{
if (items[i].nodeType == 1) { // get rid of the whitespace text nodes
itemsSorted.push(items[i]);
}
}

for(var i = 0; i < items.length; i++)
{
var img = items[i].getElementsByClassName("header")[0].getElementsByTagName("img")[0];
var itemId = "0";
var itemCondition = "0";
if(img.hasAttribute("rel"))
{
var rel = img.getAttribute("rel");
itemId = rel.substring(16, rel.indexOf("&m="));
itemCondition = rel.substring(rel.indexOf("&m=") + 3);
}
itemsSorted[i].setAttribute("itemid", itemId);
itemsSorted[i].setAttribute("sort", getSortingById(itemId));
itemsSorted[i].setAttribute("itemcondition", itemCondition);
if(parseInt(itemCondition) < 0)
itemsSorted[i].setAttribute("class", itemsSorted[i].getAttribute("class") + " conditionbad");
else if(parseInt(itemCondition) > 0)
itemsSorted[i].setAttribute("class", itemsSorted[i].getAttribute("class") + " conditiongood");
itemsSorted[i].parentNode = items[i].parentNode;

var desc = itemsSorted[i].getElementsByClassName("desc")[0].innerHTML;
var a = desc.indexOf("Number: ");
var count = desc.slice(desc.indexOf("<strong>", a) + 8, desc.indexOf("</strong>", a)).replace(",", "").replace(".", "");
itemCount[itemId] += parseInt(count);
categoryCount[getCategoryById(itemId)] += parseInt(count);

if(itemId == "0")
{
var name = items[i].getElementsByClassName("header")[0].getElementsByClassName("name")[0].innerHTML;
var origin = "<i>" + itemOrigin["place"][itemOrigin["good"].indexOf(name)] + "</i>";
if(pageIs(cPageFaction))
origin = "<br/>" + origin;
itemsSorted[i].getElementsByClassName("desc")[0].innerHTML += origin;
}
}

if(pageIs(cPageTowncenter))
{
var table = document.getElementsByClassName("towncenter")[0];
var trs = table.getElementsByTagName("tr");
for(var i = 0; i < trs.length; i++)
{
var tds = trs[i].getElementsByTagName("td");
if(tds.length > 9)
{
var or = itemOrigin["place"][itemOrigin["good"].indexOf(tds[4].innerHTML.trim())];
if("" + or != "undefined")
tds[4].innerHTML += "<br><i>(" + or + ")</i>"
if(tds[9].innerHTML == strategusUsername)
trs[i].setAttribute("class", trs[i].getAttribute("class") + " myown");
if(parseFloat(tds[6].innerHTML.replace(",", "")) < parseFloat(tds[5].innerHTML))
trs[i].setAttribute("class", trs[i].getAttribute("class") + " cheap");
if(parseFloat(tds[8].innerHTML.replace(",", "")) < parseFloat(tds[5].innerHTML))
trs[i].setAttribute("class", trs[i].getAttribute("class") + " cheaper");
}
}
}

if(pageIs(cPageInventory) || pageIs(cPageFaction))
{
sortItems();
}

if(pageIs(cPageShop))
{
addShopTabAll();
addShopItemConditionSelect();
updateShopView();
}

if(pageIs(cPageShop) || pageIs(cPageInventory) || pageIs(cPageFaction))
{
addItemEvents();
}

if(pageIs(cPageShopAll))
showAllItems();

if(pageIs(cPageInventory))
addInventoryOverView();
}

sortedInventoryMain();
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Chris_the_Animal on November 14, 2014, 12:31:28 pm
Somehow I cannot open the link given by any of you guys.
Anyone knows how to fix that?
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: njames89 on April 09, 2015, 04:02:15 am
This strategus tool still works for most items. I am currently using it with tampermonkey for google chrome. Sorts items by type (except for new ones they all get sorted together) and gives you a rough estimate (without new items) of how much gear you have. Still very useful IMO.

James prayed for the original creator of the tool to return.
Title: Re: Strategus sorted inventory 4.1 for Strategus 4 now with Eye Candy
Post by: Dutchydave on April 09, 2015, 07:18:23 am
I find it to be a lot more glitchy with chrome, works a lot better with firefox but still all the new items are counted as trade goods. Saves countless hours and I prey with you James on this.