NeO_Hardi Posted July 2, 2007 Posted July 2, 2007 hey all can anybody say or make me a kind of postbox? for example !comment map 2 has in erorr it should be a comamnd to report anything eg for the headadmins
JB_frozen Posted July 2, 2007 Posted July 2, 2007 hey hardi its me Rob_nl well i will make your postbox on *:signal:mta.command:{ if ($3 == !comment) { if ($4 == $null) { mta.text $1 sorry you havent fill in a reason } else { !write " $+ $scriptdir $+ comments.txt" $4- mta.pm $1 $2 The comment $4- has been added } } if ($3 == !read) { var %x = 1, %z = $lines($scriptdir $+ comments.txt) while %x <= %z { mta.pm $1 $2 $read($scriptdir $+ comments.txt,n,%x) inc %x } } } goodluck
JB_frozen Posted July 2, 2007 Posted July 2, 2007 (edited) and the other tinhg you asked for on *:START:{ set %echoserverid 1 set %echochan #hardis_bot } on *:SIGNAL:mta.join:{ if ($1 == %echoserverid) /msg #hardis_bot [Join] $mta.nick($1,$2) has joined the game. } on *:SIGNAL:mta.part:{ if ($1 == %echoserverid) /msg #hardis_bot [Disconnect] $mta.nick($1,$2) has left the game. } on *:SIGNAL:Mta.ban:{ if ($1 == %echoserverid) /msg #hardis_bot [ban] $mta.nick($1,$2) Banned by remote admin } on *:SIGNAL:mta.Freeze:{ if ($1 == %echoserverid) /msg #hardis_bot [freeze] $mta.nick($1,$2) Frozen by remote admin } on *:SIGNAL:mta.kick:{ if ($1 == %echoserverid) /msg #hardis_bot [Kick] $mta.nick($1,$2) kicked by remote admin } on *:SIGNAL:Mta.mute:{ if ($1 == %echoserverid) /msg #hardis_bot [mute] $mta.nick($1,$2) succesfull Muted by remote admin } on *:signal:mta.command:{ if ($1 == %echoserverid) /msg #hardis_bot [command $mta.nick($1,$2) $+ : $3- } and the commands on *:signal:mta.command:{ var %a = $iif($2,$iif($mta.nick(%serverID,$2) != $null,$2,$mta.getid(%serverID,$2))) if ($1 == !mute) { if (neo_ isin $nick) { /mta.mute 1 %a } else notmember } if ($1 == !unmute) { if (neo_ isin $nick) { /mta.unmute 1 %a } else notmember } if ($1 == !freeze) { if (neo_ isin $nick) { /mta.freeze 1 %a } else notmember } if ($1 == !unfreeze) { if (neo_ isin $nick) { /mta.unfreeze 1 %a } else notmember } if ($1 == !ban) { if (neo_ isin $nick) { /mta.ban 1 %a } else notmember } if ($1 == !unban) { if (neo_ isin $nick) { /mta.unban 1 %a } else notmember } if ($1 == !kick) { if (neo_ isin $nick) { /mta.kick 1 %a } else notmember } } alias notmember /msg #hardis_bot sorry you arent member $nick Edited July 3, 2007 by Guest
lil Toady Posted July 3, 2007 Posted July 3, 2007 you've messed up my echo script there.. http://mta-stats.com/downloads/echo.mrc
HouseMD Posted July 3, 2007 Posted July 3, 2007 Job, I made a irc server myself! and there is no thing as on *:SIGNAL:mta.ban: it all goes under on *:SIGNAL:mta.part: $3 = /0/1/2/3 0 = left 1 = kicked 2 = banned 3 = timed-out EDIT: LOL!!!!!! look at that mistake on !ban lol "Notmember" says "You are not a member of House" or "You are not a member of hardi" lol I use my !kick and !ban with operator status! alias irc.getid { var %a = 1 while (%a <= $nick(#wankenstein-24/7,0)) { if ($+(*,$1,*) iswm $nick(#wankenstein-24/7,%a)) !return %a !inc %a } !return -1 } alias op.check { var %a = 1 while (%a <= $nick(#wankenstein-24/7,0)) { if $nick(#wankenstein-24/7,%a,o) == $nick(#wankenstein-24/7,$1) !return 1 !inc %a } !return 0 } irc.getid gets the ID of a nick op.check needs the id and detects if the person is a operator!
JB_frozen Posted July 3, 2007 Posted July 3, 2007 @ toady no i dindt i had the Old one and didnt saw you reupdated but the old one didnt works so well so i edited it till it worked and hardi asked me for a script that echo's ingame chat and that he could use the commands from IRC and that only members could use it so i maded it this way
NeO_Hardi Posted July 6, 2007 Author Posted July 6, 2007 first ty all for your help but the cmds from irc to sever dont work
Recommended Posts