Jump to content

lol help me plz


Guest muchal

Recommended Posts

alias bank.jobcheck {
 if ($mta.area(%server,%bankrobber) != Bank Little-Havana Vice-City-Mainland) {
   !timerbankjob off
   !timerbankjob1  off
   !timerbankjobcheck off
   !timerunsetrobber off
   mta.msg %server %bankrobber U failed at robbing the bank, now u dont have money and ur wanted..
   mta.say %server BANK ALARM RINGS!!! %bankrobber IS WANTED, LAST SEEN AT THE BANK!!
   unset %bankrobber
 }
} 
alias mta.command {
if ($3 == !rob && $mta.skin($1,$2).name == Robber && $mta.area($1,$2) == Bank Little-Havana Vice-City-Mainland) {
   if (%robbery != 1) {    
     set %robbery 1
     mta.say $1 THIS IS A RAID!!!
     !timerlolsay2 1 1 mta.say $1 NOBODY MOVE !!!
     !timerlolsay3 1 2 mta.say $1 EVERYBODY UP AGAINST THAT WALL!!!
     !timerbankjob 1 15 mta.say $1 BANK ALARM RINGS!!! $mta.name($1,$2) does the robbery!
     mta.msg $1 $2 U cant runaway for 40 seconds, or u will fail the bankjob. 
     set %bankrobber $mta.name($1,$2)
     !timerbankjob1 1 41 mta.say $1 $mta.name($1,$2) u have ur 15000$, now RUN RUN RUN!!!
     !timerbankjobcheck 4 10 bank.jobcheck
     !timerunsetrobber 1 41 unset %bankrobber
     !timerlololol 1 50 unset %robbery
   }
   else {
     mta.say $1 $mta.name($1,$2) $+ , dont u see that the bank is being robbed now?
   }
 }
}

help me out please... i have no goddamn idea why it doesnt work.

only thing i found out is that mIRC hangs when bank.jobcheck begins

Link to comment
alias bank.jobcheck {
 if ($mta.area($1,$2) != Bank Little-Havana Vice-City-Mainland) {
   !.timerbank.* off
   mta.msg $1 $2 U failed at robbing the bank, now u dont have money and ur wanted..
   mta.say $1 BANK ALARM RINGS!!! $mta.name($1,$2) IS WANTED, LAST SEEN AT THE BANK!!
 }
} 
alias mta.command {
 if ($3 == !rob) && ($mta.skin($1,$2).name == Robber) && ($mta.area($1,$2) == Bank Little-Havana Vice-City-Mainland) {
   if (!$timer(bank.check)) {    
     mta.say $1 THIS IS A RAID!!!
     mta.msg $1 $2 U cant runaway for 40 seconds, or u will fail the bankjob. 
     !.timerbank.say1 1 1 mta.say $1 NOBODY MOVE !!!
     !.timerbank.say2 1 2 mta.say $1 EVERYBODY UP AGAINST THAT WALL!!!
     !.timerbank.say3 1 15 mta.say $1 BANK ALARM RINGS!!! $mta.name($1,$2) does the robbery!
     !.timerbank.say5 1 41 mta.say $1 $mta.name($1,$2) u have ur 15000$, now RUN RUN RUN!!!
     !.timerbank.check 20 2 bank.jobcheck $1 $2
   }
   else {
     mta.say $1 $mta.name($1,$2) $+ , dont u see that the bank is being robbed now?
   }
 }
}

Link to comment
ty.

please explain to me what is that dot doing there: !.timer

and why is $ in: !$timer

i always used it without those symbols and it worked well

the '!' prefix triggers the orginal 'timer' alias and not the costum 'timer' alias

the '.' prefix makes the command silent. so it wont echo any text such as 'Timer whtever started' or 'Timer whatever halted'

the '!' operator makes the value reverse:

!$true == $false

$true == !$false

so '!$timer(whatever)' means 'when timer whatever is not running'

Link to comment
  • 1 month later...

lol... i means the general rules r pretty similar. U have if trees, while loops (not for or do while but nvm) u have similar operators.

mIRC scripting is... well... scripting.. but it uses similar concepts.

Link to comment
  • Recently Browsing   0 members

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