Facebook Monsters Enhancer

By Piotr P. Karwasz Last update Jul 29, 2008 — Installed 2,771 times.

Archived Comments (locked)

in
Subscribe to Archived Comments 45 posts, 16 voices



Jesse Andrews Admin

The following is an archive of comments made before threaded discussions was implemented (November 16th, 2008)

 
bob davis User

ok one question im new to this after u download the script what do u do with it b/c if u run it right away theres a error

Thx

 
berto User

This script has taken me all the way to the Olimpus. Thank you VivaY Xavier, Thank you Piotr.

With goog information on hand, this is the best strategy when attacking:

As a general rule, attack monsters that have 80% to 125% your points.

More precise rule:

If my monster has no weapen, then attack monster between 54% and 100% my points.
If my monster has a weapen, then attack monster between 100% and 125% my points.

VivaY Xavier does this make any sense on first scenario? Weapen = no then select oponents with 100% or less points than my monster

var powers = getElementsByClassName("small_avatar_experience", "div", divs[1]);
var names = getElementsByClassName('small_avatar_user_name', 'div', divs[1]);
var urls = getElementsByClassName('small_avatar_attack_link', 'div', divs[1]);

and on second scenario? weapen = yes then select monsters 125% stronger than my monster or less.

var powers = getElementsByClassName("small_avatar_experience", "div", divs[1.25]);
var names = getElementsByClassName('small_avatar_user_name', 'div', divs[1.25);
var urls = getElementsByClassName('small_avatar_attack_link', 'div', divs[1.25]);

Let´s go for the perfect script. We can and we will.

 
vexxtra User

Is there a way to disable certain types of monsters from this? I don't have a Slayer and it automatically takes me to the page to add it.

thanks

 
spookie User

hi,
can you please help me ? my monsters auto fights monsters really too strong.
how can i do to fight a monster a bit stronger than mine

 
berto User

I understand Viva y Xavier. I believe this routine told before to select monsters less than twice in points (I am learning java with this script sorry)

/* Get the list of all enemies */
var powers = getElementsByClassName("small_avatar_experience", "div", divs[2]);
var names = getElementsByClassName('small_avatar_user_name', 'div', divs[2]);
var urls = getElementsByClassName('small_avatar_attack_link', 'div', divs[2]);

Will look more into it to see if it helps to put it back and will report on it.

 
ViXaY Xavier Scriptwright

berto, i'm swamped right now, so haven't had much time to look at it, but as i see it, it has to do with the changes in Facebook. If you are interested i think it's the parsing of the tables on the fight page that's causing these problems. See if you can work something out in that :)

 
berto User

Example of script results as is now:

18 Attacks: 2 wins 16 losses.

Must say until now was a great script, but since it does not select anymore monsters less than twice your monster´s points, but any monster in the list, it destroys the attack purpose of the script, by attacking too powerfull monsters. Any clues?

October 04 Your Zombie attacked Marie's Vampire 3 times.
But Marie defended with a shield and earned some points!
» You won 0 of the attacks and earned 0 points.
» Marie won 3 of the attacks and earned 3 points.
attack Lennie! October 04 Your Zombie attacked Lennie's Slayer 3 times.
Lennie would have won defending points, but she didn't have any armour!
» You won 1 of the attacks and earned 8 points.
» Lennie won 2 of the attacks and earned 0 points.
attack Lennie! October 04 Your Zombie attacked Lennie's Werewolf 3 times.
Lennie would have won defending points, but she didn't have any armour!
» You won 0 of the attacks and earned 0 points.
» Lennie won 3 of the attacks and earned 0 points.
attack Lennie! October 04 Your Zombie attacked Lennie's Slayer 3 times.
Lennie would have won defending points, but she didn't have any armour!
» You won 0 of the attacks and earned 0 points.
» Lennie won 3 of the attacks and earned 0 points.
attack Lennie! October 04 Your Zombie attacked Lennie's Slayer 3 times.
Lennie would have won defending points, but she didn't have any armour!
» You won 1 of the attacks and earned 8 points.
» Lennie won 2 of the attacks and earned 0 points.
attack Lennie! October 04 Your Zombie attacked Lennie's Werewolf 3 times.
Lennie would have won defending points, but she didn't have any armour!
» You won 0 of the attacks and earned 0 points.
» Lennie won 3 of the attacks and earned 0 points.

 
berto User

Great job Kaz, it works really well. I am looking at the script code to try to figure out how to select to attack monsters with just 1.5 more points than our monster. Can you help on this? thanks, Berto.

 
kaz User

fix to latest bug....

replace line:
var APPS_URL = "http://apps.new.facebook.com/";

with line:
var APPS_URL = "http://apps.facebook.com/";

 
berto User

I have been monitoring the results of the attacks of the script and the results of the attacks have gone done drastically. Many more attacks are lost than won because the script does not select anymore monsters who are just 1.5 or 2 times stronger than our attacking monster. Now it attacks any monster on the list, even with 60.000 or more points, and the fights are constantly lost. The rule programmed on the script about attacking monsters just 1.5 or 2 times stronger was a success and a real winner for this script. Now it just contributes to make the defending strong monsters we attack, even stronger. The script can be one of the best with just a few details like the selection of the monsters to be attacked. If it can be arranged it will be greatly appreciate. Thank you also for keeping the script alive with all the effort it involves.

 
Junaid Sharif User

I've been using script for sometime now and it was fine till today. Today I cant seem to switch off the Auto feed and Auto Attack button..... and i dont know what to do.... can anyone help me in that ???

 
Daigoro Scriptwright

ViXaY Xavier, you were right; Your fix really fixed the problem. For some reason I just didn't see it before I posted my comment.

Thanks for your help.

But I noticed that the Auto Buy function apparently isn't working so well, either, even after your fix: At least I've run out of shield despite having plenty of money to buy for.
Or perhaps it's just me?

 
berto User

Perfect Vixay Xavier. I will be monitoring the reloadevery script. I always have the computer on and the facebook vampire´s application page oppend so will monitore it.

What I noticed with the new lines of code for the monster enhancer is that it does not select anymore enemies 1.5 or 2 times more powerfull than yours (this maximized the chances in the attacks), but rather selects any monster to attact. In the end, the scrip selecs to attack very high rank monsters in the list, and high rank monsters are much harder to defeat. Will investigate to see how far I an go. Thank you again, Berto.

 
ViXaY Xavier Scriptwright

You are welcome. I am aware of that bug and have contacted Piotr about it.

Berto, I assume you are talking about the Reload Every Extension.
I'll explain the way I've set it up.
1) Install Addon ReloadEvery
2) Right Click on the facebook page goto reload every and click custom
3) Now enter whatever time you like (i have it set to 60 minutes)
4) Now leave your browser open forever :P (I have a separate FF3 profile for it)

The only problem I had was that once it asked me if i wanted to send the postback data again, i said yes. After that I haven't had any prompts, so i don't know if that's because I haven't run into more errors, or it's because that it's working. I also haven't tried after restarting the browser, I think maybe it reset when you restart it? I don't know. Experiment for yourself and enjoy the Thrill of discovery! Then share with us :)

A sidenote: The reason I use the extension is because the script doesn't load when the page is incomplete and thus I think there's no way to handle it within the script itself. Unless you hit the try again page, then you can get it to work, i had it working in my old script, you can check it out there and hack away!

 
berto User

Yes, thanks ViXay Xavier, it works great. What it does not work properly is the "Reload Every" routine. Once it is activated, it starts by asking every how long we want to reload, and keeps doing every so often. While keeping in doing it, it bloks the Facebook monster enhancer script until reset again. Any insight?

 
kaz User

changes work, thanks.

changes have one teeeeenie bug though "Attacking You's werewolf... (S)" kinda funny, but still works and attacks proper person, not yourself. :)

 
berto User

very well explained VixayXAvier. It is done and I install also the reload script. Will be looking for the changes in the following hours to give the feedback that might be usefull for all. thanks.

 
ViXaY Xavier Scriptwright

I'm assuming this is happening with the new facebook layout only.

No need to upload. To modify:
1) Right-click GM (GreaseMonkey) Icon in Firefox
2) Click Manage User Scripts
3) Select Facebook Monster Enhancer script
4) Click Edit
5) Make the changes, Save
6) Reload page you are working on, it should work

IF it doesn't work
1) Tools>Error Console
2) cilck on errors tab
3) see what is the error produced by GM Script
4) Copy and paste it here (it should be clanm is undefined)

We'll see what we can do from there.

 
berto User

Yes, changed the script code and I am afraid it keeps on doing it. It stops when selecting the oponent to attack. I select it and then goes on. Do we have to upload the script once modified? How to upload it from own computer to greasymonkey? Thank you.

 
berto User

I will try it rideway. How can we edit the script?

 
ViXaY Xavier Scriptwright

Daigoro, Berto, Did you try the solution I've posted below? It'll take care of the problem for now, until Piotr comes back from wherever he's gone. Just find the following lines and change them accordingly.
Before Fix
/* Get the list of all enemies */
var powers = getElementsByClassName("small_avatar_experience", "div", divs[2]);
var names = getElementsByClassName('small_avatar_user_name', 'div', divs[2]);
var urls = getElementsByClassName('small_avatar_attack_link', 'div', divs[2]);

After Fix
/* Get the list of all enemies */
var powers = getElementsByClassName("small_avatar_experience", "div", divs[divs.length]);
var names = getElementsByClassName('small_avatar_user_name', 'div', divs[divs.length]);
var urls = getElementsByClassName('small_avatar_attack_link', 'div', divs[divs.length]);

 
berto User

Great script. It happened the same to me than to harlequin-1998. I believe with the new facebook it needs some rewrite.
Will that be possible?

 
Daigoro Scriptwright

First of all, this is a great script, which I'm very happy to use.

But it seems to me the fight function has been broken a week or so - but I haven't had time to report it earlier.
Whenever I allow the script to fight, I'm stuck at the http://apps.new.facebook.com/werewolves/fightin... page, where the script isn't running, and thus I manually have to select the person I want to fight - the script then kicks in again, and returns me to the page mentioned.
The same problem exists for Zombies, Vampire and Slayer.

I'm looking forward to see it fixed.

Best regards

 
ViXaY Xavier Scriptwright

For the timeout/error page problem that I have frequently i've found a different solution, Download & Install the add-on "Reload Every" And use that and set it up to reload every hour or so, such that any error page is resolved within an hour :)... hope this helps

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