Brenbot Questions [message #377681] |
Fri, 27 March 2009 14:40 |
|
Gen_Blacky
Messages: 3250 Registered: September 2006
Karma: 1
|
General (3 Stars) |
|
|
Instead of using a irc hook in scripts.dll or a plugin could i just make a plugin for brenbot to display msg that are shown in the fds.
so like whould i do smothing like
if ( $line =~ "some text in the fds" )
{
brIRC::ircmsg( "$line", "A" );
[Updated on: Fri, 24 April 2009 16:37] Report message to a moderator
|
|
|
|
Re: Show Fds msgs in irc [message #377883 is a reply to message #377681] |
Sun, 29 March 2009 12:44 |
|
Gen_Blacky
Messages: 3250 Registered: September 2006
Karma: 1
|
General (3 Stars) |
|
|
Yea that worked.
Another Question i want enable !vote gameover after xx amount of time how would i do this ?
Question #2 can you attach ren scripts with brenbot im guessing you cant use renrem because there is no hook to grabe console input or is there.
[Updated on: Sun, 29 March 2009 13:23] Report message to a moderator
|
|
|
Re: Show Fds msgs in irc [message #377907 is a reply to message #377681] |
Sun, 29 March 2009 14:44 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
1) Voting_Allow_Gameover to 0 in brenbot.cfg (to disable it). Next create a plugin with a function for the mapload event (and specify in the XML that you want to recieve the event) which, when called, sets $brconfig::config_voting_allow_gameover to 0, and then triggers a function after a delay ( $poe_kernel->delay ( functionToCall, int(time())+delayInSeconds ); ). That function should set $brconfig::config_voting_allow_gameover to 1 to enable gameover votes from that point onwards.
NB: This is not a perfect way of doing it, and will not work well if a game ends before delayInSeconds seconds, as the delayed function will still trigger as normal, and it won't enable gameover votes until the next map after the bot has loaded. However, with some creative thinking you can work around this.
I should also mention that setting brconfig values through plugins is not offically supported through the plugin interface, so there is no guaruntee that variable names will not change in future and break your plugin until it is updated.
2) No, you can't directly attach scripts using BRenBot unless you implement your own custom console commands through scripts.dll.
|
|
|
|
|
Re: Show Fds msgs in irc [message #378731 is a reply to message #377947] |
Sat, 04 April 2009 10:09 |
Genesis2001
Messages: 1397 Registered: August 2006
Karma: 0
|
General (1 Star) |
|
|
danpaul88 wrote on Sun, 29 March 2009 23:53 | I don't know how to add console commands via scripts.dll, but there are lots of topics in the mod forums which discuss it, so have a look around, I am sure you will find something.
|
Minor bump, but meh. I haven't visited these forums in about a week-ish.
Anyway,
AFAIK, the console command assembly is closed source. I may bring my old plugin back to life and see if I can release it (source would be excluded due to the console commands in it -- or I may just exclude the console commands from the source... if released that is; compiled binary would include the console commands, but source wouldn't.) Ideas, ideas... I'll talk to the server owner I made my plugin for and see if I can release the plugin.
|
|
|
|
|