Hi This script is a little "Time Wasted" on a channel. you need to load it in your bot (mIRC Bot) and set the channel name here --> on :text:.wasted:#IRC-addicts:{ <-- shange the #irc-addicts for your channel name.. WILL NOT WORK ON MULTIPLE CHANNEL.
The commands are .wasted To Know your time. and .wasted to have someone's Wasted time in the channel.. Wasted does not mean idle,, its sarcasm.. Don't worry be happy. :)
So enjoy and share. �:~} XploreR
#########################################################
#--Xplorer - #Irc-freak.com - Undernet - XploreR@Live.Ca--#
#########################################################
# Original Owner, SanitariuM Undernet #
#########################################################
alias add.wasted.timer {
.timeradd.wasted. [ $+ [ $$1 ] ] 0 60 add.wasted $$1
if (!$hget(wasted,init)) {
msg $$1 Wasted Database not Loaded, Time to Create or Load the Database...
hmake wasted 100
if (!$exists(wasted.dat)) {
msg $$1 Wasted Database has not been Created, Creating Now...
hadd wasted init 1
hsave wasted wasted.dat
}
else {
msg $$1 Wasted Database exists but is not Loaded, Loading Now...
hload wasted wasted.dat
}
}
}
alias add.wasted {
var %chan = $$1, %loop = 1, %end = $nick(%chan,0), %wasted, %new.wasted, %nick
while (%loop <= %end) {
%nick = $nick(%chan,%loop)
%wasted = $hget(wasted,%nick)
%new.wasted = $calc(%wasted + 1)
hadd wasted %nick %new.wasted
inc %loop 1
}
hsave wasted wasted.dat
}
on *:join:#IRC-addicts:{
add.wasted.timer $chan
}
on *:text:.wasted*:#IRC-addicts:{
inc -u3 %wastedpro 1
if (%wastedpro > 1) { halt }
var %nick = $iif($2,$2,$nick)
var %wasted = $hget(wasted,%nick)
if (%wasted) { msg $chan 4 %nick has 9"4Wasted9" $duration($calc(%wasted * 60)) on $chan }
else { msg $chan I don't know anything about 4 %nick }
}
#########################################################
#--Xplorer - #Irc-Addicts - Undernet - XploreR@Live.Ca--#
#########################################################
# Original Owner, SanitariuM Undernet #mIRCScripting #
#########################################################
This apparently isn't working... just added it and tested it... this it how it looks here
[10:31:22] <09~MashhitDK> !wasted MashhitDK
[10:31:22] <09~SRU> I don't know anything about 2MashhitDK
[10:33:05] <09~MashhitDK> !wasted MashhitDK
[10:33:05] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 4mins on 03#SRU
[10:33:12] <09~MashhitDK> !wasted MashhitDK
[10:33:12] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 4mins on 03#SRU
[10:33:13] <09~MashhitDK> !wasted MashhitDK
[10:33:13] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 4mins on 03#SRU
[10:33:25] <09~MashhitDK> !wasted MashhitDK
[10:33:25] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 5mins on 03#SRU
[10:33:30] <09~MashhitDK> !wasted MashhitDK
[10:33:30] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 6mins on 03#SRU
[10:33:33] <09~MashhitDK> !wasted MashhitDK
[10:33:33] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 6mins on 03#SRU
[10:33:34] <09~MashhitDK> !wasted MashhitDK
[10:33:34] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 6mins on 03#SRU
[10:33:40] <09~MashhitDK> !wasted MashhitDK
[10:33:40] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 7mins on 03#SRU
[10:33:41] <09~MashhitDK> !wasted MashhitDK
[10:33:41] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 8mins on 03#SRU
[10:41:15] <09~MashhitDK> !wasted MashhitDK
[10:41:15] <09~SRU> 2MashhitDK has 15"14WaSTeD15" 37mins on 03#SRU
Is there a fix for this ?
Or anything like it somewhere here on hawkee ?
I did a search and didn't find anything similar... and would like to add this to My BOT