I have a friend that uses Trillian. He has this script that allows him to to tye /slap [nick] and it produces a saying that uses what ever he put in the [nick] part.

I was wondering, is there anyway it would work in mIRC? Here is the code:

Code:
int main()
{ 
  add_alias("slap", a_slap);
  add_alias("slap1", a_slap1);
  add_alias("slap2", a_slap2);
  add_alias("slap3", a_slap3);
  add_alias("slap4", a_slap4);
}

string defchan = "#santharia";
string defchan = "#santharia";

string slap = "upside the head with a large trout.";
string slap1 = "with a Volvo... that was clamped anyway so the driver doesn't mind.";
string slap2 = "with the back of his hand.";
string slap3 = "with a wiffle bat.";
string slap4 = "with a Cat'O'Nine tails.";

void a_slap(void)
{
  if (ArgList[1] != NULL) defchan = ArgList[1];
  if (ArgList[0] != NULL) person = ArgList[0];
  parse_command("/describe ", defchan," slaps ", person, " ", slap, "\n");
}
void a_slap1(void)
{
  if (ArgList[1] != NULL) defchan = ArgList[1];
  if (ArgList[0] != NULL) person = ArgList[0];
  parse_command("/describe ", defchan," slaps ", person, " ", slap, "\n");
}
void a_slap2(void)
{
  if (ArgList[1] != NULL) defchan = ArgList[1];
  if (ArgList[0] != NULL) person = ArgList[0];
  parse_command("/describe ", defchan," slaps ", person, " ", slap, "\n");
}
void a_slap3(void)
{
  if (ArgList[1] != NULL) defchan = ArgList[1];
  if (ArgList[0] != NULL) person = ArgList[0];
  parse_command("/describe ", defchan," slaps ", person, " ", slap, "\n");
}
void a_slap4(void)
{
  if (ArgList[1] != NULL) defchan = ArgList[1];
  if (ArgList[0] != NULL) person = ArgList[0];
  parse_command("/describe ", defchan," slaps ", person, " ", slap, "\n");
}

 


If it doesn't is there a way I can do it in mIRC?