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 

message on all channel

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Thu Oct 30, 2008 11:50 am    Post subject: message on all channel Reply with quote

one of my scripts when i set channel its ok .. but i have another script and i want to spam message on that channel g_spamchannel1 g_spamchannel2.. i pub on one variable the "set spam "#channel,#channel2.." but i want the channel=g_spamchannel1 channel2=g_spamchannel2 and when i remove or add new channel on g_spamchannel2 or g_spamchannel3 i want to edit the previous set with new channel.. like set spam "#$g_spammchannel,$g_spamchannel2.." etc can someone help me?

this is the code when i add new channel and i have another to remove.. but i want to change the spam with variable channels

Code:
proc g_spamjoin { nick uhost handle arg } {
global g_spamchannel g_spamchannel2 g_spamchannel3 g_spamchannel4 g_spamchannel5 g_spamchannel6 g_spamchannel7 g_spamchannel8 g_spamchannel9 g_spamnum
set g_spamnum [lindex $arg 0]
if { $g_spamnum == 1 } {
set g_spamchannel [lindex $arg 1]
channel add $g_spamchannel
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 2 } {
set g_spamchannel2 [lindex $arg 1]
channel add $g_spamchannel2
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 3 } {
set g_spamchannel3 [lindex $arg 1]
channel add $g_spamchannel3
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Thu Oct 30, 2008 11:56 am    Post subject: Reply with quote

or if i can set spam with something and that command will "return" the channels and if i use that $spam on some proc then the spam msg will be announced ok..
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Thu Oct 30, 2008 12:15 pm    Post subject: Reply with quote

solved

easy answer

Code:
set g_spam"$g_spamchannel,$g_spamchannel2,$g_spamchannel3,$g_spamchannel4,$g_spamchannel5,$g_spamchannel6,$g_spamchannel7,$g_spamchannel8,$g_spamchannel9"
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Thu Oct 30, 2008 1:28 pm    Post subject: Reply with quote

on my tcl i have this set's

set g_spamchannel ""
set g_spamchannel2 ""
set g_spamchannel3 ""
set g_spamchannel4 ""
set g_spamchannel5 ""
set g_spamchannel6 ""
set g_spamchannel7 ""
set g_spamchannel8 ""
set g_spamchannel9 ""

and when i restart my bot
set g_spaming "$g_spamchannel,$g_spamchannel2,$g_spamchannel3,$g_spamchannel4,$g_spamchannel5,$g_spamchannel6"

the g_spamchannel etc is clear without channel.. how i can save if add it with that script?

Code:
proc g_spamjoin { nick uhost handle arg } {
global g_spamchannel g_spamchannel2 g_spamchannel3 g_spamchannel4 g_spamchannel5 g_spamchannel6 g_spamchannel7 g_spamchannel8 g_spamchannel9 g_spamnum
set g_spamnum [lindex $arg 0]
if { $g_spamnum == 1 } {
set g_spamchannel [lindex $arg 1]
channel add $g_spamchannel
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 2 } {
set g_spamchannel2 [lindex $arg 1]
channel add $g_spamchannel2
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 3 } {
set g_spamchannel3 [lindex $arg 1]
channel add $g_spamchannel3
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 4 } {
set g_spamchannel4 [lindex $arg 1]
channel add $g_spamchannel4
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 5 } {
set g_spamchannel5 [lindex $arg 1]
channel add $g_spamchannel5
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 6 } {
set g_spamchannel6 [lindex $arg 1]
channel add $g_spamchannel6
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 7 } {
set g_spamchannel7 [lindex $arg 1]
channel add $g_spamchannel7
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 8 } {
set g_spamchannel8 [lindex $arg 1]
channel add $g_spamchannel8
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
} else {
if { $g_spamnum == 9 } {
set g_spamchannel9 [lindex $arg 1]
channel add $g_spamchannel9
putquick "PRIVMSG $nick :14,1\[7«0 Bot's spamlist 1: $g_spamchannel 2: $g_spamchannel2 3: $g_spamchannel3 4: $g_spamchannel4 5: $g_spamchannel5 6: $g_spamchannel6 7: $g_spamchannel7 8: $g_spamchannel8 9: $g_spamchannel9 7»14]"
}
}
}
}
}
}
}
}
}
}
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Sat Nov 01, 2008 2:32 pm    Post subject: Reply with quote

any help ?
Back to top
View user's profile Send private message
ultralord
Master


Joined: 06 Nov 2006
Posts: 255

PostPosted: Tue Nov 04, 2008 6:17 am    Post subject: Reply with quote

someone know how i can do that?
is it possible?
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Nov 04, 2008 12:32 pm    Post subject: Reply with quote

1st, please refrain from bumping over and over...

2nd, try cleaning up all your posts. Right now, any reader have to scroll through 4-5 posts with various pieces of code just to find what you are asking for help 'bout.

3rd, try to structure your layout of your code. Proper indenting and line spacing can make miracles out of a heap of code when it comes to readability.

4th, patience patience patience...

_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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