FBMW*

By remarkable Last update Mar 11, 2009 — Installed 14,486 times.

Script stops after successful bounty kill

in
Subscribe to Script stops after successful bounty kill 17 posts, 10 voices



scripts_rule User

It's never a good sign when you have a problem with the script and there's no topic about it yet.

When attacking the hitlist (aggressive refresh) and it successfully gets a kill, the script all of a sudden stops and I need to click the hitlist button to get it going again. This only happens when the kill is actually displayed, e.g. - "You killed jackass and claimed the bounty of $8000." When I am awarded the kill from sniping, the script continues to work fine.

This just started happening earlier today. It can't be just me, can it? I made no changes to the script and am using the latest version. I did not upgrade greasemonkey or firefox. Any suggestions?

 
John Doe111 Scriptwright

no it's been happening to me too. must have changed something on the page slightly.

 
scripts_rule User

Thanks for your response. Glad to know I didn't screw it up. Now for the fix. I'm sure it won't be long before one of you geniuses figures it out.

 
LouieTheDog User

i noticed this morning that the attack list results have changed. both the attacker and attacked names are direct links to their stat page. maybe other things changed, too.

 
nicegirl99 User

noticed it today also. Had not been bounty hunting for a few days.

 
holymoly User

It might have something to do with writing the results. I don't have a victims list anymore, but I am getting hits.

 
fart man User

noticed it yesterday and now there are even more problems

 
vazelky User

script isn't working at all now. some changes went up a few hours ago.

 
vazelky User

i just manually made a purchase in the city and the script automatically continued buying up the city until i ran out of funds. then it went back into resting mode. it just won't do any jobs as no career goal is showing and the preferences page isn't accessable.

 
John Doe111 Scriptwright

someone posted a fix for it. I made all the changes but still doesnt work after doing everything exactly as instructed. If anyone get's this fix working please upload the script.

http://userscripts.org/topics/24583

 
DaRealShadez User

John the reason those script changes does not work is because they are for v 1.27j this forum is for 1.27L which is slightly different.

 
Zen1 User

I posted the fixes to the other forum, but the changes should apply to both.
Actually my version is based more on 1.27L so the changes should definitely work on 1.27L.

Here are the changes:

Simple fixes for new Mob and Experience locations.
You have to know how to edit the script to apply these changes.

Search for:

/* Mobsters except myself */
var header = document.getElementById('app8743457343_header');
var str = header.getElementsByTagName('a');
str = str[1].innerHTML;

Replace with:

/* Mobsters except myself */
var header = document.getElementById('app8743457343_navMenu');
var str = header.getElementsByTagName('a');
str = str[7].innerHTML;

Search for:

case 'Level':
if (this.level != parseInt(result[2])) this.new_level = true;
this.level = parseInt(result[2]);
break;

Replace with:

case 'Level':
if (this.level != parseInt(result[2])) this.new_level = true;
this.level = parseInt(result[2]);
// exp: is now INSIDE the Level: div
var result = str.match(/exp:[^0-9]*([0-9]+)\//);
//alert('exp=' + result[1]);
this.exp = parseInt(result[1]);
break;

Search for:

var re = /(Cash|Health|Energy|Stamina|Exp|Level):\s*\$?([0-9]+)\/?([0-9]+)?(?:.*?more in:.*?(\d+:\d+)|)/

Replace with:

var re = /(Cash|Health|Energy|Stamina|Exp|Level):\s*\$?([0-9]+)\/?([0-9]+)?(?:\s*more in:\s*(\d+:\d+)|)/

 
Zen1 User

I got the victim list working:

Find:

// who is your own mob ... need to create/scan a mob list
if (document.body.innerHTML.match(/You killed /) && Page.c_page=='hitlist')
{
if (document.getElementById('app8743457343_content').getElementsByTagName('A')[0])
{
var killing = document.getElementById('app8743457343_content').getElementsByTagName('A')[0];

Replace with:

// who is your own mob ... need to create/scan a mob list
if (document.body.innerHTML.match(/You killed /) && Page.c_page=='hitlist')
{
if (document.getElementById('app8743457343_content').getElementsByTagName('A')[2])
{
var killing = document.getElementById('app8743457343_content').getElementsByTagName('A')[2];

Note the change is really only changing [0] to [2] in two places - I gave extra surrounding code for context.

So while this does fix tracking the victims, I have not been able to get any bounties in automatic - only by manually clicking on the attack links.

 
nicegirl99 User

Zen1, you are brilliant.

 
LouieTheDog User

SWEET, Zen1! that worked!!!! thanks... i was having withdrawals! lol.

edit: the script rests after each job... once i click 'jobs', the script kicks back in. anyone else have that?

 
nicegirl99 User

Looks like now it prompts for a hitlist page reset after a successful hit.

 
tru2god User

Thanks for the update! I can enter my prefs but it keeps locking up for about 20 secs. I tried undoing auto hit, but it is still locking up. It regenerates after about 40 secs. Any ideas?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel