Facebook Slayers/Werewolves/Vampires/Zombies Enhancer

By ViXaY Xavier Last update Apr 3, 2008 — Installed 2,610 times.
Creates a menu to use those applications in facebook. Creates a Statistics pane showing basic stats. Has an auto-feed function. Has an auto-fight function. Has a full-auto function. (v 2.60)

This script has no reviews.

PURPOSE

  • auto feed characters - to gain money & attacks
  • auto lazy fight people (for lazy people, NOT optimized attacks)
  • use up all monsters attacks daily to get stronger
  • do this all easily and conveniently, without manual effort (i.e. a bot)

FEATURES:

  • Creates a Menu on the right hand side listing all usual functions. Benefit: Saves you valuable time in going about your daily tasks, especially across the different monster types.
  • Creates a statistics pane on bottom left containing stats for all your monster types! convenient one glance stats!
  • Auto-Feed friends for all your monsters to get money automatically.
    • Currently 8 feeds allowed/day * 30 bucks/feed = 240/day/monster * 4 monster types = 960 bucks/day total!!,
    • this too in time (5 secs + 3 guesstimated secs reload time) * 3 clicks per feed * 8 feeds/day * 4 monsters = 768 secs = 12.8 mins!
    • Thus gives you increased # of attacks each day! Each feed increases your number of attacks by 1 for a total of 8 bonus attacks!
    • You can leave the page open in a tab all the time and it will auotmatically do it everyday without your intervention!
  • Auto-Fight monsters less than 50% stronger than you.

HOW AUTO-FEED WORKS:

  1. There is a checkbox called autofeed in the menu that this script adds. It is disabled by default and will only activate on the correct pages.
  2. On feeding pages: specifically, feed-home.php, feeding-main.php, feeding-result.php, Check that box, it will trigger a routine and start a countdown of 5 seconds ( you should see a timer value next to the checkbox. If you don't then there was some error and the routine did not fire.)
  3. Once the timer reaches zero it will take the appropriate action depending on the page you are on. (see code comments for the details on that).
  4. It will keep doing this until you can't feed anymore people for that particular monster.
  5. Then it will try to switch your monster to the next monster type and try feeding again, until all your monsters have used up their feed quota. (you can disable this by commenting out all SwitchMonster() commands in code, I should probably use some prompting to set initial variables).
  6. This helps you gain money quickly, and makes your monster stronger before fights.
  7. After feeding all monsters it will wait for the time to expire before it does it's magic again!

    - When encountering empty feed lists (i.e. # of friends in list < allowed feeds), it will switch_monster and mark it as Full
    when all monsters are full, and you encounter an empty list, it will wait for 12 hours, before clearing all flags and checking again.
    - To manually select which users to autofeed:
    1) Enable the checkboxes by clicking on th menu item "togglecheckboxes"
    2) Then reload the feed page, and checkboxes should now appear after each name
    3) check the users that you want to autofeed and reload the page
    4) now enable autofeed! Thats it!
    If you have selected <8 friends, it will continue to feed on users that have not been checked as well

HOW AUTO-FIGHT WORKS:

  1. There is a checkbox called autofight in the menu that this script adds. It is disabled by default and will only activate on the correct pages.
  2. On fighting pages: specifically, fighting-main.php, fighting-confirm.php, fighting-result.php, Check that box, it will trigger a routine and start a countdown of 5 seconds ( you should see a timer value next to the checkbox. If you don't then there was some error and the routine did not fire.)
  3. Once the timer reaches zero it will take the appropriate action depending on the page you are on. (see code comments for the details on that).
  4. It will keep doing this until you can't fight anymore people for that particular monster.
  5. Then it will try to switch your monster to the next monster type and try fighting again, until all your monsters have used up their fight quota. (you can disable this by commenting out all SwitchMonster() commands in code, I should probably use some prompting to set initial variables).
  6. This helps you gain money quickly, and points quickly.
  7. After fighting all monsters it will wait for the time to expire before it does it's magic again!
Current Logic for attacking:
    Go from top to bottom, choose an opponent who is less than 50% stronger than you.
    Use all 3 attacks per round, and attack that one person repeatedly until all attacks are done.
    Once done switch to another monster type.

STATISTICS PANE

  • Gets updated as you move around the different pages
  • Is not guaranteed to give 100% reliable information
  • Is there just for quick reference
  • Feeds are not given but have to be guessed and hence are always guesses! (not 100% accurate)
  • You have to visit the store or your main profile page to get the total amount of money you have in your account
  • Gather Data link does all this for you, but is time consuming so use it only when starting out in the beginning

TIPS

    - AutoFeed first before attacking (you get more attacks that way!) OR
    - Have AutoFeed running in one tab, and AutoFight in another
    - Select a timer of about 5-10 seconds so that you can choose items during combat if you wish to, or change to another monster type

SETTINGS

  • There are some additional commands available via the userscript menu.
  • Right click the greasemonkey icon, and go to "User Script Commands" and you can see them there.
    • Manual Update Check
      - This checks the website userscripts.org to check to see if the script has been updated, and alerts you accordingly
    • Reset Monster Full Flags
      - this is only necessary if you see that the monsters don't switch automatically
    • Change Timer
      - Disable Autofight/autofeed before using this.
      - Be VERY CAREFUL with this! Setting it too low might cause you to be unable to turn off autofeed/fight!
      - use it to change the countdown timer before an action is executed.
    • Toggle checkboxes (feed/fight)
      - This is to enable manually selecting candidates that you want to autofeed each day. Please see the AutoFeed section for more information.
    • Toggle Full Auto
      - This is to enable autofeed followed by autofight and then waiting on autofeed page again.
      - You can see if this is enabled by seeing the bottom of the menu on the right, it'll show "[FULL AUTO]" when enabled

NOTES:

Tested with Firefox 2.0.0.11+ & Greasemonkey 0.7.20070607.0+
http://userscripts.org/scripts/show/20462
To help debug problems please check the Tools->Error Console and post messages from the error & messages tabs to the comments section.

http://userscripts.org/scripts/show/20462
this is the magic boon i bestow upon you to grow powerful quicker than your peers. After many years of meditation was i able to craft such a delicate spell to aid you in battle, use it wisely!

CREDITS

Facebook DotA Enhancer by Vaughan Chandler (http://userscripts.org/people/14536) (for initial help & inspiration)
Script Update Checker by Jarett (http://userscripts.org/users/38602) (for script updates)

CHANGELOG

  • v0.00 - 15/01/2008 12:57
    - started work
  • v1.00 - 17/01/2008 14:00
    - Auto-Feed is now working
  • v1.10 - 13/02/2008 18:44:18
    - Fixed errors in variable names - Damn javascript! that's what you get with no enforced delclarations!
    - Changed CSS for Menu
    - added another section to the menu for easier identification
    - Added detection of Empty List in feeding & switching monsters
  • v1.20 - 9:23 PM 2/15/2008
    - significantly changed the auto-feed code
    - changed the location of the auto buttons (now integrated into the menu)
    - changed the location of the countdown timer (in the main heading (above subheading))
    - added basic auto-fight code for testing purposes (NOT USABLE YET)
    - added some more error handling
  • v1.30 - 12:32 PM 2/20/2008
    - Added auto-update for this script to get latest version (once per day)
    - Added function to reset FULL flags for each monster each day (once per day)
    - Added extraction of attacker data from page. works fine now, for fighting-main.php
  • v1.40 - 5:42 PM Saturday, March 08, 2008
    - Moved the timer countdown to the menu (to avoid dealing with the hassle of finding the right place to display the timer)
    - Added User Script Command to Clear the flags such that when all monster flags are set you can forcefully reset them.
    - Empty friend list works. Currently it switches between available monsters, and if all are full, it waits for 12 hours before trying again.
  • v1.50 - 11:54 AM 3/10/2008
    - Pages have changed again, so changed some code to fix it for auto-feed.
    - Added a setting for the timer so that the user can change it according to their needs. Use the userscript menu
  • v1.60 - 4:34 PM 3/10/2008
    - Added basic fighting capability
    - disabled checkboxes by default and enabled them only on the correct pages
  • v1.70 - Tuesday, March 11, 2008 12:04:24
    - Modified the menu code generation to use arrays instead of '+' for increased performance
    - Made AutoListenClick Generic (i.e. handle both cases)
    - using auto_mode everywhere now to detect which code/variables to executed
    - bugfix in delay timer caculation, it was adding it as strings rather than integers
    - Fight link in menu now by default takes you to a different monster type (rather than the same type)
    - created function findsubmitbutton to remove redundant code
    - bugfix fixed the infinite switchmonster bug, it was happening because i didn't clear the interval before trying to switch!
    - bugfix SWITCH_MONSTER now works even if all monsters are full from yesterday (according to the flags).
    now SWITCH_MONSTER clears flags once a day if all monsters are found to be full, it then calls itself
    to switch to another monster
    if it has already cleared flags today, then it doesnt switch if it encounters full flags.
    - solved a url switching problem in a moment of epiphany! it feels great when you have those.
    thats the only reason i do this i guess :). The problem was that i was trying to encode the Logic
    in the actionTimer routine when i should encode the logic in the page specific area and setup the global
    variable to point to the correct place!
    - bugfix switches to fightin-main.php with another monster type
    - merged checkErrorFeeding & Fighing into one CheckError!
  • v1.80 - Tuesday, March 11, 2008 15:19:33
    - Done Optimizing code! Lots of redundancy between the two auto modes removed, created generic functions able to handle both situations.
    - Fixed a bug in switchMonster not switching to correct fight type monster.
    - changed clearing flags to every half day (12 hours) rather than full day
  • v2.00 - Tuesday, March 11, 2008 16:01:53
    - New Version complete, removed dead code ...etc.
    - both features working well
    - you have to use the RESET flags sometimes to clear out old data. but it works :)
  • v2.01 - Tuesday, March 11, 2008 16:32:59
    - fixed parsing of Attacker points
  • v2.10 - Tuesday, March 11, 2008 19:31:12
    - added statistics pane with rudimentary support for values, they are not guaranteed to be accurate, but close enough.
  • v2.20 - Wednesday, March 12, 2008 16:40:53
    - tighter integration with the statistics pane
    - added RefreshData routine that visits a bunch of pages in sequence to get data
    - bugfix fixed bug in autofeed that was accidently introduced in the last version
    - change location of ClearFlags routine so that it runs before any checking (so statistics pane can be more accurate).
  • v2.31 - Thursday, March 13, 2008 14:42:46
    - added checkboxes on the feeding page as the people that we have to feed first then get available candidates. Looks ugly for now, but can't insert it in prettier way
    - added a user menu item to toggle the above checkboxes feature on/off (default is off)
  • v2.40 - Friday, March 14, 2008 18:16:50
    - added some tooltips to statistics pane to show when feed/fight was last cleared (hover over the heading)
    - added flags in table to let me know when the full flag is set '(F)'
    - added parsing for points on side-nav page and only when we are visiting our page!
    - added info on when you can next fight and all. according to the blog... feeds are on a 22 hour cycle!
    - replaced togglecheckboxes with togglevar a more generic functions
    - started work on basic full-auto mode
  • v2.50 - Monday, March 17, 2008 14:41:02
    - added bucks integration on feed-results page
    - some more work on full-auto being done
    - cleaned some code
    - add checkboxes to fight pages? But how to deal with the different monster types?
    - used JSLint and cleaned up some more code
  • v2.60 - Wednesday, March 26, 2008 10:25:49
    - Fixed auto-feed after some changes by Facebook people. Sigh... are they doing it on purpose to annoy me? seems like it. Why don't they talk to me directly about it?
    - Changed auto-fight to fight monsters 100% stronger or less
    - full auto works for now ONLY if feed is done before fighting...

KNOWN BUGS

ROADMAP

    - one click auto-feed & auto-fight
    - auto choose strongest monster among available ones
    - switch between different monsters while autofighting