Change e.
|
|
The passive refresh is refreshing every 6 seconds rahther than every 60. |
|
|
How should this be fixed? |
|
|
This is a user customizable variable. Towards the bottom under the section beginning: /* In-Code User Customization Values */ All of the variables in that section are intended to be customized by the user. The one for the passive refresh is "norm_refresh":
|
|
|
It wasn't so much a fix that needed doing, but an item to add to your list of changes from the original script. :) |
|
|
I love the passive refresh set the way it is. But any chance you can but a button to turn it on and off like agressive. Makes it very difficult to adjust the preferences like this. Thanks. Everyone I talked to who is using this script agrees. |
|
|
I have gone away from using the passive refresh because it just refreshes to the current page. And sometimes the script jumps around and gets stuck and so you end up endlessly refreshing the home page or job page and you don;t get any hits. The aggressive refresh always refreshes to the hitlist or the home page, depending upon how you configure it in the preferences.
However, I think the aggressive refresh on the hitlist page triggers the refresh error too quickly and refresh on the home page misses a lot of bounties. So my solution is to use aggressive refresh off the hitlist, but I put in a randomized delay. Others have posted similar solutions previously, so I won't take credit. But I will post some clean code that works and just say that for my money, this has been working really well and I think is an all around better alternative to the passive refresh. If you want to implement this do the following: Search for /* In-Code User Customization Values */ and add the following in that area: var min_rndrefresh = 1; //crypto.edit minimum refresh timer for aggressive refresh, in seconds var max_rndrefresh = 6; //crypto.edit maximum refresh timer for aggressive refresh, in seconds min_rndrefresh *= 1000; //crypto.edit convert from seconds to ms max_rndrefresh *= 1000; //crypto.edit convert from seconds to msThose first two variables set a minimum and maximum value, in seconds, for refreshing. The script will randomize between those values. Now, search for "if (boss.targets>0 && boss.evaded<=5)" Just above that line, add the following: var waitTime=Math.floor(Math.random()*(max_rndrefresh-min_rndrefresh)+min_rndrefresh); //crypto.edit used in following if block for random refreshNow in the "if" block you just searched on, look at the "else" statement, which should look about like this: window.location.href = "http://apps.facebook.com/mobwars/"+(boss.preferences.hurl?"":"hitlist/") You are going to replace that line with this:
setTimeout(function(){window.location.href = "http://apps.facebook.com/mobwars/"+(boss.preferences.hurl?"":"hitlist/");}, waitTime); With this change you will disable passive refresh, set up aggressive refresh to work off the hitlist page. Now you can turn the refresh on and off using the aggressive "checkbox" and you can easily modify the timer values using the regular user editable variables. If you want to disable the "delay" just set both values to zero. |
|
|
Crypto that is nice.. :) I wrapped both your change and the ability to specify the number of snipes into preferences and will pastebin it a little later after I test it a bit. Edit: Here you go http://www.pastebin.ca/1314802 |
|
|
Excellent! |
|
|
Found 1 issue in using this, and a quick fix, but I'm not sure its the right way to go about it. When hunting the hitlist, if you run out of stamina while fighting, it looks like it gets stuck in an immediate reload loop. To fix this, you need to add a boss.targets = 0;before the window.location.reload();on line 1934 in the pastebin. |
|
|
Crypto,
|