mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
i have a auto host script i wan't a skip host and i can't find how to add it smile

here is the script

ON *:TEXT:!autohost*:#:{
if (!$istok(%owners,$nick,32)) { .msg $chan ( $+ $nick $+ ): Error, You have NOT access for this command! | return }
if ($2 == on) {
if ($timer(.hostON)) { .msg $chan ( $+ $nick $+ ): Error, The AUTOHOST is already enabled! | return }
var %f = nowhosting.txt
if (!$isfile(%f)) { .msg $chan ( $+ $nick $+ ): Error, The $qt(%f) file does NOT provide any nickname(s) for hosting! | return }
if (!$lines(%f)) { .msg $chan ( $+ $nick $+ ): Error, The $qt(%f) file does NOT provide any nickname(s) in the list for hosting! | return }
msg # /me Auto Hosting is now enabled.
searchhost $chan
.timer.hostON 0 1800 searchhost $chan
}
elseif ($2 == off) {
if (!$timer(.hostON)) { .msg $chan ( $+ $nick $+ ): Error, The AUTOHOST is already disabled! | return }
msg # /me Auto Hosting is now disabled.
.timer.hostON off
msg # /unhost
}
}

alias searchhost {
if (!$1) { return }
if ($me !ison $1) { return }
var %f = nowhosting.txt
if (!$isfile(%f)) { return }
if (!$lines(%f)) { return }
var %r = $read(NowHosting.txt,n)
msg $1 /me Now hosting $qt(%r)
msg $1 /host %r
}

Thanks

Joined: Jan 2004
Posts: 1,358
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Jan 2004
Posts: 1,358
You haven't described at all what you want to do. Please don't assume others are familiar with scripts you've seen used on Twitch (or anywhere else).

Joined: Jun 2015
Posts: 34
C
copman Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Jun 2015
Posts: 34
i would like to add a !skip host so when you want to change host you can. instead of waiting 30 minutes


Link Copied to Clipboard