mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2004
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2004
Posts: 14
how? ^^

A script with the variable %ask, please.

Last edited by no_brain; 14/01/04 07:43 PM.
Joined: Jan 2003
Posts: 3,012
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
Code:
alias answer {
  var %ans = $replace($1, $chr(32), $chr(1)), %show = $2, %a = 1
  while (%a <= $len(%ans)) {
    var %l = $mid(%ans, %a, 1), %final = $+(%final,$iif(%a <= %show, %l, .))
    /inc %a
  }
  return $replace(%final, $chr(1), $chr(32))
}


/echo -a $answer(answer, 3)
/echo -a $answer(answer, 6)

Put the answer for the first part, and the amount to show as the second value. How that's what you wanted.


-KingTomato
Joined: Jan 2004
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2004
Posts: 14
Must I put it into aliases?

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
no remote

it will act as a custom identifier


If it ain't broken, don't fix it!
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
lol Im glad u answered him KingTomato, i couldnt even understand what he was saying frown

Joined: Jan 2004
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Jan 2004
Posts: 14
Thanks


Can u make it so that it only returns a value when 20 seconds are up since the last call?

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
/help /timer


If it ain't broken, don't fix it!

Link Copied to Clipboard