Game! - Where the stick is mightier than the sword! Forum Index Game! - Where the stick is mightier than the sword!
Official forums for Game!
 
 FAQFAQ   SearchSearch   Game!Game!   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Game cross-browser Javascript Bookmarklet

 
Post new topic   Reply to topic    Game! - Where the stick is mightier than the sword! Forum Index -> Offtopic
View previous topic :: View next topic  
Author Message
Canazza
Regular Poster


Joined: 02 Apr 2009
Posts: 16

PostPosted: Mon Jun 22, 2009 10:39 am    Post subject: Game cross-browser Javascript Bookmarklet Reply with quote

I've put together a Javascript hook for Game! in the form of a Bookmarklet (a Bookmark that executes javascript code)

the WittyRPG AutoCaster does exactly what it says on the tin, it's a very crude, basic and inefficient way of playing the game, in that it plays it for you and is scared to bits of dying and will heal up often.

It automatically Attacks/Heals/Re-engages until you have 0% Stamina. To stop, at any time, uncheck the Active button.
You can click Loot Log to view the items looted while the script has been active

to start using, and for more information go to http://canazza.co.uk/wittyRPG.html

It has been tested in Firefox 3.0.10 and Safari 4, and should work in the latest versions of Chrome and Opera. It doesn't work in Internet Explorer. Support may be forthcoming if I can be bothered...
Back to top
View user's profile Send private message
Mad Merlin
Site Admin


Joined: 14 Aug 2005
Posts: 752

PostPosted: Mon Jun 22, 2009 12:14 pm    Post subject: Reply with quote

Quote:
var LOCATION = "http://www.wittyrpg.com";//window.location;


You should use http://wittyrpg.com instead, as of about 2 weeks ago, http://www.wittyrpg.com redirects to http://wittyrpg.com (because the extra www is silly and redundant).

Also, (aside from the source) you don't link back to Game!, someone that stumbles upon the page randomly would have no idea what you're talking about.

Edit: If you care about IE, attachEvent() needs "onload", not "load", and "onclick" instead of "click", etc.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Terrific Noise
Regular Poster


Joined: 02 Jun 2009
Posts: 65

PostPosted: Mon Jun 22, 2009 11:23 pm    Post subject: Reply with quote

Works great with Chrome. Now I can keep playing and go to college too.
Back to top
View user's profile Send private message
Canazza
Regular Poster


Joined: 02 Apr 2009
Posts: 16

PostPosted: Tue Jun 23, 2009 3:02 am    Post subject: Reply with quote

Mad Merlin wrote:


Edit: If you care about IE, attachEvent() needs "onload", not "load", and "onclick" instead of "click", etc.


Thanks Merlin, I only added those bits in at the start as I intended to have IE support from the start, but when I started having getElementsByClassName I just left it.

I've changed the url it redirects to and added a link on the page Smile

[update]

I've just added a Toggle button for showing/hiding Cooking recipes or Combination Recipes you can't make.
Back to top
View user's profile Send private message
Terrific Noise
Regular Poster


Joined: 02 Jun 2009
Posts: 65

PostPosted: Sat Jun 27, 2009 11:46 pm    Post subject: Reply with quote

Bug report: Toggle Combinable Cookable does nothing in Chrome, maybe I have an older version.

Feature request: I would like a button to quickly put all my gold in the bank. Comes in handy.
Back to top
View user's profile Send private message
Canazza
Regular Poster


Joined: 02 Apr 2009
Posts: 16

PostPosted: Mon Jun 29, 2009 4:58 am    Post subject: Reply with quote

Bosh! It is so Very Happy

[edit] I tested the toggle cookables button in Chrome 2.0.172.33, it does use getElementsByClassName, so if you have an older version it won't work (but a few other things wouldn't too)
Perhaps the function of it's not quite clear.
It's designed to hide/show the cookables/combinables that you can't make (leaving only the ones you can make visible) - thus it only has uses on the Inventory and Cooking pages.
Back to top
View user's profile Send private message
Terrific Noise
Regular Poster


Joined: 02 Jun 2009
Posts: 65

PostPosted: Tue Jul 07, 2009 12:55 am    Post subject: Reply with quote

One last request, if I run out of MP but have decent HP, it should just attack.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Game! - Where the stick is mightier than the sword! Forum Index -> Offtopic All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group