mIRC Home    About    Download    Register    News    Help

Print Thread
#96116 29/08/04 10:10 PM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
I know this is lame, but anyways..
insong {
haltdef
if ($isid == $true) {
if ($prop == test) { .return test }
}
}
t3 {
if ($isid == $true) {
if ($prop == die) return die
return $prop
}
}
----------------------------
First off, the $insong.test don't work at all,
and the $t3 One DOES, but not how I wanted it to,
It appears that I need to supply a $1 parameter, such as.
$t3(anything).die To make it return die. Though, I really want to type $t3.die.
Same with $insong.test - I just can't get it to work...
-------
I added a "&& ($1 == $null)" to $t3, and I guess its taking $1 as plain text or something, becuase when I try:
$t3().die - Don't work, though, $t3($null).die works.?

Anyone think they can understand, and help. Please try-so, thank you. smile


Live to Dream & Dream for Life
#96117 29/08/04 11:46 PM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
alias insong.test { return whatever }

$insong.test

With $prop you need to specify ()'s because if you dont mIRC wont know if the alias name has a dot in it, or your trying to use $prop.

Eamonn.

#96118 30/08/04 01:46 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
$insong.test won't work because you can't override mIRC identifiers like you can with commands.

BTW, you can use a space between the parentheses. $t3( ).prop

#96119 30/08/04 11:38 AM
Joined: Dec 2002
Posts: 788
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 788
though if you insist on calling it, $/insong.test.

will run your alias, (the /).

Eamonn.

#96120 31/08/04 12:14 AM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
* Added 'insong.test' alias
* /echo: insufficient parameters
----------------------------------------------
Though it don't work, I would still atleast want to have my own $prop for it. ;/
Without having to use $t3( ).die, I want to beable to call up $insong.test with $prop of test frown


Live to Dream & Dream for Life
#96121 31/08/04 08:09 AM
Joined: Aug 2003
Posts: 314
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Aug 2003
Posts: 314
You must use $.insong.test or $/insong.test as was mentioned. Using $ident or $~ident will refer to mIRC's inbuilt identifier, which is why $insong.test will not work since it recognizes $insong as being inbuilt

#96122 31/08/04 11:39 PM
Joined: Apr 2004
Posts: 218
P
Fjord artisan
OP Offline
Fjord artisan
P
Joined: Apr 2004
Posts: 218
Though, still being inbuilt, we should be able to alter, becuase I have my own /splay alias, even $splay can be edited & $prop.
THOUGH, I have to use $splay(1).test with ($1 != $null) && ($prop == test)
Maybe Khaled should let us be able to alter the built-in $identitfiers


Live to Dream & Dream for Life
#96123 01/09/04 04:46 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
Well there is no inbuilt $splay identifier so $splay( ).prop can work. You can use the same format ($id( ).prop) with insong IF you use a . or / before the name ($.insong( ).prop or $/insong( ).prop)
Code:
alias insong {
  if $prop == test { .return test }
  elseif $prop == dirty { .return dirty }
  elseif $prop { .return $v1 }
}
Then use it like so
//echo -a $.insong( ).test - $.insong( ).bah


Link Copied to Clipboard