Jump to content

Wriehs echo bot!


Wrieh

Recommended Posts

Hi i have created an echo bot :)

on *:SIGNAL:mta.command: { 
  /msg %echochannel 3[ $+  $+ CHAT $+  $+ ]1 $mta.nick($1,$2): $3- 
} 
on *:SIGNAL:mta.startrace: { 
  msg %echochannel 7[SERVER] The Map $mta.race(1) Has started! 
} 
on *:SIGNAL:mta.death: { 
  /msg %echochannel 7[ $+  $+ SERVER $+  $+ ]1 $mta.nick($1,$2) Died! 
} 
on *:SIGNAL:mta.text: { 
  /msg %echochannel 3[ $+  $+ CHAT $+  $+ ]1 $mta.nick($1,$2) $+ : $3- 
} 
on *:SIGNAL:mta.join: { 
  /msg %echochannel 7[ $+  $+ SERVER $+  $+ ]1 $mta.nick($1,$2) joined the game. 
} 
on *:SIGNAL:mta.pm: { 
  if ($2 != 254) /msg %echochannel 7[ $+  $+ SERVER $+  $+ 0]1 $mta.nick($1,$2) send a pm to $mta.nick($1,$3). 
} 
on *:SIGNAL:mta.part: { 
  /msg %echochannel 7[SERVER] $mta.nick($1,$2) had left the game. 
} 
on *:QUIT:#:{ 
  if ( $chan == %echochan )  /mta.text 1 $nick has quit IRC! 
} 
on *:SIGNAL:mta.adcon: { 
  if ($1 == %echoserverid) && ( $2 == 254 ) && ($3 == /me) msg %echochan 7[ADMIN] 6 $+ $4- 
  if ($1 == %echoserverid) && ( $2 == 254 ) && ($3 != /me) msg %echochan 7[ADMIN]  $3- 
  if ($1 == %echoserverid) && ( $2 == 255 ) && ($3 == /me) msg %echochan 7[CONSOLE] 6 $+ $4- 
  if ($1 == %echoserverid) && ( $2 == 255 ) && ($3 != /me) msg %echochan 7[CONSOLE]  $3- 
} 
on *:TEXT:!say*:#: { 
  if ($chan == %echochannel) { 
    if ($2 == /me)  { 
      /mta.text 1 /me $nick [iRC]: $3- 
    }   
    else { 
      /mta.text 1 $NICK [iRC]: $2- 
    } 
  } 
} 
on *:TEXT:@say*:#wrieh: { 
  if ($nick == %lvl3) { 
    /mta.text 1 $2- 
  } 
} 
on *:TEXT:!player*:#:{ 
  if ($chan == %echochan) {  
    player $1- 
  } 
} 
alias player { 
  var %a = 0, %b = None 
  while (%a < %loop) { 
    if ($mta.nick(1,%a) != $null) { 
      if ($mta.level(1,%a) >= 0) { 
        if (%b == None) %b = $mta.nick(1,%a)  
        else %b = %b $+ , $mta.nick(1,%a) 
      } 
    } 
    !inc %a 
  } 
  msg %echochan $mta.server(1).players $+ / $+ 24 players online: %b $+ . 
} 
on *:TEXT:!ip*:#: { 
  msg $chan IP:   $mta.server(1).ip $+ : $+ $mta.server(1).cport 
} 
on *:TEXT:!mesay*:#: { 
  if ($nick ison %echochan) { 
    /mta.text 1 /me $NICK [iRC] : $2- 
  } 
} 
on *:join:#:{ 
  if ( $chan == %echochan )  /mta.text 1 $nick has joined IRC! 
} 
on *:part:#:{ 
  if ( $chan == %echochan )  /mta.text 1 $nick has has leaved IRC (Reason: Parted) 
} 
on *:kick:#:{ 
  if ( $chan == %echochan ) /mta.text 1 $knick has leaved IRC! (Reason: Kicked) 
} 
on *:TEXT:!map*:#:{ 
  msg $chan Server is currently playing: $mta.race(1) 
} 
on *:TEXT:!stopecho*:#:{ 
  if ( $nick == $me ) /mta.disconnect 1 
} 
on *:TEXT:!startecho*:#:{ 
  if ( $nick == $me ) /mta.connect 1 
} 
on *:TEXT:!setecho*:#:{ 
  if ( $nick == $me ) /set %echochannel $2- 
  if ( $nick == $me) /set %echochan $2- 
if ( $nick == $me ) /set %echoserverid 1 
} 

The options in this echo are:

!stopecho The echos stops and disconnects!

!startecho the echo starts and connects!

!say You can say something ingame

@say Admins say no nickname ;)

!say /me you say something in the purple!

!mesay '' '' '' '' '' ''

!players you can see who is ingame!

!setecho You do need this before you can run your echo ;)

!map You can see what map is playing!

Much phun with it!

Link to comment

...

...

...

Most of this script i have created

"

!say You can say something ingame

@say Admins say no nickname ;)

!say /me you say something in the purple!

!mesay '' '' '' '' '' ''

!players you can see who is ingame!

"

Thats what i have created

So dont say you have created by your one!

Link to comment

  
on *:TEXT:!stopecho*:#:{ 
  if ( $nick == $me ) /mta.disconnect 1 
} 
on *:TEXT:!startecho*:#:{ 
  if ( $nick == $me ) /mta.connect 1 
} 
on *:TEXT:!setecho*:#:{ 
  if ( $nick == $me ) /set %echochannel $2- 
  if ( $nick == $me) /set %echochan $2- 
if ( $nick == $me ) /set %echoserverid 1 
} 
  

this part wil NOT work since you cant trigger a command from the same side as the scripts are loaded and you got the prefix if ($nick == $me) so it will say that if the nick is the same called as the bot it does work.. but you cant have 2 same names in IRC so it wont work lol anyway nice try and some other points.. the script could be shortened for 50% if you would do this: on *:text:*:#:{ if ($aalalalal == lalalalala) mta.connect 1 }

than its in one line ;)

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...