Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » brenbot create custom messages
Re: brenbot create custom messages [message #466243 is a reply to message #466239] Mon, 16 April 2012 14:10 Go to previous messageGo to previous message
robbyke is currently offline  robbyke
Messages: 348
Registered: September 2010
Location: Belgium
Karma:
Recruit
thanks exactly what i need to get started

i dont get this $1 and $2 stuff what does they mean how do i know what they can contain?

sub iranstuff
{
    my ( $kernel, $session, $heap, $args ) = @_[ KERNEL, SESSION, HEAP, ARG0 ];
	my %args = %{$args};
    my $line = $args->{'line'};	
	if ($line =~ m/^\[IRANSTUFF\](.+)$/)
	{
		my $msg;
		my $prefix;
		if ( $1 =~ m/^\[(.+)\](.+)/ ) {$prefix = $1; $msg = $2;}
		$prefix = "09[04$prefix09]09 ";
		plugin::ircmsg ( $prefix . $msg , "A" );
	}	
}


ah i got something thats good enough for me thanks alot


Owner of kambot TT server

kambot.freeforums.org

[Updated on: Tue, 17 April 2012 08:48]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Mapping Textures + Trees.
Next Topic: timers little question
Goto Forum:
  


Current Time: Sat Dec 21 22:03:41 MST 2024

Total time taken to generate the page: 0.01314 seconds