TH Greasemonkey thread 2.0

Talk about the game. What game? The game with the power? What power? The power of ... aw, skip it.

Moderator: Moderators

malk-a-mite
Posts: 549
Joined: Sat Dec 29, 2007 12:42 am
Contact:

TH Greasemonkey thread 2.0

Post by malk-a-mite »

In an attempt to allow more people access to the GreaseMonkey tools the community has developed I think it's time to retire the old thread after taking from it the good and leaving the rest.

We can link all the active scripts in this first post and only use the non-functioning scripts as a jumping off point.

Things you need (a minimum):
Firefox:
http://www.mozilla.com/en-US/firefox/

Greasemonkey
https://addons.mozilla.org/en-US/firefox/addon/748

Things to know about:
Twilight Heroes Wiki links (need to be vetted and cleaned up):
http://th.blandsauce.com/wiki/Greasemonkey

Userscripts.org (search term Twilightheroes):
http://userscripts.org/scripts/search?q=twilightheroes
==
insert clever .sig file here
==
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

malk-a-mite wrote:In an attempt to allow more people access to the GreaseMonkey tools the community has developed I think it's time to retire the old thread after taking from it the good and leaving the rest.
Good idea, but someone needs to move the "good stuff" here.
Things to know about:
Twilight Heroes Wiki links (need to be vetted and cleaned up):
http://th.blandsauce.com/wiki/Greasemonkey
I'm not sure what more there is to vet and clean up. I did that just a couple of weeks ago, and we do our best to keep that page up to date. I'm not aware of any major discrepancy, and anyone is welcome to correct one if there is, or report it in the talk page.
malk-a-mite
Posts: 549
Joined: Sat Dec 29, 2007 12:42 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by malk-a-mite »

Muhandes wrote: Good idea, but someone needs to move the "good stuff" here.

I'm not sure what more there is to vet and clean up. I did that just a couple of weeks ago, and we do our best to keep that page up to date. I'm not aware of any major discrepancy, and anyone is welcome to correct one if there is, or report it in the talk page.
Hence the need for more than one person to start moving stuff over.

As for the vetting - the assembly script is painfully out of date I know, might be better to have it reference a page on the wiki maybe that can be updated with the combos instead of having them in flat file format in the script?
==
insert clever .sig file here
==
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

malk-a-mite wrote:
Muhandes wrote: Good idea, but someone needs to move the "good stuff" here.

I'm not sure what more there is to vet and clean up. I did that just a couple of weeks ago, and we do our best to keep that page up to date. I'm not aware of any major discrepancy, and anyone is welcome to correct one if there is, or report it in the talk page.
Hence the need for more than one person to start moving stuff over.

As for the vetting - the assembly script is painfully out of date I know, might be better to have it reference a page on the wiki maybe that can be updated with the combos instead of having them in flat file format in the script?
If someone is willing to write a script that will consult the tables in http://th.blandsauce.com/wiki/Combination_Items I'd be more than happy to make sure they are always as up to date as we can. We can also move them to a separate pages (I was planning on doing that anyway). I also have no problem with changing the table formats a bit to make them easier to parse.
Satan
Posts: 1855
Joined: Mon Nov 19, 2007 6:29 pm
Location: Florida
Contact:

Re: TH Greasemonkey thread 2.0

Post by Satan »

I think the better solution is to use a line-by-line format. I can compile a document of such a format and host it on my website, and make a php script to add combinations to the list. The GM script can add the items automagically, and anyone else would be able to add items found when not using the bot (it'd assume correctness on the part of the user). I could make it a double-purpose script (by GM and php) to handle welding as well with a few crafty regex's. And I haven't forgotten about your other script that you requested. Just woke up, should be getting to it shortly.
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

As I already maintain a list on the wiki I rather not maintain a second one. If you want to create, host and maintain a second list that is perfectly fine.
I can make the list in the wiki one item per line, if it helps, that's not a problem.
Satan
Posts: 1855
Joined: Mon Nov 19, 2007 6:29 pm
Location: Florida
Contact:

Re: TH Greasemonkey thread 2.0

Post by Satan »

You're not understanding me. It'd just make the script much simpler if I can use a format of the type 'itemnum1:itemnum2\n', so that the entire document is only data, nothing to regexp. And I /did/ say it would be hosted on my website and compiled by me :/ Second, aside from the initial compiling of said list, the list could be entirely self-maintained. The script could report the new combinations in the correct format and then a php script at my server would store it in the list that all the scripts draw from. The only time the list would have to be manually maintained is if you found the new combination manually without using the script. That is, if someone else found it without using the script. And all you'd have to do is enter the two item id's into a form on my site. Or wait for the script to find it and auto-add it.

EDIT: I could even integrate into the script a thing to auto-update the wiki.
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

Go with whatever you think is simplest. Complexity could be added later.
User avatar
AldenteVonTino
Posts: 461
Joined: Thu Oct 01, 2009 10:49 am
Location: Florida, USA
Contact:

Re: TH Greasemonkey thread 2.0

Post by AldenteVonTino »

Hi there.
I finally decided to install GM and see what it could do for me.
I installed TH Adventure Script (v 3.2.2) and Quick Assembly and Welding in TH.
I was under the impression that when the scripts are installed, fewer clicks were necessary? Seems I still have to click as often as I did w/o them? (NOTE: This situation only seems to involve TH Adventure Script (v 3.2.2). Quick Assembly and Welding in TH works well.)
:?: :? :?:
When you do the best you can it's called a try!
If you don't you need to ask yourself why?
Just give it a thought,
And failure is worth naught.
And then like an eagle you shall fly!
Image
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

Could you be more specific as to what isn't working with TH Adventure Script? Are you getting a settings window on the right below the image of foes? If you do, what happens when you set it to something like "Attack Only" and set it to run for a couple of turns?
User avatar
AldenteVonTino
Posts: 461
Joined: Thu Oct 01, 2009 10:49 am
Location: Florida, USA
Contact:

Re: TH Greasemonkey thread 2.0

Post by AldenteVonTino »

Under that condition, 3 turns, it just sits there when I click start.
When I click to attack, it resets to 2 and a new encounter happens.
Maybe I'm just killing the things too easy?
**shrug**
:?:
When you do the best you can it's called a try!
If you don't you need to ask yourself why?
Just give it a thought,
And failure is worth naught.
And then like an eagle you shall fly!
Image
Satan
Posts: 1855
Joined: Mon Nov 19, 2007 6:29 pm
Location: Florida
Contact:

Re: TH Greasemonkey thread 2.0

Post by Satan »

It might be a compatibility bug with your version of FF... Try clicking the start button twice and see what happens. If it's the same thing I have on my laptop, it should operate correctly after that, but every time it stops you'll have to click it twice to start it again. Note, a fully upgraded FF and the latest version of the script work just fine.
User avatar
Cristiona
Posts: 5118
Joined: Sun Apr 08, 2007 1:01 am
Location: the Conservatory with the lead pipe
Contact:

Re: TH Greasemonkey thread 2.0

Post by Cristiona »

Double check the HP and PP ranges for adventuring. It's possible that you're over or under the default settings. Personally, I have HP set to 50, and the PP range go from -1 to 1000.
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"
User avatar
AldenteVonTino
Posts: 461
Joined: Thu Oct 01, 2009 10:49 am
Location: Florida, USA
Contact:

Re: TH Greasemonkey thread 2.0

Post by AldenteVonTino »

lol
Actually, it does seem to work. Kinda.
The problem was I was fighting things I could kill instantly, and it DOES show a change when I fight something that takes a couple of whacks.
(What else can you expect from a Noodle-Head? I'll be quiet now.)

8) :lol: :!: :lol: 8)
EDIT:
The problem WAS in the settings. Stupid me!
When you do the best you can it's called a try!
If you don't you need to ask yourself why?
Just give it a thought,
And failure is worth naught.
And then like an eagle you shall fly!
Image
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

aiyah wrote:TH Adventure Script doesnt seem to work for me now.. can anybody check this if im wrong.. maybe just my pc.
It worked well for me today. Can you be more specific please? What settings are you using, what exactly are you doing, and what isn't working?
Harry Dresden
Posts: 1395
Joined: Tue Feb 12, 2008 1:22 pm
Contact:

Re: TH Greasemonkey thread 2.0

Post by Harry Dresden »

You still haven't said what the problem is, aside from "it's not running". Which doesn't give us anything to go on for troubleshooting. Does it show up on the page at all? Does it just not run turns when you enter the info and hit Start (or whatever it says)?
Satan
Posts: 1855
Joined: Mon Nov 19, 2007 6:29 pm
Location: Florida
Contact:

Re: TH Greasemonkey thread 2.0

Post by Satan »

Is the www / no www thing still an issue? Either way, check and see if you're logged in to www.twilightheroes.com or twilightheroes.com. It never makes a difference, except when it does >.>
Satan
Posts: 1855
Joined: Mon Nov 19, 2007 6:29 pm
Location: Florida
Contact:

Re: TH Greasemonkey thread 2.0

Post by Satan »

It's also possible that they read it and had been using it for so long that they forgot about it, then for some reason started using twilightheroes.com instead of www.twilightheroes.com.
User avatar
Cristiona
Posts: 5118
Joined: Sun Apr 08, 2007 1:01 am
Location: the Conservatory with the lead pipe
Contact:

Re: TH Greasemonkey thread 2.0

Post by Cristiona »

My nat multi just does the old "hit with stick 'til dead" method.
The churches are empty / The priest has gone home / And we are left standing / Together alone
--October Project: "Dark Time"
User avatar
AldenteVonTino
Posts: 461
Joined: Thu Oct 01, 2009 10:49 am
Location: Florida, USA
Contact:

Re: TH Greasemonkey thread 2.0

Post by AldenteVonTino »

Will there be, or is there already in existence, a script for changing reputation fast?
I would presume it would involve going to specific places, doing specific things to swap from one reputation to another. Is this possible?
:?: :idea: :?:
When you do the best you can it's called a try!
If you don't you need to ask yourself why?
Just give it a thought,
And failure is worth naught.
And then like an eagle you shall fly!
Image
Muhandes
Posts: 732
Joined: Mon Nov 03, 2008 12:54 am
Contact:

Re: TH Greasemonkey thread 2.0

Post by Muhandes »

I do reputation changes quite often and a side to side change rarely tales more than a dozen of turns. I doubt it's worth the effort to automate.
User avatar
Corrupt Shadow
Posts: 1234
Joined: Mon Dec 17, 2007 8:24 pm
Location: Baton Rouge, LA
Contact:

Re: TH Greasemonkey thread 2.0

Post by Corrupt Shadow »

Can you awesome coders come up with a script that will let auto-DD betting occur with x-number of chips until chip count falls below y-value or something of that nature?

Is that possible?
Image
I've won the 100k DD bet so many times, I should have the title "Mr. Luck"
User avatar
Corrupt Shadow
Posts: 1234
Joined: Mon Dec 17, 2007 8:24 pm
Location: Baton Rouge, LA
Contact:

Re: TH Greasemonkey thread 2.0

Post by Corrupt Shadow »

It even has a great name! ;) Thanks! I will try it today.
Image
I've won the 100k DD bet so many times, I should have the title "Mr. Luck"
User avatar
AldenteVonTino
Posts: 461
Joined: Thu Oct 01, 2009 10:49 am
Location: Florida, USA
Contact:

Re: TH Greasemonkey thread 2.0

Post by AldenteVonTino »

Autoadventure started giving me a problem. I was going to ask about it but seen the update. Uninstalled the old version and downloaded the updated version.
Well I still have the same issue:
I click start for combat and nothing happens. Everything worked well before, but sometimes, when I click the actual 'attack' button TH offers, it MAY do a couple rounds on it's own, then stop again. (I mean on the old version that is, have yet to see a complete cycle in the new version as it's the same issue?)
:?: :? :?:
When you do the best you can it's called a try!
If you don't you need to ask yourself why?
Just give it a thought,
And failure is worth naught.
And then like an eagle you shall fly!
Image
Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 1 guest