Jump to content

!comment postbox needed


NeO_Hardi

Recommended Posts

hey hardi its me Rob_nl :P

well i will make your postbox :o

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

Link to comment

and the other tinhg you asked for :P

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 :P

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 by Guest
Link to comment

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!

Link to comment

@ 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 :P 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

Link to comment
  • Recently Browsing   0 members

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