Guest Posted July 1, 2008 Share Posted July 1, 2008 hey i have a irc-script but it doesnt work: on *:START:{ set %echoserverid 1 set %echochan #myonlyIrc } on *:SIGNAL:PART:{ if ($chan == %echochan) /mta.text %echochan [iRC] $chan $nick has left the IRC channel! } on *:SIGNAL:JOIN:{ if ($chan == %echochan) /mta.text %echochan [iRC] $nick has joined the IRC channel! } on *:SIGNAL:mta.text:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:!.SIGNAL:mta.command:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.echo:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.login:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [login] 10 $mta.nick($1,$2) logged in } on *:SIGNAL:mta.msg:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.echo:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [Admin] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.join:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [Join] 10 $mta.nick($1,$2) has joined the game. } on *:SIGNAL:mta.part:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [Disconnect] 10 $+ $mta.nick($1,$2) has left the game. } on *:SIGNAL:Mta.ban:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [ban] 10 $+ $mta.nick($1,$2) Banned by remote admin } on *:SIGNAL:mta.Freeze:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [freeze] 10 $+ $mta.nick($1,$2) Frozen by remote admin } on *:SIGNAL:Mta.mute:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [mute] 10 $+ $mta.nick($1,$2) succesfull Muted by remote admin } on *:SIGNAL:Mta.unmute:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [unmute] 10 $+ $mta.nick($1,$2) succesfull unmuted by remote admin } on *:SIGNAL:Mta.unfreeze:( if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [unfreeze] 3 $+ $mta.nick($1,$2) succesfull unfrozen by remote admin on *:SIGNAL:mta.Command:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [command] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.death:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [Died] 10 $+ $mta.nick($1,$2) just died > } on *:SIGNAL:mta.endrace:{ if ($1 == %echoserverid) /msg #myonlyIrc 4*14 [endrace] 10 $+ $mta.race($1,$2) Just ended! my server is in tab1 in mta:ma and is connected to server and #myonlyIrc is the chatroom i want. pls help me Link to comment
wannaknow Posted July 6, 2008 Share Posted July 6, 2008 on *:SIGNAL:PART:{ if ($chan == %echochan) /mta.text %echochan [iRC] $chan $nick has left the IRC channel! } on *:SIGNAL:JOIN:{ if ($chan == %echochan) /mta.text %echochan [iRC] $nick has joined the IRC channel! } Will not work i I think it must be: on *:PART:{ if ($chan == %echochan) /mta.text %echoservid [iRC] $chan $nick has left the IRC channel! } on *:JOIN:{ if ($chan == %echochan) /mta.text %echoserverid [iRC] $nick has joined the IRC channel! } Otherwise, Why would you make a new echo when Lil_Toady have already made one?? I want to say Use the search button before you are posting some thing And why you you are making a variable %echochan if you don't use it? Mayby this one is beter: on *:SIGNAL:mta.text:{ if ($1 == %echoserverid) /msg %echochan 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:!.SIGNAL:mta.command:{ if ($1 == %echoserverid) /msg %echochan 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.echo:{ if ($1 == %echoserverid) /msg %echochan 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.login:{ if ($1 == %echoserverid) /msg %echochan 4*14 [login] 10 $mta.nick($1,$2) logged in } on *:SIGNAL:mta.msg:{ if ($1 == %echoserverid) /msg %echochan 4*14 [msg] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.echo:{ if ($1 == %echoserverid) /msg %echochan 4*14 [Admin] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.join:{ if ($1 == %echoserverid) /msg %echochan 4*14 [Join] 10 $mta.nick($1,$2) has joined the game. } on *:SIGNAL:mta.part:{ if ($1 == %echoserverid) /msg %echochan 4*14 [Disconnect] 10 $+ $mta.nick($1,$2) has left the game. } on *:SIGNAL:Mta.ban:{ if ($1 == %echoserverid) /msg %echochan 4*14 [ban] 10 $+ $mta.nick($1,$2) Banned by remote admin } on *:SIGNAL:mta.Freeze:{ if ($1 == %echoserverid) /msg %echochan 4*14 [freeze] 10 $+ $mta.nick($1,$2) Frozen by remote admin } on *:SIGNAL:Mta.mute:{ if ($1 == %echoserverid) /msg %echochan 4*14 [mute] 10 $+ $mta.nick($1,$2) succesfull Muted by remote admin } on *:SIGNAL:Mta.unmute:{ if ($1 == %echoserverid) /msg %echochan 4*14 [unmute] 10 $+ $mta.nick($1,$2) succesfull unmuted by remote admin } on *:SIGNAL:Mta.unfreeze:( if ($1 == %echoserverid) /msg %echochan 4*14 [unfreeze] 3 $+ $mta.nick($1,$2) succesfull unfrozen by remote admin } on *:SIGNAL:mta.command:{ if ($1 == %echoserverid) /msg %echochan 4*14 [command] 10 $mta.nick($1,$2) $+ : $3- } on *:SIGNAL:mta.death:{ if ($1 == %echoserverid) /msg %echochan 4*14 [Died] 10 $+ $mta.nick($1,$2) just died > } on *:SIGNAL:mta.endrace:{ if ($1 == %echoserverid) /msg %echochan 4*14 [endrace] 10 $+ $mta.race($1,$2) Just ended! } Now the script mut work ( I hope it ) Edit: Echo from Lil_Toady: http://mta-stats.com/downloads/echo.mrc Link to comment
Recommended Posts