mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jan 2011
Posts: 10
O
Pikka bird
OP Offline
Pikka bird
O
Joined: Jan 2011
Posts: 10
Okay so I made a simple script, and I'm sure there were much better ways to accomplish this, but oh well.
http://pastebin.com/ZkCr2DGP
All it does is count the amount of times you type that line.
And I tried to have a .timer to unset after 24 hours, but the problem was it would reset every time it was said >.<
How can I have it reset the amount of the clicks EVERY 24 hours, not EVERY 24 hours from the last time it was typed >.<

Joined: Jul 2006
Posts: 4,153
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,153
Once your bot join the channel, start a timer to reset the click after $calc($ctime + 86400) seconds where 86400 is 24h in second.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jan 2011
Posts: 10
O
Pikka bird
OP Offline
Pikka bird
O
Joined: Jan 2011
Posts: 10
Originally Posted By: Wims
Once your bot join the channel, start a timer to reset the click after $calc($ctime + 86400) seconds where 86400 is 24h in second.

Hahah I feel kinda stupid now, thank you!

Joined: Jul 2006
Posts: 4,153
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,153
I'm not sure why I used $ctime here, just start the timer with 86400 seconds smile


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard