Guest Posted September 24, 2004 Share Posted September 24, 2004 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
Aeron Posted September 25, 2004 Share Posted September 25, 2004 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
Guest Posted September 25, 2004 Share Posted September 25, 2004 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 Link to comment
Aeron Posted September 25, 2004 Share Posted September 25, 2004 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
Oli Posted October 30, 2004 Share Posted October 30, 2004 lol u can tell these dont know any programming Link to comment
tbot Posted October 31, 2004 Share Posted October 31, 2004 lol u can tell these dont know any programming Calling mIRC scripting programming is quite an overstatement... Link to comment
Oli Posted October 31, 2004 Share Posted October 31, 2004 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
Bungle Posted November 1, 2004 Share Posted November 1, 2004 it's just a very basic language to use, that really doesn't require (or shouldn't require) any extensive learning to get to grips with it. of course for an irc client and what it is capable of, it is quite powerful in that concept. - Bungle Link to comment
Gun-Nut Posted November 1, 2004 Share Posted November 1, 2004 hmm does not seem to work i went to the bank its the one near the bridge what leads to mansion right? Link to comment
Mike Posted November 1, 2004 Share Posted November 1, 2004 You have to have admin+ enabled and be a robber and then say !rob Link to comment
Gun-Nut Posted November 1, 2004 Share Posted November 1, 2004 You have to have admin+ enabled and be a robber and then say !rob hmm i do have admin+ on and i also was a robber and did !rob Link to comment
Slothman Posted November 1, 2004 Share Posted November 1, 2004 scripts can sometimes have problems detecting what class you are. do a /kill and try a few times. Link to comment
Recommended Posts