Harry

MTA:MA Scripting

Recommended Posts

Ok, :). None of them has a !trace command, I also searched this forum but couldn't find anything :(. I know there is a working one as I saw in the wankenstein 100% server ;). Thanks. Also how come this !pmute script doesnt work? I gathered the SLR permmute script, changed it up a bit and it mutes but doesn't auto mute them again when they join back. Help ;).

on *:SIGNAL:mta.command { 
  if ($3 == !pmute) { 
    var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$prs.getid($1,$4)),$2)  
    if ($4 == $null) mta.pm $1 $2 Error: !pmute <nick> 
    else { 
      if ($prs.level($1,$2) >= 3) { 
        !hadd -n prsbans mute $+ $mta.ip($1,%a) $mta.nick($1,%a) 
        !hadd -n prsbans mute $+ $mta.nick($1,%a) yes 
        mta.pm $1 $2 $mta.nick($1,%a) is now permuted. 
        mta.mute $1 %a 
      } 
    } 
  } 
} 
elseif ($3 == !unpmute) { 
  var %a = $iif($4,$iif($mta.nick($1,$4) != $null,$4,$prs.getid($1,$4)),$2) 
  if ($4 == $null) mta.pm $1 $2 Error: !unpmute <nick> 
  else { 
    if ($prs.level($1,$2) >= 3) { 
      !hdel -n prsbans mute $+ $mta.ip($1,%a) 
      !hdel -n prsbans mute $+ $mta.nick($1,%a) 
      mta.pm $1 $2 $mta.nick($1,%a) is unpermuted. 
      mta.unmute $1 %a 
    } 
  } 
} 
  
on *:SIGNAL:mta.join: { 
  if ($mta.nick($1,$2) isin $prs.ip($1,$2)) { 
    prs.cpmute $1- 
  
===== 
alias prs.cpmute { 
  var %a = $iif(($4 == $null),$2,$iif(($prs.getid($1,$4) == $null),$2,$v1)) 
  if ($prs.muted($1,%a) == yes) && ($mta.nick($1,%a) isin $prs.ip($1,%a)) { 
    mta.text $1 $mta.nick($1,%a) is permuted. Muting.. 
    mta.mute $1 %a  
  } 
} 
  
alias prs.ip !return $hget(prsbans,mute $+ $mta.ip($1,$2)) 
alias prs.muted !return $hget(prsbans,mute $+ $mta.nick($1,$2)) 

Edited by Guest

Share this post


Link to post

many parts from PRS in there wont work without the other half to them,

u need to change $prs.getid, either to what u have or $mta.getid, also the other bits with $prs.level etc,

also the parts where it adds to the hash table will need altering if u dont have the part that creates the hash table in ur script.

there are bracket errors in mta.command too, which cuts out everything after the !pmute command.

finally the part with //// \\\\ will cause problems without the /* */ above and below.

all in all, not looking too good :roll:

Share this post


Link to post

I'm using PRS now. ;) And also for posting on here I gathered the whole script and made it separate but I really put the aliases in the alias section and the commands in the command section, so I don't know why it's not working, :cry: btw, I edited the code, because in my script it shows the $prs.getid, must've worked on it after also :P

Share this post


Link to post

well with that as is it, its never gonna work, its got a lot of errors, but theyre only minor ones,

give me a shout on msn and i'll help u out.

Share this post


Link to post

I think you blocked me :P, or appear offline, because your never on now :P

Share this post


Link to post
I think you blocked me :P, or appear offline, because your never on now :P

no idea who you are on msn but i dont have anyone called ' Ins' :mrgreen:

i dont use msn much nowdays... im always ingame :)

Share this post


Link to post
I think you blocked me :P, or appear offline, because your never on now :P

no idea who you are on msn but i dont have anyone called ' Ins' :mrgreen:

i dont use msn much nowdays... im always ingame :)

Dude, that post is 3 years old...

Share this post


Link to post

  • Recently Browsing   0 members

    No registered users viewing this page.