|
|
#16 (permalink) |
|
Registered User
Join Date: Oct 2003
Location: UK
Posts: 6
|
ok, soz guys seemed to have stirred some things up here, ill try n cover them all
1.. my bad, slight typo, i shoulda typed $2 2.. the usage on 1:text:!massvoice:*: basically means on text in chan pm notice basically anyway, if i am wrong i apologise. Hence me pointing out, if i were to pm the "Bot" how would it know what $chan was, ok i agree if typed in the channel it would recognise what $chan was, via private message and notice, it would simple error, not knowing where the variable $chan was intended for, which was why i suggested using on 1:text:!massvoice *:*: and changing all the $chan identifyers to $2 which would on typing !massvoice #channame set $2 to #channame but if its working fine with the trigger in pm, my bad, sorry 3.. the differences between # * ? on 1:TEXT:blah:#: is in channel only on 1:TEXT:blah:?: is in pm only on 1:TEXT:blah:*: is anywhere 4.. access levels, ok, nice scripts, but whats wrong with using auser levels such as level 100 users only to activate the trigger, usage: on 100:TEXT!massvoice:*: seems like alot of swings and roundabouts to me ok if i missed anything please advise, nice work guys, keep it up |
|
|
|
|
|
#17 (permalink) | ||
|
Da House Nerd
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
|
Quote:
Quote:
2. we seem to be all op, so we needed to distinguish another way round.
__________________
Linux virusscanner detected a virus: Windows 95 ... delete [Y/n] y ~ ~ :wq |
||
|
|
|
|
|
#18 (permalink) |
|
Da House Nerd
Join Date: Dec 1969
Location: One CPU Lane
Posts: 3,512
|
It seemed p2pchat.net holds off a limit of max 12 voices/devoices at a time, so I had to change my script slightly in order to overcome this problem:
Code:
on 1:text:!massvoice:*: {
; find out if we are op and the user issuing the command is op too.
; If not, stop the script...
if ($me !isop $chan || $nick !isop $chan) {
msg $chan Either you ( $+ $nick $+ ) or me ain't op in $chan
halt
}
; iterate through all members in the chan
var %i, %voicestr
set %i 1
; we request only users which have no state (yet)
while ($nick($chan, %i, a, voh)) {
set %voicestr v $+ %voicestr $nick($chan, %i, a, voh)
set %i $calc(%i + 1)
if ($calc(%i % 13) == 0) {
mode $chan + $+ %voicestr
unset %voicestr
}
}
mode $chan + $+ %voicestr
}
on 1:text:!massdevoice:*: {
; find out if we are op and the user issuing the command is op too.
; If not, stop the script...
if ($me !isop $chan || $nick !isop $chan) {
msg $chan Either you ( $+ $nick $+ ) or me ain't op in $chan
halt
}
; iterate through all members in the chan
var %i, %voicestr
set %i 1
; we request only users which have state v
while ($nick($chan, %i, v)) {
set %voicestr v $+ %voicestr $nick($chan, %i, v)
set %i $calc(%i + 1)
if ($calc(%i % 13) == 0) {
mode $chan - $+ %voicestr
unset %voicestr
}
}
mode $chan - $+ %voicestr
}
__________________
Linux virusscanner detected a virus: Windows 95 ... delete [Y/n] y ~ ~ :wq |
|
|
|
|
|
#20 (permalink) |
|
Something is broken
Join Date: Jan 2003
Posts: 305
|
Useful scripts for Trillian can be found here:
http://www.civillians.com/download.php Courtesy of Lion!
__________________
"We are a spirit, we are a natural part of the earth, and all of our ancestors, all of our relations who have gone to the spirit world, they are here with us. That's power." - John Trudell ![]()
|
|
|
|
|
|
#22 (permalink) |
|
Something is broken
Join Date: Jan 2003
Posts: 305
|
Sure ! I also wanted a place to store the url u gave me so i could get at it from home
Here is another site i came across : http://trillian.net.ru/irc/irc.html Lion, darling if you're not too busy could you help me a bit more? 1) how do i unload a script ? I found the command to load : /load scripts/scriptname.ts but i dont rightly know how to unload it. I tried /unload scripts/scriptname.ts but with no result. Also, I saved and loaded the aliases script but when i highlight a name and right click it i dont see the aliases.... how does one use the aliases if it isn't on the right click on-context menu? thanks you rock!
__________________
"We are a spirit, we are a natural part of the earth, and all of our ancestors, all of our relations who have gone to the spirit world, they are here with us. That's power." - John Trudell ![]()
|
|
|
|
|
|
#24 (permalink) |
|
Something is broken
Join Date: Jan 2003
Posts: 305
|
ah i see thank you! you rawk. but... how to i use the Aliases?
__________________
"We are a spirit, we are a natural part of the earth, and all of our ancestors, all of our relations who have gone to the spirit world, they are here with us. That's power." - John Trudell ![]()
|
|
|
|
|
|
#25 (permalink) |
|
Staff
Join Date: Mar 2003
Location: Florida
Posts: 2,317
|
Open the ts file with Notepad...it has instructions inside....I have never tried that one before.
__________________
"Protect me from my friends, I can take care of my enemies" You better not be touching my mannequin
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|