Jump to content
xisto Community
Sign in to follow this  
iGuest

Some mta scripts

Recommended Posts

Ok, I went scripting, and came out with some mIRC scripts for mta.
here they are:

alias mta.command  if ($3 == !hug) {    if ($4 == $null) {     mta.say   }   else {     if ($mta.name($1,$mta.getid($1,$4)) == Unknown) mta.say $1 $+ : Error: ID/Name not present.     else {       mta.say $1 $mta.name($1,$2) hugs $mta.name($1,$mta.getid($1,$4))    }  }}alias mta.command  if ($3 == !but) {    if ($4 == $null) {     mta.say   }   else {     if ($mta.name($1,$mta.getid($1,$4)) == Unknown) mta.say $1 $+ : Error: ID/Name not present.     else {       mta.say $1 $mta.name($1,$2) kicks $mta.name($1,$mta.getid($1,$4)) 's lame *bottom*!    }  }}alias mta.command {  var %a = $readini(%dir $+ $1.ini,ID $+ $2,level),%b = $iif($4 isnum,$4,$mta.getid($1,$4))  if (%a > -1) {    if (%a > 0) {      if (%a > 1) {        if (%a > 2) {          if (%a > 3) {            if (%a > 4) {              if ($3 == !setlevel) {                if (%b == -1) mta.msg $1 $2 Error - Absent ID.                else {                  if ($5 < 1) || ($5 > 6) || ($5 == $null) mta.msg $1 $2 Invalid Admin level.                  else {                    if ($readini(%dir $+ $1.ini,ID $+ %b,level) > %a) {                      mta.msg $1 $2 Can not change level of admin with higher Admin level.                      mta.msg $1 %b Admin $+(',$mta.name($1,$2),') was trying to change your level to: $5                    }                     else {                      if ($readini(%dir $+ $1.ini,ID $+ %b,level)) {                        mta.say $1 $+(',$mta.name($1,%b),''s) level is changed from $readini(%dir2 $+ nickserv.ini,$mta.name($1,%b),level) to $5 by admin $+(',$mta.name($1,$2),'.)                        !writeini -n " $+ %dir2 $+ nickserv.ini" $mta.name($1,%b) level $5                        !writeini -n " $+ %dir $+ $1.ini" ID $+ $2 level $5                      }                      else mta.msg $1 $2 $mta.name($1,%b) is not logged in as admin.                    }                  }                }              }            }   If ($3 == !w) {mta.setweather $1 0mta.settime $1 07:00}    }  }   if ($3 == !health) {    if ($4 == $null) {     mta.msg $1 $2 $mta.name($1,$2) your health is $mta.health($1,$2) $+ %   }   else {     if ($mta.name($1,$mta.getid($1,$4)) == Unknown) mta.say $1 $+ : Error: ID/Name not present.     else {       mta.say $1 $mta.name($1,$mta.getid($1,$4)) - health: $mta.health($1,$mta.getid($1,$4)) %    }  }}   if ($3 == !hug) {    if ($4 == $null) {     mta.say   }   else {     if ($mta.name($1,$mta.getid($1,$4)) == Unknown) mta.say $1 $+ : Error: ID/Name not present.     else {       mta.say $1 $mta.name($1,$2) hugs $mta.name($1,$mta.getid($1,$4))    }  }}}

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.