Jump to content

Alarm?


Guest XxStewieXx343

Recommended Posts

Could someone make an alarm for MTA? I see that the Skull Breaker RPG has one in their script... if someone already has an alarm clock script could they e-mail me/post a link? My email is XxStewieXx343@gmail.com hope yall can make this cause it seems super easy.. lol ( I can't script worth s*** )

Link to comment

 if ($3 == !alarm) {
   var %a = $iif($4 isnum 1-120,$4,5)
   mta.msg $1 $2 Your alarm message will be sent in %a $+ mins
   !.timer 1 $calc(%a * 60) mta.msg $1 $2 ALARM CALL - from $calc(%a * 60) $+ mins ago!
 }

...simple, but effective :wink:

Link to comment

You'd put it in the " on *:SIGNAL:mta.command:{ " section, section being between the { and the closing }

if there are any other 'if/elseif' commands, it would be easier to stick it at the very top, and change the one below it from IF to ELSEIF.

...but then, you sound like you know squat about scripting, so im sure you'l make a complete balls up :D

Link to comment
You'd put it in the " on *:SIGNAL:mta.command:{ " section, section being between the { and the closing }

if there are any other 'if/elseif' commands, it would be easier to stick it at the very top, and change the one below it from IF to ELSEIF.

...but then, you sound like you know squat about scripting, so im sure you'l make a complete balls up :D

LOL i hope he really gets u if not he will posting here again. :lol:

Link to comment
I suggest you poke someone who knows mirc scripting and let him add it for you. Those ppl know what errors you can (and will) make, and they can directly see from the error messages what they did wrong.

He poked mee too much before so i blocked him and banned him and everything and i hope he doesnt poke any one else too.

Link to comment

All he needs is a little hand in helping him learn HOW to script. I'm not making any scripts for anybody, nor any examples, casue i'm sick of it. But I do help those who want to try and learn how to modify scripts themselves

Link to comment

Other Alarm Script:

if ( $3 == !alarm ) { 
   if ($4 != $null) { 
     if ($4 isnum ) { 
       if ($5 == mins || $5 == min || $5 == m ) { 
         if ($4 == 1) { 
           set %alarm $calc( $4 * 60 ) 
           mta.say $1 $mta.name($1,$2) $+ : Alarm activated for $4 minute. 
           .timer 1 %alarm mta.say $1 $mta.name($1,$2) $+ : ALARM TIME UP. 
           unset %alarm 
         } 
         else { 
           set %alarm $calc( $4 * 60 ) 
           mta.say $1 $mta.name($1,$2) $+ : Alarm activated for $4 minutes. 
           .timer 1 %alarm mta.say $1 $mta.name($1,$2) $+ : ALARM TIME UP. 
           unset %alarm 
         } 
       } 
       elseif ($5 == secs || $5 == sec || $5 == s) { 
         if ($4 == 1) { 
           set %alarm $4 
           mta.say $1 $mta.name($1,$2) $+ : Alarm activated for $4 second. 
           .timer 1 %alarm mta.say $1 $mta.name($1,$2) $+ : ALARM TIME UP. 
           unset %alarm 
         } 
         else { 
           set %alarm $4 
           mta.say $1 $mta.name($1,$2) $+ : Alarm activated for $4 seconds. 
           .timer 1 %alarm mta.say $1 $mta.name($1,$2) $+ : ALARM TIME UP. 
           unset %alarm 
         } 
       } 
       elseif ($5 == hours || $5 == hour || $5 == h) { 
         if ($4 == 1) { 
           set %alarm $calc( $4 * 3600 ) 
           mta.say $1 $mta.name($1,$2) $+ : Alarm activated for $4 hour. 
           .timer 1 %alarm mta.say $1 $mta.name($1,$2) $+ : ALARM TIME UP. 
           unset %alarm 
         } 
         else { 
           set %alarm $calc( $4 * 3600 ) 
           mta.say $1 $mta.name($1,$2) $+ : Alarm activated for $4 hours. 
           .timer 1 %alarm mta.say $1 $mta.name($1,$2) $+ : ALARM TIME UP. 
           unset %alarm 
         } 
       } 
       else { 
         mta.say $1 $mta.name($1,$2) $+ : Error - Specify time format. Syntax -  
       } 
     } 
     else { 
       mta.say $1 $mta.name($1,$2) $+ : Error - Specify time. Syntax -  
     } 
   } 
   else { 
     mta.say $1 $mta.name($1,$2) $+ : Syntax -  
   } 
 }

Out Script Packase :P

Link to comment
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...