mirc_ren.dll read from FDS [message #440390] |
Tue, 30 November 2010 00:58 |
crysis992
Messages: 314 Registered: June 2008
Karma: 0
|
Recruit |
|
|
Hello,
I was wondering if the mirc_ren.dll can also read out the console.
Or get playernames working. At the moment it only to work with IDs.
Example:
on *:text:!mute*:#:{
if ($nick == crysis) {
dll mirc_ren.dll FDS_Send 127.0.0.1 4949 ***** mute $2
msg $chan UserID $2 has been muted for: $3-
dll mirc_ren.dll FDS_Send 127.0.0.1 4949 ****** pamsg $2 You have been muted by $nick for: $3- :: Do not rejoin to evade the mute.
}
}
1) This is working only if i type the ID in the second place. Possible to get it with nicks working?
2) Possible to read out the Console(FDS) with mirc_ren.dll without 50000 lines of scripts?
|
|
|
Re: mirc_ren.dll read from FDS [message #440393 is a reply to message #440390] |
Tue, 30 November 2010 01:46 |
|
Gen_Blacky
Messages: 3250 Registered: September 2006
Karma: 1
|
General (3 Stars) |
|
|
why mirc
brenbot
sub mute
{
my ( $kernel, $session, $heap, $args ) = @_[ KERNEL, SESSION, HEAP, ARG0 ];
my %args = %{$args};
if ( $args{arg} =~ m/^\!\S+\s(.+)$/i )
{
my ( $result, %player ) = plugin::getPlayerData ( $1 );
if ( $result == 1 )
{
plugin::RenRemCMD("mute $player{id}");
#modules::add_muted( $player{name}, $player{ip}, $player{serial} );
}
else { brIRC::ircmsg ( "$1 was not found ingame, or is not unique", "A"); }
}
else
{
brIRC::ircmsg ( "Usage: !mute <player id>", "A");
}
}
|
|
|
|