food alert
![]() ![]() |
Small enhancement to send a msg to alliance chat when food is low.
The idea is that alliance can send food before troops desert... (not claiming to understand how it works - just cut&paste from george's work...
3 mods listed below... [paste this in ptStartup() function, just above "TowerAlerts.init();"]
[paste this just below addCommas() ...]
[paste this just above Tower Alerts section...]
|
![]() ![]() |
More location detail on the second part?? I do not see an "addCommas()" |
![]() ![]() |
Actually, not sure it matters where the second part goes... but suppose it is good to keep the related functions grouped together...
|
![]() ![]() |
Yeah had it there this morning, only thing it does is kill the script. I'll fiddle with it when I get home this evening. |
![]() ![]() |
Tried this and it just kills power tools on me. Great idea if it works |
![]() ![]() |
Sorry guys - there was a formatting error.
Have updated the original post... |
![]() ![]() |
This is a good idea, and has been requested by others. I will see about adding this to Power BOT with additional options to control when/if a message is posted to alliance chat. BTW, nice job on the implementation :) |
![]() ![]() |
I'm not seeing anywhere to update Options.foodWarnHours in any of the options dialogs I'm familiar with. How would I go about adding this to the Power Bot options box? |
![]() ![]() |
Regarding the option, I just hard-coded it to 48 hours. It works flawlessly. @Sammers: You did something wrong. Hopefully if you're doing script editing you know enough to check the error console to figure out where you goofed up. Even an accidental carriage return in the wrong place can bork up your script. |




