BeBot - An Anarchy Online and Age Of Conan chat automaton

Archive => Anarchy Online Archive => 0.5.x Custom/Unofficial Modules => Topic started by: Alreadythere on May 10, 2008, 05:39:38 pm

Title: Timer for shadowweb spinner
Post by: Alreadythere on May 10, 2008, 05:39:38 pm
This module shows the remaining time of shadowweb spinners (can be used for grid armor too).

The bot keeps track of logons/logoffs and holds and restarts the timer as needed. This way it got a pretty close knowledge about the remaining time on the SWS. Of course, due to lag in the buddy list or internal calculation it may be off a few minutes.

The bot sends a notice in a tell to the fixer at 1h, 30min, 15min, 5min, 1min and 30sec remaining time.

Commands:
!sws set sets a personal timer for the fixer calling it.
!sws shows the remaining time on the current timer.
!sws clear removes the current timer.


Download here (http://www.m8y.de/ao/bebot/SWSTimer.phps) and save as .php into a module directory.
Title: Re: Timer for shadowweb spinner
Post by: Blueeagle on May 10, 2008, 05:43:04 pm
This was a neat module. How come I never thought of it? :p
Title: Re: Timer for shadowweb spinner
Post by: Alreadythere on May 10, 2008, 05:48:09 pm
This was a neat module. How come I never thought of it? :p
You don't got a fixer prof threatening you with org kicks if you don't write it? :P
Title: Re: Timer for shadowweb spinner
Post by: Temar on May 10, 2008, 06:27:01 pm
why didn't i think of it iver i got i pvp fixer twink. And i have died because of ga running out

Thank you alreadythere
Title: Re: Timer for shadowweb spinner
Post by: Kieba on June 20, 2008, 01:19:27 pm
i love this module  ;D

i wrote also a new one (based on that) for our mp's, so they can also handle their shield time (difference here is that the big shields remain 8h and the small shield remain 2h). i did it complete in german, so that i wont post it here, but perhaps alreadythere can do it (including preferrences for the different shield times).

additionally: perhaps u can consider implement in next big release (0.6.x) a multilanguage support. surely i'll translate all strings to german for u. i know a lot of people of other countries using bebot and would be happy if there's multilinguage support.
Title: Re: Timer for shadowweb spinner
Post by: Blueeagle on June 20, 2008, 06:32:38 pm
additionally: perhaps u can consider implement in next big release (0.6.x) a multilanguage support. surely i'll translate all strings to german for u. i know a lot of people of other countries using bebot and would be happy if there's multilinguage support.
This has been discussed in another thread. (http://bebot.link/coding-and-development-discussion/i18n-and-l10n/)

(not sure if it's publicly availible tho)
Title: Re: Timer for shadowweb spinner
Post by: Slacklin on June 20, 2008, 08:34:18 pm
I tried to use this bot with my existing bebot 4.3 and using the latest 0.5.0 support module and keep getting an error. Do you know if it is compatible with that module currently?
Title: Re: Timer for shadowweb spinner
Post by: Alreadythere on June 22, 2008, 10:13:36 am
I don't know if the module can work with 0.4.3 using Temar's 0.5 support class, never tried nor used it. The core modules I use should all be available in 0.4.3 though.

About MP shield times: I'm currently reworking the module to keep track of SB times, adding shield times won't be much trouble afterwards.

About language support: up till now I never had multi-language support on my list. It would involve quiet a lot of recoding though. Personally I don't got the time for it right now.
Title: Re: Timer for shadowweb spinner
Post by: Temar on June 23, 2008, 04:25:11 am
useing this module i have improved the support module and should now work
Title: Re: Timer for shadowweb spinner
Post by: Kieba on June 23, 2008, 10:28:36 am
well implement i18n is fairly too much work and surely slow down the bot.

what i'm imagine is to separate the strings of all core things and modules itself. using a setting for lang like "en", "de" etc. and require once in module that file (Trickle.php/Trickle.en/Trickle.de - en/de holding the string in each lang). if *.de not available using default *.en. it should be a solution so that we can still using svn to find differences.

sorry, my english isn't that best, hoping u understand that.

but u r alright, it is much work and u r balance the matter correct if u say other speaking player r the minority.
Title: Re: Timer for shadowweb spinner
Post by: Blueeagle on June 23, 2008, 06:39:35 pm
For php5 I will not use anything but GNU gettext (http://www.gnu.org/software/gettext/manual/gettext.html), however i18n support is planned to be incuded in the core of PHP6, and I for one think it unlikely that i18n will be put into the bot before that time. And that's a looong way off.

As for homegrown i18n solutions I do not care much for them. Especially when GNU gettext is availible for the two major platforms that the bot is running on.
Title: Re: Timer for shadowweb spinner
Post by: Zweiblum on July 23, 2008, 11:24:16 am
hm im getting a "fatal error" on line 6.
it says "Class 'SWSTimer' not found on C:\... on line 6.
anyone else got htis problem?

i think that it might have something todo with the "extends BaseActiveModul"
as the modul Aiboss even doent work but the beastday modul works whos without the extend.

should i have to module somewhere? cant find anything over search function :/
Title: Re: Timer for shadowweb spinner
Post by: Alreadythere on July 23, 2008, 12:56:17 pm
Are you using bebot 0.5.2?
Title: Re: Timer for shadowweb spinner
Post by: Zweiblum on July 23, 2008, 02:12:46 pm
yes
Title: Re: Timer for shadowweb spinner
Post by: Alreadythere on July 23, 2008, 02:46:45 pm
Should be in main/ then.
Title: Re: Timer for shadowweb spinner
Post by: Temar on July 23, 2008, 02:59:10 pm
zweiblum are you running bebot on a web site?
Title: Re: Timer for shadowweb spinner
Post by: Zweiblum on July 23, 2008, 03:00:40 pm
strangething i could have sworn that i downloaded the 0.5.2 file... but the changlog is for 0.4.3.. gna... :/

so i need to redo the bots
Title: Re: Timer for shadowweb spinner
Post by: Zweiblum on July 23, 2008, 03:53:59 pm
nope on a vhost.
that should be a prob ...
now i switched to 0.5.2 and bot works fine, even the relay with the 0.4.2 bots.
but now some modules r working and some r not.
eg swstimer still istn working, but i dont get a failure at startup or when i use the command !sws ... the bot is doin nothing then (even not the /tell bot !help)

but eg the aigen.php is working fine.

maybe i got something to do that i even ran the 0.4.support.php ?
Title: Re: Timer for shadowweb spinner
Post by: Alreadythere on July 23, 2008, 03:54:41 pm
!sws only works for fixer.
Title: Re: Timer for shadowweb spinner
Post by: Zweiblum on July 23, 2008, 03:56:39 pm
omg, didnt said anything... think it of my broken english, so i misinterpreted ur "the fixer is calling" ... but thx for fast help :)
Title: Re: Timer for shadowweb spinner
Post by: Agnot on September 23, 2008, 10:51:43 pm
Quote
!sws only works for fixer.

Call me fixer with enforcer nanos then!

Just comment out the following in the function command_handler
Quote
         if ($who["profession"] != "Fixer")
            {
               return false;
            }

Nice module by the way. Org was pretty happy to see it. In midst of testing it though
Title: Re: Timer for shadowweb spinner
Post by: Hyde on February 10, 2009, 04:02:53 am
Thanks for this :)
SimplePortal 2.3.7 © 2008-2024, SimplePortal