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.

timer and join - olala

Old posts that have not been replied to for several years.
Locked
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

timer and join - olala

Post by misterys »

hi

i want that the bot joins after 5 mins the specific chan given by "keyword"
but somehow, the bot joins immediately - why?
proc angriff1 { nick hand uhost chan keyword } {
timer 5 [channel add #[lindex [split $keyword ] 0]]
}
thanks
misterys
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

timer 5 [list channel add #[lindex [split $keyword ] 0]]
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

Post by misterys »

hmm thanks, but why with "list" and not without?
User avatar
De Kus
Revered One
Posts: 1361
Joined: Sun Dec 15, 2002 11:41 am
Location: Germany

Post by De Kus »

misterys wrote:hmm thanks, but why with "list" and not without?
because the command 'channel' is executed imidiatly and its return added to the timer list (you probably addionally recive an timer error after 5min).
the list isn't necesarry, you could write something like that too:
"channel add #[lindex [split $keyword ] 0]]"
however, using list is on the save way, because you dont need to worry, if there are special characters involed that might cause troubles.

PS: why are we helping him to write a warscript anyway?
"angriff" is just the German word for "attack"...
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

Post by misterys »

its not a warscript, its a game :)
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

De Kus wrote:PS: why are we helping him to write a warscript anyway?
"angriff" is just the German word for "attack"...
So now you tell me :P
m
misterys
Voice
Posts: 23
Joined: Sun Mar 30, 2003 2:43 pm

Post by misterys »

i dont want to start a new threat, but i have an other little problem :(

Code: Select all

set basis olala
so far.. *G

now, ich have to add behind "olala" the tag "_fleet"
so that i have a new var with the kontent "olala_fleet"

i think i am to stupid for those strings :oops:
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

${basis}_fleet
g
greenbear
Owner
Posts: 733
Joined: Mon Sep 24, 2001 8:00 pm
Location: Norway

Post by greenbear »

Code: Select all

append basis _fleet
Locked