Jump to content

MTAMA Scripting


Si|ent

Recommended Posts

  • Replies 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

first u need a server :P then u need the mIRC MTA admin tool 2.004 or igher i think, then u open script.mrc (C;//program files/mIRC/script.mrc) with notepad, then where u see the aliases add that shit, but take out the liases in the page, that were already there

Link to comment

easy, i would post, but...ahhh what the hell

alias mta.text {
if ($3 == insult) { 
mta.say $1 No insults please.
mta.kick $1 $2
}

if i am wrong, and it dosnt work, post here again, or correct me

and of course change the "insult" to whatever word u DONT want to be said

Link to comment
easy, i would post, but...ahhh what the hell

alias mta.text {
if ($3 == insult) { 
mta.say $1 No insults please.
mta.kick $1 $2
}

if i am wrong, and it dosnt work, post here again, or correct me

and of course change the "insult" to whatever word u DONT want to be said

alias mta.text {
if (insult isin $3-) { 
mta.say $1 No insults please.
mta.kick $1 $2
}

Link to comment

Is there a way to delay a function?

In this code, I want to delay the if () part.

alias mta.join {
;Is there a way to delay this next function with a timer?
if ( {
 mta.say $1 
}


That code would simply be a delayed entry message, but for what I want to do I need to delay some functions. Sorry, I'm learning this scripting thing yet...

Link to comment
Is there a way to delay a function?

In this code, I want to delay the if () part.

alias mta.join {
;Is there a way to delay this next function with a timer?
if ( {
 mta.say $1 
}


That code would simply be a delayed entry message, but for what I want to do I need to delay some functions. Sorry, I'm learning this scripting thing yet...

alias mta.join {
if ( {
  !.timer  mta.say $1 
}
}

Link to comment

Aeron, the problem with that is it checks the condition when the player joins, not after a set amount of time... it just executes the timer right as the player joins. I want it to delay the whole function... not just the message. So I guess I should reword my question... "Is there a way to delay an entire function?"

Link to comment

alias mta.text { 
 if (!stats == $3) { 
   mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) 
 } 

this is only show myself stats,use !stats still show myself stats,how to let show other people stats?

Link to comment

alias mta.kill {
if ($mta.kills($1,$3) == 10) mta.say $1 Woohoo $mta.name($1,$3) has 10 kills!
if ($mta.kills($1,$3) == 20) mta.say $1 Woohoo $mta.name($1,$3) has 20 kills!
if ($mta.kills($1,$3) == 30) mta.say $1 Woohoo $mta.name($1,$3) has 30 kills!
}

* EDIT typo's fixed

this code works great but i was wondering if a deaths version of that could be made? and if so where would it be placed in the script.mrc? and if it would be the same format but with $mta.deaths instead of $mta.kills

pls hlp

example

alias mta.?????? {
if ($mta.deaths($1,$3) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!!
}

Link to comment

i was wondering if a deaths version of that could be made?

example

alias mta.?????? {
if ($mta.deaths($1,$3) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!!
}

Because a kill also means there is a death, put this part in mta.kill as well:

if ($mta.kills($1,$2) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!!  

$2 is the person killed, $3 is the killer

Link to comment
alias mta.text { 
 if (!stats == $3) { 
   mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) 
 } 

this is only show myself stats,use !stats still show myself stats,how to let show other people stats?

alias mta.text { 
 if (!stats == $3) { 
   if ($4 isnum) mta.say $1 Name: $mta.name($1,$4) - ID: $4 - Ping: $mta.ping($1,$4) - Kills: $mta.kills($1,$4) - Deaths: $mta.deaths($1,$4) - Online: $duration($mta.online($1,$4)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) 
   else mta.say $1 Name: $mta.name($1,$2) - ID: $2 - Ping: $mta.ping($1,$2) - Kills: $mta.kills($1,$2) - Deaths: $mta.deaths($1,$2) - Online: $duration($mta.online($1,$2)) - Status: $iif($mta.game($1,$4) == 1,Out Game,In Game) 
 } 

alias mta.kill {
if ($mta.kills($1,$3) == 10) mta.say $1 Woohoo $mta.name($1,$3) has 10 kills!
if ($mta.kills($1,$3) == 20) mta.say $1 Woohoo $mta.name($1,$3) has 20 kills!
if ($mta.kills($1,$3) == 30) mta.say $1 Woohoo $mta.name($1,$3) has 30 kills!
}

* EDIT typo's fixed

this code works great but i was wondering if a deaths version of that could be made? and if so where would it be placed in the script.mrc? and if it would be the same format but with $mta.deaths instead of $mta.kills

pls hlp

example

alias mta.?????? {
if ($mta.deaths($1,$3) == 9) mta.say $1 Haha $mta.name($1,$3) Owned!!
}

alias mta.kill {
if ($mta.deaths($1,$2) == 10) mta.say $1 Haha $mta.name($1,$3) owns $mta.name($1,$2) !
if ($mta.deaths($1,$2) == 20) mta.say $1 Haha $mta.name($1,$3) owns $mta.name($1,$2) !
if ($mta.deaths($1,$2) == 30) mta.say $1 Haha $mta.name($1,$3) owns $mta.name($1,$2) !
}

Link to comment

just wanted to say thx for the last code and now i have another question??

when i insert a code into the alias mta.join

it cancels all the other codes that i have in alias mta.text

can anyone tell me why and how to get around it?

Link to comment
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...