This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Help making this script work for only my channel...

Old posts that have not been replied to for several years.
Locked
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Help making this script work for only my channel...

Post by stevegarbz »

edited.
Last edited by stevegarbz on Tue Aug 23, 2005 1:01 am, edited 1 time in total.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

then check if the channel is #PE, in each of your pub:procs

Code: Select all

if {[string toupper $chan] == "#PE"} {
   ...
and you really shouldn't be using [putquick], use [puthelp] instead; that will decrease the chance your bot to be disconnected because of exceeding SendQ
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

that all depends on what network you're on.

If he's smart he would some flood protection anyway
User avatar
caesar
Mint Rubber
Posts: 3778
Joined: Sun Oct 14, 2001 8:00 pm
Location: Mint Factory

Post by caesar »

Instead of if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) I'd go for a 'string match -nocase'. Either consult the manual or Search the forum.
Once the game is over, the king and the pawn go back in the same box.
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Could you possibly add that line of code to one of the commands up there? And I want putquick because puthelp/putserv is way to slow.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

what's stopping you from adding it yourself?? you stated that you spent an hour scripting, so you must be able to help yourself with that

and there isn't an issue with speed here (it doesn't matter whether your targeted ads reach theit destination 3 or 5 or 7 seconds after being sent), there is a potential issue with exceeding server output quota
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

yeah, I am a TCL noob :( I am just learning, and help right now is the only way to learn more and more.

I just don't want to do it wrong and have my bot quit on me
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

come on, you managed to come up with a much more complicated if construct; all you've got do is to add that simple check in the beginning of each pub trigger proc
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

edited
Last edited by stevegarbz on Tue Aug 23, 2005 1:01 am, edited 1 time in total.
User avatar
demond
Revered One
Posts: 3073
Joined: Sat Jun 12, 2004 9:58 am
Location: San Francisco, CA
Contact:

Post by demond »

*sigh*

nope, that if needs to be inside proc's body:

Code: Select all

proc pub:gameservers {nick uhost hand chan text} {
   if {[string toupper $chan] == "#PE"} { 
      puthelp "notice $nick :<your stuff here>"
   }
}
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Thank you. And also, if you are interested in making about $150-$175 for coding a few TCL scripts, catch me an email, AIM me, or MSN

email = Steve@PrecisionEffect.com
AIM = stevegarbz
MSN = Steve@PrecisionEffect.com
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

this is egghelp, not eggbuy afaik
User avatar
awyeah
Revered One
Posts: 1580
Joined: Mon Apr 26, 2004 2:37 am
Location: Switzerland
Contact:

Post by awyeah »

I can do them for free, if they are not very bulky and related to my criteria.
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Locked