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 17 matches

by Danko
Sun Nov 18, 2007 7:37 pm
Forum: Scripting Help
Topic: 0,5 sec timer?
Replies: 2
Views: 2285

0,5 sec timer?

How can I delay something with 0,5 sec?
by Danko
Tue Dec 19, 2006 3:12 pm
Forum: Script Requests
Topic: Announce bot delink/link to channel
Replies: 1
Views: 2049

Announce bot delink/link to channel

How can I announce botnet delinking/linking to my channel?
by Danko
Mon Nov 13, 2006 4:53 am
Forum: Scripting Help
Topic: How to get which network bot is on?
Replies: 1
Views: 1927

How to get which network bot is on?

Is there any way to get bot to return which network it's connected to? Besides "global network" and then set correct network in conf file..
by Danko
Wed Jun 21, 2006 11:17 am
Forum: Scripting Help
Topic: How to msg more chans?
Replies: 5
Views: 4718

Thank you. :D

One last Q; If I also want to be able to use the command from partyline (.hello ..), what do I have to add? coz "proc myproc {n h h c a}" wont work from partyline, right..? :?
by Danko
Wed Jun 21, 2006 5:22 am
Forum: Scripting Help
Topic: How to msg more chans?
Replies: 5
Views: 4718

Ahh, i see now why it didnt work with "," as chan seperator also, but thats prolly because I was testing on a server with maxtargets=1. However, seems like MAXTARGETS=4 is pretty usual among servers. Lets say i for example want to msg to 12 chans, could i just do something like; set mychan...
by Danko
Wed Jun 21, 2006 4:56 am
Forum: Scripting Help
Topic: How to msg more chans?
Replies: 5
Views: 4718

How to msg more chans?

Let's say I have a small proc, and I want to msg the same to more than only one chan; bind pub !hello hellotest set mychans "#chan1 #chan2" (??!) proc delpre {nick host hand channel arg} { global mychans set input [lindex [split $arg] 1] putquick "PRIVMSG $mychans :Abcedf $input"...
by Danko
Mon Jun 12, 2006 6:56 am
Forum: Scripting Help
Topic: How can I check how long it takes to execute a proc?
Replies: 3
Views: 5373

hm.. could you also give a short example of how to use it in a proc, since I'm quite lost?

Code: Select all

proc myproc {nick host hand channel arg} {
  set temp [lindex [split $arg] 0]
  putquick "privmsg $channel :$temp [time?!]"
} 
by Danko
Fri Jun 09, 2006 6:28 am
Forum: Scripting Help
Topic: How can I check how long it takes to execute a proc?
Replies: 3
Views: 5373

How can I check how long it takes to execute a proc?

How can I check how long it takes to execute a proc?

aka "Search took x.xxx ms" or something..
by Danko
Mon May 15, 2006 3:08 pm
Forum: Scripting Help
Topic: Output to chan from MySQL db
Replies: 3
Views: 4691

Hoh, thanx - that worked like a charm. :) However, a second question qbout MySQL.. My db is MyISAM as described above.. However, when I'm adding data to it (checking if $name allready exists before adding) it's slow and 'hanging' the computer for 1-2 seconds.. I'm no sql guru, but what might I be do...
by Danko
Mon May 15, 2006 9:46 am
Forum: Scripting Help
Topic: Output to chan from MySQL db
Replies: 3
Views: 4691

Output to chan from MySQL db

Hello, I'm using a small code for reading from a Mysql db and posting info to chan.. Here's my code: proc finduser {nick host hand channel arg} { global mysql set search [string map {" " "%"} [lindex $arg]] set query [mysqlsel $mysql(conn) "SELECT * FROM `users` WHERE `name`...
by Danko
Tue Mar 28, 2006 7:25 pm
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5265

Short question;
How do I add a "No info found" to channel if nothing is found? :?
by Danko
Mon Mar 27, 2006 6:45 am
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5265

One more thing, is it possible to change the standard output "days, hours, minutes, etc" to d, h, m, s, w, mn, etc? :)
by Danko
Mon Mar 27, 2006 6:35 am
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5265

Yes thanks a million, dwickie. Just what I needed. :)

(except for the one typo in restul/result, heh)
by Danko
Sun Mar 26, 2006 4:41 pm
Forum: Script Requests
Topic: Searching from MySQL db and posting to chan?
Replies: 7
Views: 5265

Searching from MySQL db and posting to chan?

I'm using eggdrop with mysqltcl, i need a small code to search a mysql db and posting result to chan. Mysql db is set up as; id time info secondayinfo example: 37 1143405316 Soundblaster-Creative Soundcard So, how do search the info field (Soundblaster-Creative), and posting the info to channel as &...
by Danko
Thu Mar 23, 2006 4:48 am
Forum: Scripting Help
Topic: Changing something toupper?
Replies: 1
Views: 3813

Changing something toupper?

How can I change second toupper before i write/echo/whatever to file/chan when using this?

Code: Select all

foreach {first second} [split $arg] {break} 
or

Code: Select all

set first [lindex [split $arg] 1]
set second [lindex [split $arg] 2] 
(I belive the first one is faster code than the last one, correct?)