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

by SomeGuy
Thu Apr 17, 2008 6:21 pm
Forum: Scripting Help
Topic: Search Actual binds
Replies: 2
Views: 1853

Lol, duh, yea I'm dumb. I use .binds in the console all the time.

I've already wrote my functions, they work great.

Thanks for the second eye ;p
by SomeGuy
Thu Apr 17, 2008 2:34 pm
Forum: Scripting Help
Topic: Search Actual binds
Replies: 2
Views: 1853

Search Actual binds

Is it possible to write a function that actually searches which binds are actually active? For example, I am making a dynamic command list, I've got everything covered, except I haven't figured out a way to actually check and see if the bind exists, and if so, unbind, or vice versa. I've read throug...
by SomeGuy
Fri Dec 17, 2004 9:49 am
Forum: Archive
Topic: Moving back one line
Replies: 6
Views: 2297

You guys rock, thanks for the help.
by SomeGuy
Thu Dec 16, 2004 9:53 am
Forum: Archive
Topic: Moving back one line
Replies: 6
Views: 2297

Can you just post an example on how I would use index to dynamically choose lines?
by SomeGuy
Wed Dec 15, 2004 8:57 pm
Forum: Archive
Topic: Moving back one line
Replies: 6
Views: 2297

Moving back one line

I'm trying to parse a webpage, and basically the main name is on the second line, while the status is on the previous line. Now my script parses the webpage, finds the main name, but now i need to move up one line to catch the status. ie, <img src=up.gif><br> <font size=3>Main name</font> Now, my sc...
by SomeGuy
Sat May 29, 2004 12:23 pm
Forum: Archive
Topic: Checking if time is between x and y
Replies: 1
Views: 1080

Checking if time is between x and y

Ok, my script looks like this: set start_stamp [clock scan "$hour:$min"] set 1hour_before [expr {$start_stamp - (60 * 60)}] set 1hour_before_format [clock format $1hour_before -format "%H:%M"] set 1hour_after [expr {$start_stamp + (60 * 60)}] set 1hour_after_format [clock format ...
by SomeGuy
Wed May 26, 2004 7:05 pm
Forum: Archive
Topic: Another Time Question
Replies: 0
Views: 605

Another Time Question

I've gone and made things really hard now. Basically, I have a script that checks if a game server is up or down, reports the down time, and the time it came up, in the format %H:%S Now, I have another script for this game that notifies everyone in the channel when an event is about to occur. Now wh...
by SomeGuy
Tue May 25, 2004 9:02 pm
Forum: Archive
Topic: Subtracting minutes
Replies: 3
Views: 1167

Awesome man, thanks alot. Just so you know, there were a couple errors in that code, but I fixed it and now everything is perfect. It should look like this set start_stamp [clock scan "2:15"] set before_stamp [expr {$start_stamp - (30 * 60)}] set before_time [clock format $before_stamp -fo...
by SomeGuy
Sun May 23, 2004 3:52 pm
Forum: Archive
Topic: Subtracting minutes
Replies: 3
Views: 1167

Subtracting minutes

Basically right now I've got a script that a user sets a time/date and a description. Now 2 hours before the time the bot messages the channel, i got that figured out. As well I got 1 hour before and 1 hour after. When I try to go and use minutes, the leading 0 causes the first problem, but lets say...
by SomeGuy
Sat May 22, 2004 1:07 pm
Forum: Archive
Topic: timed events
Replies: 2
Views: 1312

bind pub - "!time" proc_test_time proc proc_test_time {nick user hand chan arg} { set unix_time [unixtime] set current_time [strftime %H:%M] set time120 [strftime %H:%M [expr {[clock scan $current_time]+7200}]] set time30 [strftime %H:%M [expr {[clock scan $time120]-1800}]] set time60 [st...
by SomeGuy
Sat May 22, 2004 10:34 am
Forum: Archive
Topic: timed events
Replies: 2
Views: 1312

timed events

I've decided to make a script to alert people when something in a game happens. The way this work is this, a user will add a date/time like this: !add May-15@12:00pm Description Now I have a few questions, first being is how can I convert that date/time to unix format? My other question is once i've...
by SomeGuy
Sun May 02, 2004 1:26 pm
Forum: Archive
Topic: Tricky Database Question
Replies: 2
Views: 1331

Thanks to alot of searching, I found something that does just the job I need for this. proc varrep {string what with} { if {![string match "*$what*" $string]} {return $string} set cutstart [expr [string first $what $string] - 1] set cutstop [expr $cutstart + [string length $what] + 1] set ...
by SomeGuy
Sun May 02, 2004 12:18 pm
Forum: Archive
Topic: Tricky Database Question
Replies: 2
Views: 1331

Tricky Database Question

Ok, say I have a line that looks like this: name=char1,char2,char3,char4, Now I have got my script to properly append new things on to that, as well as I have got it to list. Now where I get stuck is when I try to delete say char3, but leave everything else intact. So say if I wanted to use a comman...