|
Script Summary:
Assists users of the Facebook app "D&D Tiny Adventures" |
this script has 19 topics, 96 posts |
this script has 1 review |
||||||||||||||||||||||||||||
I have lost interest in updating Treasure Chest if anyone wants to continue work on it please contact me. bobbeholder@gmail.com
Ads adventure encounter information to the "Find Adventure" tab of the Facebook app "D&D Tiny Adventures". This project is in EARLY beta and your comments are welcome to help improve the usefulness this script.
To run this script you need to download the Greasemonkey Firefox extension. Then, come back here and click on the Install This Script button.
Firefox
This script is optimized for Firefox 3.0.4 on Vista 32 and XP. I don't have access to other operating systems and prefer coding for the most recent versions of each browser when possible. If you are experiencing any problems with the script please include the OS and FF version number you are using. If problems persist try upgrading FF and deleting your cookies as this usually fixes most problems.
NOTEYou will need to keep the adventure tab and the friends tab open for the auto potions/powers and for auto heal/buff to activate. Closing the browser will turn them off.
v1.0.0
- I have decided to upgrade Treasure Chest to v1 and take it out of BETA.
- Auto Heal/Buff opt-out temporarily disabled.
- Removed code that saved data based on facebook user ID and replaced it with code that uses a generic default ID. his should solve the problem where auto healing and buffing would sometimes turn themselves off. However if multiple people use the same computer they will share the same settings. I hope to reinstate this code in the future when I can identify why the facebook ID is sometimes a garbled mess.
- Fixed the ability to turn off the facebook flash ads. Removed the ability to turn off the D&D flash ads as the code was changed to prevent this feature from working.
- Removed all "debug" code is it was causing memory to fill up and firefox to slow down considerably.
- Fixed a bug causing the adventure summary not to show on the view new adventure page. Although this doesnt't fix the problem 100% of the time because the fixes wizards is making are causing me problems. This will fix itself when they are finished fixing things.
- Added equiped loot to the shop page in a panel that moved with the page as you scroll
- Fixed a problem with auto buff/heal that prevented the script from healing or buffing when you clicked the image and the auto buff or auto heal was set to "off"
- Changed how the View New Adventure page chose where to display the adventure summary so now it should display when you do not yet have enough health to continue adventuring.
- Added current score, success rate, career length, and average d20 to the adventure summary page. It updates upon page refresh.
- Added code to remove the bug message causing the View new Adventure page (it annoyed me).
- Added code to check for "Connection Interrupted" and attempt to refresh the page.
- Added a health monitor that refreshes the view adventure page when an adventure is "finished" and shows the current health in the browser title bar so you can leave it minimized and watch for when your health is full again.
- Options to turn off health checking and change the delay between refreshes added.
- Added an indicator to show if my server is accessible.
- Fixed the auto buff/heal problems (I hope)
- Added code to save values based on your facebook ID so now more than one person using the same machine will have settings saved for their account
- Added refresh persistence to the options panel, click "options" to open/close the panel
- Changed starting values for auto buff/heal countdown to 240 seconds
- Changed starting values for auto buff/heal trigger delay to 60 seconds
- Changed starting values for auto buff/heal click delay to 3 seconds
- Added a 3rd digit to the auto potion/power box so that you may trigger healing when you are in the 3 digits. Some people asked for this so they could use their priest power as soon as needed
- Changes made to the auto heal/buff routines in hopes the "118" stalling bug can be resolved
This code is extremely unstable and sometimes takes alot of work to get it to accept the setting change. Try clicking the button and refreshing until it takes the change. If my server is down it will not accept the change but then again none will read the values and you will still get buffed or healed. It is still best to contact your friends to have them turn off healing or buffing on you.
- Added code to let you signal your friends that you do not wish to be healed and/or buffed. This is very experimental code and uses my personal server and some php code which I am not an expert at writing. After clicking the button check the options and see if it is set to OFF or ON for you. Clicking the button should toggle it
- Added a toggle (default to on) that lets you check to see whaich friends do not want to be healed or buffed. This defaults to on but if you can confirm with your friends they do or don't want to be healed/buffed you can use the individual selector and it will help decrease bandwith usage on my personal server
- Added a show/hide toggle for the do not heal/buff me buttons. Default is off so people don;t accidentally turn off getting healed/buffed from their friends
v0.3.5 BETA
- I added the ability turn off and on the auto buff and auto heal for each of your friends. They default to on. The setting changes take effect upon a page refresh so they will take effect before the auto heal/buff even if you don't refresh on your own.
- Added a delay setting to the options panel that sets the time after the auto timer countdown when the buffs and heals will trigger.
- Fixed a bug that was causing the auto heal/buff timer to get stuck.
- Options Panel added
- Option to turn facebook ads on/off added
- Option to turn flash ads on/off added
- Auto Timer Countdown setting added. You can select 120 sec (2min), 240 sec (4min), 360 sec (6min), 480 sec (8min), 600 sec (10min)
- Auto Click Delay setting added. You can select 2sec, 3sec, 4sec, or 5sec
- Auto Heal and Auto Buff order switched so buffs go first
- Uncheck of potions and powers now happens after reload to stop a bug that was happening when a "Adventure Continues..." happens.
- Images for buff all and heal all have been moved into the code so that no load happens on the D&D:TA servers. A small treasure chest icon has been added as well.
- When facebook has an error that sends you to their error page, the script should attempt to go back to the page before the error page. This might help stop facebook errors from getting in the way of your adventuring. There are some cases this won't yet catch and I am fixing them as I see them happen to me.
- Fixed a problem with chat window popup and character info toggle not working on adventure page.
- Added simple add removal. This will be a toggled setting in the next update when an options panel is added to the interface.
- I removed much of the code reliance on cookies to make it faster.
- I set the countdown timer on auto heal/buff to not show if neither is checked as auto.
- I set the code for potion triggering to check for one potion per page load so it should no longer trigger both healing potions when health drops below the number set.
- I changed the character info pane to no longer use cookies to open and close the panel however there is a small bug in the adventure page still causing this to not work 100% of the time. The chat popup window is also affected by this. You can use the links from any page but the adventure page atm. I did want to get this update out so I posted it with that small bug.
- I refactored much of the code removing as many cookie based dependencies as possible.
- Updated auto buff/heal code and it now seems much more stable. I removed the H and B from the title bar and replaced them with a running total of how many people you healed or buffed since starting the session. You will also see these totals above the "heal all" and "buff all" links on the friends page. Clicking them resets them to 0.
- A complete rewrite of the potion drinking code should have fixed the misfires on potion and power usage.
- I added an auto uncheck from the checkbox by the auto potion/power when a potion or power are used. This should help when using the ranger potion reequipping.
- The character info code was completely rewritten and is now more efficient. The code grabs the data when the page refreshed however if you wish to see the data updated after buying/selling a potion you will need to click "refresh" which will reload the page and update the data for you.
- The chat panel being in the page was a bit confusing so I set the link to open in a new window. If you have a popup blocker set you can usually bypass it by pressing the ctrl key while clicking the link. I do not know how to bypass that on a mac.
- The potions and powers area is just above the in game potion and power display on the adventure page.
- Potions and powers that are equipped/usable have a small green box next to them.
- You may select the health for healing potions to trigger on to any value 1-99 however I set the basic hp check at 15 for levels 1-4 after that it is 25. Cleric healing power default starting trigger is set to 10 plus 2 times your level (12-30).
- You may select any encounter number for potions that are non-healing in nature to trigger on.
- Potions and powers always trigger in the order "left potion", "right potion", "left power", "right power". However for Clerics their healing power will trigger first.
- Checkboxes will automatically unselect when a potion or power has been used.
- The paladin second power skips an encounter. This can cause the display to not properly show which encounter you are on. Remember to subtract 1 from the encounter you want the potion or other power to trigger on if it happens after you trigger this power. Again I will correct this when I start my next character.
- The ranger ability that equips potions requires you to monitor and still do this.
SCREEN SHOTS
![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Chat Window | Generations | Inventory | Find Adventure | Friends | Adventure |
COMING SOON
- BUG FIXES!!!
- I am compiling a list of features to work on.
- I am researching Greasemonkey for IE to see what I need to do to bring this script IE as well as firefox.
RESOURCES











