| View previous topic :: View next topic |
| Author |
Message |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 8:20 am Post subject: 2 second answer [ solved ] |
|
|
i have this bind
| Code: | | bind pub -|- !info pub:info |
I tried this but filaed of course
| Code: | | bind pub -|- "#inc" !info pub:info |
How do I set the bind to only work in one channel, second question how would I set it to work in two channels only.
Thank you and god bless
Last edited by whittinghamj on Tue May 30, 2006 9:46 am; edited 3 times in total |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue May 30, 2006 8:25 am Post subject: |
|
|
the pub bind does not include channel
you'll have to use a check inside the proc for limiting the channel |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 8:41 am Post subject: |
|
|
hey drag
oh
ok would you mind giving me an example please buddy |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 8:44 am Post subject: |
|
|
bind pubm -|- "#test !test" test_play
i saw that in another post - would that not work?
the guy said it worked or would it not tie it to that channel? |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 8:47 am Post subject: |
|
|
i answered that one myself
bind pubm -|- "#test !test" test_play
works just fine locks it to that channel only  |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 8:55 am Post subject: |
|
|
| well i was working lol maybe it was a fluke cos it aint now lol god i am thick |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue May 30, 2006 9:10 am Post subject: |
|
|
pubm and pub are different binds, read
there are a few ways to make checks on channels:
*my preference is with udef to create custom channel flags
*you can also create a variable listing the channels, then check in the proc if the channel is listed in the variable
if you want more help, post the bind and proc here |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 9:26 am Post subject: |
|
|
hey buddy
ok i understand what your talking about but I am dumb, I know this. My tallents lay with modding other people's scripts to do what I want and takings bits and bobs from different scripts and putting them into one for my needs.
| Code: |
bind pub -\- !help pub:help
proc pub:help {nick uhost hand chan text} {
putserv "sajoin $nick #help"
} |
thats what I have right now.
I need to locking to #chillout channel only.
thanks for any help you can offer buddy.
god bless you |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Tue May 30, 2006 9:33 am Post subject: |
|
|
| Code: | bind pub - !help pub:help
proc pub:help {nick uhost hand chan text} {
set chan [string tolower $chan]
if {$chan == "#chillout"} {
putserv "sajoin $nick #help"
}
} |
|
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Tue May 30, 2006 9:40 am Post subject: |
|
|
oh so the if chan part checks if the user used that command in that one channel - now i understand I was thinking much more technical such as set userchan #chillout then calling it into the proc but you way is much easier.
thanks buddy ur a legand  |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Thu Jun 01, 2006 1:39 am Post subject: |
|
|
i should pay more attention 
Last edited by metroid on Fri Jun 02, 2006 1:16 am; edited 1 time in total |
|
| Back to top |
|
 |
DragnLord Owner

Joined: 24 Jan 2004 Posts: 711 Location: C'ville, Virginia, USA
|
Posted: Thu Jun 01, 2006 11:45 am Post subject: |
|
|
MeTroid:
did you miss the
| Quote: | | set chan [string tolower $chan] |
part of the proc?? |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Jun 02, 2006 1:16 am Post subject: |
|
|
| DragnLord wrote: | MeTroid:
did you miss the
| Quote: | | set chan [string tolower $chan] |
part of the proc?? |
Oops
/me slaps self |
|
| Back to top |
|
 |
whittinghamj Op
Joined: 21 May 2006 Posts: 103
|
Posted: Fri Jun 02, 2006 6:39 pm Post subject: |
|
|
| lmfao guys |
|
| Back to top |
|
 |
NTHosts Op
Joined: 10 Oct 2005 Posts: 100 Location: UK
|
Posted: Sat Jun 03, 2006 11:20 am Post subject: :( |
|
|
Looks like a nice script i could use, However... it dosnt' seem to work for me
My bot is a service admin too... I get no response from .set errorInfo either.
Any ideas ? _________________ www.NT-Hosts.Net - More than just a host |
|
| Back to top |
|
 |
|