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.

Need this script a little more juked up :D

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

Post by stevegarbz »

Now this is the problem:

[12:46:09] <PE> heyguys
[12:46:10] <PE> heyguys2

They are both individual lines in the script, so they shouldn't be saying that so close together. Should be like every minute. It is saying all the lines at one time :\
r
r0t3n
Owner
Posts: 507
Joined: Tue May 31, 2005 6:56 pm
Location: UK

Post by r0t3n »

Sir_Fz wrote:
Tosser^^ wrote:Yep. That scripts looks alright for me.
Oh good, thanx for the info :lol:
Tosser^^ wrote:Also, Sir_Fz if you did a proc with {channel} would it overwrite the $channel varible in that script.
What do you mean?
I mean. If i made a var called $chan { "#mychan" "#otherchan" "#blah" } etc and in a proc

Code: Select all

proc name {nick host hand chan text} {
putserv "PRIVMSG $chan :blah."
}
The proc sets the varible $chan to the channel that proc was triggered from. Would the varible $chan { "#mychan" "#otherchan" "#blah" } be affected. Like overwritten with the new channel name from the proc?

I was just wondering.
r0t3n @ #r0t3n @ Quakenet
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

What about my question, too? ^_^
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

It's because of Tosser's lack of TCL knowledge that your script isn't working properly.

This go proc should work fine

Code: Select all

proc go {} {
global channel time text timer
foreach chan [channels]l {
 putqueue "PRIVMSG $chan :[lindex $line [rand [llength $line]]]"
}
if {[lsearch -glob [utimers] "* go *"] == -1} { utimer $timer go }
} 
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

ty much
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

it doesn't even say anything now :(
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Ok, at this time it's only me, no Tossers to spam :P

Code: Select all

##### GENERAL SETTINGS #### 
# Edit the time cycle which is in minutes format depending on the time intervals you want the bot to flow out the advertisment 
set time 1 

# EDIT the text or REMOVE or ADD lines including inverted commas at the starting and ending at each line 
set text { 
"ad1" 
"ad2" 
"ad3" 
} 

##### DO NOT EDIT ANYTHING BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING ##### 

if {[string compare [string index $time 0] "!"] == 0} { set timer [string range $time 1 end] } { set timer [expr $time * 60] } 
if {[utimerexists go] == ""} { utimer $timer go } 

set queue {} 
set frequency 2 ;# seconds 
proc getqueue {} { 
   if {$::queue != {}} { 
      puthelp [lindex $::queue 0] 
      set ::queue [lreplace $::queue 0 0] 
   } 
   utimer $::frequency getqueue 
} 
proc putqueue {str} { 
   lappend ::queue $str 
} 
getqueue 

proc go {} { 
 global text timer 
 foreach chan [channels] { 
  putqueue "PRIVMSG $chan :[lindex $text [rand [llength $text]]]"
 } 
 if {[utimerexists go] == ""} { utimer $timer go } 
} 

putlog "Loaded Advertise Script by es"
It's pretty hard to concentrate when everytime I post, I see a Tosser post :evil:
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

heh, thanks a lot man, appreciate the help from all of you :)

let me test it out. do you guys have an irc network that you are all on or something that I can join up?
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

awesome! it works, perfect! thank you VERY much!
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

Now, i don't know why, but it always seems to flood out... I have the frequency on 65 seconds, and it still floods out :(

had this problem before, but when i cut the ad size it stopped, and now with my new ads it is doing it again :\
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Since cutting the size of the ads solves the problem then try use shorter ads.
s
stevegarbz
Op
Posts: 104
Joined: Sat Dec 04, 2004 7:25 pm

Post by stevegarbz »

if I cut the ads any shorter my message won't get across to my audience :(
Locked