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.

Search found 154 matches

by darton
Fri Jun 09, 2006 3:30 pm
Forum: Script Requests
Topic: Detecting qops and sops
Replies: 0
Views: 2876

Detecting qops and sops

Hello! What do I have to do that my eggdrop only reacts to users who are qops (or sops). So they have the channel mode +qo or +oa. In my irc network there is a "~" before qops and a "&"before sops. Can anybody make a script for me which does this? For example: bind pub - !reh...
by darton
Tue Jun 06, 2006 2:58 pm
Forum: Scripting Help
Topic: How to find out if the line exists in textfile
Replies: 2
Views: 3219

How to find out if the line exists in textfile

Hello!
I made a script that shows me a line of a textfile. For example with "!showline 2" my bot shows the second line of the file. But how can I find out if this line exists, e.g. if the file only has one line?
by darton
Tue Jun 06, 2006 2:05 pm
Forum: Script Requests
Topic: If variable is a number, then...
Replies: 2
Views: 2597

If variable is a number, then...

Hello!
I made a script that lets me delete a line of a textfile. So with "!del 3" I can delete the third line. Is there a command that checks a variable whether it is a letter or a number?
by darton
Tue Jun 06, 2006 4:45 am
Forum: Scripting Help
Topic: Writing something with a delay
Replies: 2
Views: 3542

OK, thank you. It works.
by darton
Mon Jun 05, 2006 5:12 pm
Forum: Scripting Help
Topic: Writing something with a delay
Replies: 2
Views: 3542

Writing something with a delay

Hello! When somebody in the channel writes a certain command, my bot should write something back and after 15 seconds a second message. So I made this script but there must be something wrong, because an error occurs: "can't read "chan": no such variable" bind pub - !test test pr...
by darton
Wed May 31, 2006 11:30 am
Forum: Script Requests
Topic: Help with this array
Replies: 5
Views: 3859

Thank you very much. Now it works.
by darton
Tue May 30, 2006 4:34 pm
Forum: Script Requests
Topic: Help with this array
Replies: 5
Views: 3859

No, there must be something wrong. My bot writes "The following mods are online on IRC: mod(#channel)".
by darton
Mon May 29, 2006 3:22 pm
Forum: Script Requests
Topic: Help with this array
Replies: 5
Views: 3859

bind pub - !mods mods proc mods {nick uhost hand chan arg} { array set modnames { nick1 nick2 nick3 } foreach {mod} [array get modnames] { if {[onchan $mod $chan]} { putquick "PRIVMSG $chan :The following mods are online at IRC: $mod" } } } I have already begun with making this script. Th...
by darton
Mon May 29, 2006 6:40 am
Forum: Script Requests
Topic: Help with this array
Replies: 5
Views: 3859

Help with this array

Hello!
I need a script which can do the following:
With a command e.g. !mods I want to check the online status of saved nicks. Maybe it is possible to save these nicks in an array(?). Then my eggdrop should write "Online: nick1, nick2, nick3" or "nobody is online".
by darton
Mon May 22, 2006 3:16 pm
Forum: Scripting Help
Topic: Problem with textfiles
Replies: 23
Views: 16741

Yes in the textfile, there is exactly that nick. When I type "!medals {{As}masterblast{GEN}}" lsearch find this nick. But when I want to store this nick a new line is made everytime. What do you mean with

Code: Select all

lappend list "$name $mvp $kills"
Instead of what do I have to use this?
by darton
Sun May 21, 2006 4:59 am
Forum: Scripting Help
Topic: Read/Write to txt - Tutorial ??
Replies: 5
Views: 5656

Yes that is the post I mean. Thank you.
by darton
Tue May 16, 2006 9:37 am
Forum: Scripting Help
Topic: Problem with textfiles
Replies: 23
Views: 16741

The bot seems to have problems with this nick: {{As}masterblast{GEN}}
It does not make an own line for each time, but it makes a new line everytime for this nick, when it has MVP or MostKills.
Does anyone know why?
by darton
Sun May 14, 2006 1:05 pm
Forum: Scripting Help
Topic: Read/Write to txt - Tutorial ??
Replies: 5
Views: 5656

Thank you for that url. But there must be a thread where filereading and writing is described.
by darton
Sun May 14, 2006 12:37 pm
Forum: Scripting Help
Topic: Read/Write to txt - Tutorial ??
Replies: 5
Views: 5656

Read/Write to txt - Tutorial ??

Hello!
Anywhere in this forum I found a tutorial about writing and reading textfiles. But now I can't find it any more. Can anybody please give me the url of that tutorial?
by darton
Sun May 07, 2006 10:56 am
Forum: Scripting Help
Topic: Problem with textfiles
Replies: 23
Views: 16741

Does it make any difference where I put in the close command? So this should be right? set medalsfile "scripts/medals.txt" bind pub - !medals medals:get proc medals:get {nick uhost hand chan arg} { set fd [open $::medalsfile r+] while {![eof $fd]} { lappend list [gets $fd] } if {[set le [l...