UNDYING! (GM Script)

For script writing
Post Reply
User avatar
lightwolf
AFH
Posts: 426
Joined: Mon Feb 22, 2010 6:16 pm

UNDYING! (GM Script)

Post by lightwolf » Fri Feb 20, 2015 1:26 pm

UNDYING!
Replaces the quick 'Go right back to the fight!' text with 'UNDYING!'
As an additional bonus, If Ed is on the pvp hill it will randomized his beaten up state.

Install:
Download the script below:
UNDYING.user.js
(1.33 KiB) Downloaded 211 times
Open the file with a Firefox Browser that has GM installed
Your Browser should prompt you to install the script
There is an equivalent GM mode for Chrome. I do not know how it works but it should be compatible.
Last edited by lightwolf on Sat Feb 21, 2015 1:11 am, edited 1 time in total.

User avatar
lotsofphil
Leader of rum ham
Posts: 4075
Joined: Mon Mar 01, 2010 3:56 pm

Re: UNDYING! (GM Script)

Post by lotsofphil » Fri Feb 20, 2015 1:59 pm

Installed. Can't wait for rollover.

littlelolligagged
Leader of Heck
Posts: 677
Joined: Tue Aug 23, 2011 10:42 am

Re: UNDYING! (GM Script)

Post by littlelolligagged » Sat Feb 21, 2015 5:02 pm

Have I mentioned that I think this might be the best script ever?


(also, it works fine in the chrome version of greasemonkey)

User avatar
lightwolf
AFH
Posts: 426
Joined: Mon Feb 22, 2010 6:16 pm

Re: UNDYING! (GM Script)

Post by lightwolf » Sat Feb 21, 2015 5:52 pm

Woops. Small bug in the Pvp feature.

Can sometimes random 0. which is invalid ed avatar.
You would have to change the lines that say...

var x = Math.floor((Math.random() * 8));

into:

var x = Math.floor((Math.random() * 7)+1);

User avatar
digitrev
Spy vs. Pie
Posts: 63
Joined: Tue Oct 07, 2014 8:01 pm

Re: UNDYING! (GM Script)

Post by digitrev » Sun Feb 22, 2015 1:20 pm

And now, the Mafia version.

Code: Select all

//Add as choice.ash to your relay folder

buffer ed_undying(buffer page) {
	page.replace_string("Go right back to the fight!", "UNDYING!");
	return page;
}

buffer special_pages(buffer page) {
	if (page.contains_text("Like a Bat Into Hell"))
		return ed_undying(page);
	return page;
}

void main() {
	visit_url().special_pages().write();
}
Image

Post Reply