mIRC Home    About    Download    Register    News    Help

Print Thread
#202119 15/07/08 01:03 PM
Joined: Jul 2008
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2008
Posts: 10
I have written this that tells a user when their stealth would be full...

Code:
on *:text:Stealth*:*: msg $chan $nick $+ , your nerve should be full in $calc(( $gettok($2,2,47) - $gettok($2,1,47) ) * 10 ) mins. }


Pasting is..
Stealth: 15/25
For this result..
Evil_Panda, your stealth should be full in 100 mins.

Is there a way that I can be automatically notified at whatever time is calculated preferably through a notice of message to user?

EDIT - Thanks Typo for help with the other one and for the tutorial site, its got me this far

Last edited by Evil_Panda; 15/07/08 01:04 PM.
Evil_Panda #202127 15/07/08 08:19 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
Code:
on *:text:Stealth*:*:{
  msg $chan $nick $+ , your nerve should be full in $calc(( $gettok($2,2,47) - $gettok($2,1,47) ) * 10 ) mins. 
  .timer $+ $cid $+ $chan $+ $nick 1 $calc(( $gettok($2,2,47) - $gettok($2,1,47) ) * 600 ) notice $nick Your nerve should now be full.
}

hixxy #202136 16/07/08 05:36 AM
Joined: Jul 2008
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2008
Posts: 10
Thanks but no matter what the result of stealth is this just sends the notification after 10mins. Thanks anyway.

Evil_Panda #202144 16/07/08 08:17 AM
Joined: Jun 2008
Posts: 48
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Jun 2008
Posts: 48
Your code is missing from the post so I assume you removed it.

I'de like to help you since you couldn't get it figured out so if its still only going for ten minute timers respond here with the code again so I can see it that way I know if/what is wrong with the code given to you.


I've gone to look for myself. If I should return before I get back, please keep me here.
Typos #202153 16/07/08 12:07 PM
Joined: Jul 2008
Posts: 10
E
Pikka bird
OP Offline
Pikka bird
E
Joined: Jul 2008
Posts: 10
blush oh mine is still at the top there, its all I have managed so far but it wasn't a 10min timer I was after, I was seeing if there was a way to have a timer that would notify at whatever the answer to the calc of total stealth - current * 10 mins. Although that code above has helped me learn a bit about it from using that and help in mirc etc.


Link Copied to Clipboard