egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

2 second answer [ solved ]
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 8:20 am    Post subject: 2 second answer [ solved ] Reply with quote

i have this bind

Code:
bind pub -|- !info pub:info


I tried this but filaed of course Razz

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue May 30, 2006 8:25 am    Post subject: Reply with quote

the pub bind does not include channel
you'll have to use a check inside the proc for limiting the channel
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 8:41 am    Post subject: Reply with quote

hey drag

oh

ok would you mind giving me an example please buddy
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 8:44 am    Post subject: Reply with quote

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
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 8:47 am    Post subject: Reply with quote

i answered that one myself

bind pubm -|- "#test !test" test_play

works just fine Very Happy locks it to that channel only Very Happy
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 8:55 am    Post subject: Reply with quote

well i was working lol maybe it was a fluke cos it aint now lol god i am thick
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue May 30, 2006 9:10 am    Post subject: Reply with quote

pubm and pub are different binds, read Razz

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
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Tue May 30, 2006 9:33 am    Post subject: Reply with quote

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
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Tue May 30, 2006 9:40 am    Post subject: Reply with quote

oh so the if chan part checks if the user used that command in that one channel - now i understand Very Happy 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 Very Happy
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Thu Jun 01, 2006 1:39 am    Post subject: Reply with quote

i should pay more attention Razz

Last edited by metroid on Fri Jun 02, 2006 1:16 am; edited 1 time in total
Back to top
View user's profile Send private message
DragnLord
Owner


Joined: 24 Jan 2004
Posts: 711
Location: C'ville, Virginia, USA

PostPosted: Thu Jun 01, 2006 11:45 am    Post subject: Reply with quote

MeTroid:
did you miss the
Quote:
set chan [string tolower $chan]

part of the proc??
Back to top
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Jun 02, 2006 1:16 am    Post subject: Reply with quote

DragnLord wrote:
MeTroid:
did you miss the
Quote:
set chan [string tolower $chan]

part of the proc??


Oops Rolling Eyes

/me slaps self
Back to top
View user's profile Send private message
whittinghamj
Op


Joined: 21 May 2006
Posts: 103

PostPosted: Fri Jun 02, 2006 6:39 pm    Post subject: Reply with quote

lmfao guys
Back to top
View user's profile Send private message
NTHosts
Op


Joined: 10 Oct 2005
Posts: 100
Location: UK

PostPosted: Sat Jun 03, 2006 11:20 am    Post subject: :( Reply with quote

Looks like a nice script i could use, However... it dosnt' seem to work for me Sad
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
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber