code logs -> 2007 -> Wed, 22 Aug 2007< code.20070821.log - code.20070823.log >
--- Log opened Wed Aug 22 00:00:11 2007
01:25 Derakon[AFK] is now known as Derakon
02:14 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Sleep.]
02:33 Syloqs-AFH [Syloq@NetAdmin.Nightstar.Net] has quit [Ping Timeout]
02:34 Syloq [Syloq@NetAdmin.Nightstar.Net] has joined #code
02:35 Syloq is now known as Syloqs-AFH
04:38 BioFrog is now known as ToxicFrog
06:07 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has joined #code
06:07 mode/#code [+o Forj] by ChanServ
06:51 Forjadon [~Forjadon@Nightstar-10147.ue.woosh.co.nz] has joined #code
06:51 mode/#code [+o Forjadon] by ChanServ
07:06 Derakon is now known as Derakon[AFK]
07:09 * Serah dances with Reiver.
07:09 * Reiver dances with Serah.
07:10
<@Serah>
How be ye?
07:12
<@Reiver>
Complicated.
07:12
<@Reiver>
Otherwise fine.
07:20 AnnoDomini [~farkoff@Nightstar-29313.neoplus.adsl.tpnet.pl] has quit [Ping Timeout]
07:26 AnnoDomini [AnnoDomini@Nightstar-29178.neoplus.adsl.tpnet.pl] has joined #Code
07:26 mode/#code [+o AnnoDomini] by ChanServ
07:45 Forjadon [~Forjadon@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Leaving]
08:26 Vornicus is now known as Vornicus-Latens
08:35 You're now known as TheWatcher
09:10 * Karnaugh strokes his mips lua
09:17 * DiceBot attempts to work out how to get mIRC to read data files and parse the string input.
09:20
<@AnnoDomini>
In this case... the easy way would be to make an alias that's given a line read from the file as an argument. The alias then returns only the first argument (which would be the class name, and separated from the rest of the line by a spacebar) to the main alias. Then the thing that was returned may be compared with something else, and since you have the line number, you know where it is.
09:21
<@Reiver>
...If you know this, then how come you never wrote it?~
09:22
<@AnnoDomini>
Like I said, I didn't know what I know now when I wrote it.
09:22
<@Reiver>
Ah, right.
09:23 * Reiver ponders.
09:23
<@AnnoDomini>
I was just beginning to muck around with file handling.
09:23
<@Reiver>
The seperator is actually :
09:23
<@Reiver>
Not spaces.
09:24
<@AnnoDomini>
Yeah, you can use that, too. $mid($$1-,$calc( $pos($$1-,:,1) + 1 ),512) works just as well but is kinda bulkier.
09:24
<@AnnoDomini>
...Belay that.
09:24
<@AnnoDomini>
That'd return the other part of the string.
09:25
<@AnnoDomini>
You want $mid($$1-,1,$calc( $pos($$1-,:,1) - 1 ))
09:28
<@Reiver>
That doesn't actually do a string compare though, does it?
09:29
<@AnnoDomini>
Hm. Yeah, I see what you mean.
09:33
<@AnnoDomini>
http://pastie.textmate.org/89967
09:33
<@AnnoDomini>
Try this. No guarantee on bug-liberty, though.
09:33
<@AnnoDomini>
Argh. Spotted one.
09:35
<@AnnoDomini>
http://pastie.textmate.org/89968
09:35
<@AnnoDomini>
This one ought to actually work.
09:38 * Reiver tries it experimentally.
09:49
<@AnnoDomini>
The argument is the class name that's inputted into the gold alias. It returns the line number where the class name is at.
09:52
<+DiceBot>
/searchforclass fighter
09:52
<+DiceBot>
Er~
09:52 * DiceBot tries that one again~
09:53
<@AnnoDomini>
For that to work you'd need to do something like /echo $chan $searchforclass(fighter)
09:53
<+DiceBot>
Yeah, figured~
09:58
<+DiceBot>
!gold barbarian
09:58
<+KarmaBot>
Starting gold for .
09:58
<+DiceBot>
bah
10:00 * AnnoDomini goes to update mIRC now.
10:00 AnnoDomini [AnnoDomini@Nightstar-29178.neoplus.adsl.tpnet.pl] has quit [Quit: Kill the interloper! Rip out its life!]
10:01 AnnoDomini [AnnoDomini@Nightstar-29178.neoplus.adsl.tpnet.pl] has joined #Code
10:02 mode/#code [+o AnnoDomini] by ChanServ
10:03
<@Karnaugh>
does anyone know if there exists a MIPS emulator anywhere in the universe?
10:04
<@Karnaugh>
other than QEMU which is fantasticaly broken
10:04
<@AnnoDomini>
Hrm. Bother. I'll have to wait for someone to crack it.
10:08
<@Reiver>
Anno: Throw me the thing once you get hold of it?
10:08
<@AnnoDomini>
The crack? Sure.
10:08
<@Reiver>
'aight.
10:09
<+DiceBot>
!gold fighter
10:09
<+KarmaBot>
Starting gold for .
10:09
<@AnnoDomini>
You... might want to boot KarmaBot, and use your primary client to roll.
10:10
<@AnnoDomini>
Because you're kinda using Serah's bot. :P
10:10
<@Reiver>
Sorry~
10:10
<@Reiver>
...wait, you don't have a Karmabot?
10:10 KarmaBot [~fark.off@87.72.35.ns-3885] has left #Code [Banished by Reiver.]
10:10
<@AnnoDomini>
And have it run just beside my head while I sleep? Naw.
10:10
<@Reiver>
!gold fighter
10:10
<+DiceBot>
Starting gold for .
10:11
<@Reiver>
if ( $lower($1) == barbarian ) { %wg = 1 | %dunnit = 1 }
10:11
<@Reiver>
!gold barbarian
10:11
<+DiceBot>
No comprende, por favor.
10:11 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has joined #Code
10:11 mode/#code [+o gnolam] by ChanServ
10:11 * Reiver pokes at it
10:11
<@Reiver>
if ( $lower($1) == fighter ) { %wg = /searchforclass($lower($1)) | %dunnit = 1 }
10:12
<@Reiver>
That's what I've got now, vs what I had before.
10:12
<@AnnoDomini>
Your syntax is wrong.
10:12
<@AnnoDomini>
Should be "%wg = $searchforclass($lower($1))".
10:12
<@Reiver>
No doubt.
10:12
<@Reiver>
...oh of course
10:12
<@Reiver>
!gold fighter
10:12
<+DiceBot>
Starting gold for .
10:12
<@Reiver>
bah.
10:13 * AnnoDomini is trying to parse that line.
10:13
<+DiceBot>
if ( $lower($1) == fighter ) { %wg = $searchforclass($lower($1)) | %dunnit = 1 }
10:13
<@AnnoDomini>
You don't need the if statement anymore.
10:14
<@AnnoDomini>
And you don't really need the $lower() in the $searchforclass, since it's done internally already.
10:15
<+DiceBot>
Just a naked %wg = $searchforclass$1 then?
10:15
<+DiceBot>
Er
10:15
<+DiceBot>
%wg = $searchforclass($1) I mean
10:16
<@AnnoDomini>
Should work. You'll need %dunnit = 1, too, though.
10:16
<@AnnoDomini>
Er.
10:16
<+DiceBot>
I was going to remove it entirely, if we were planning to scrap the if.
10:17
<@AnnoDomini>
This whole section needs to be rewritten, so that the "Gold for fighter is blabla" shows up only if the argument is a class name.
10:17
<@AnnoDomini>
Should suffice to "if ( $1 != $null && $calc($1) != 0 )"
10:17
<+DiceBot>
No, it does that.
10:18
<+DiceBot>
if ( $len(%x) > 2 ) {
10:18
<+DiceBot>
Unless that doesn't do what I thought it does
10:18
<@AnnoDomini>
Oh.
10:18
<@AnnoDomini>
Good, then.
10:18
<@AnnoDomini>
Far as I know, no class with a name under 3 characters. :P
10:19
<@Reiver>
!gold Fighter
10:19
<+DiceBot>
Starting gold for .
10:19
<+DiceBot>
No comprende, por favor.
10:19
<@Reiver>
!gold fighter
10:19
<+DiceBot>
Starting gold for .
10:19
<+DiceBot>
No comprende, por favor.
10:19
<@Reiver>
;_;
10:20
<@AnnoDomini>
%dunnit isn't getting set to 1.
10:22
<+DiceBot>
if ( $len(%x) > 2 ) {
10:22
<+DiceBot>
%wg = $searchforclass$1
10:22
<+DiceBot>
}
10:22
<+DiceBot>
er
10:22
<+DiceBot>
if ( $len(%x) > 2 ) {
10:22
<+DiceBot>
%wg = $searchforclass$1
10:22
<+DiceBot>
./msg %wheretosend Starting gold for $read(G:\Program Files\KarmaBot\textfiles\startgold.txt,%wg) $+ .
10:22
<+DiceBot>
}
10:22
<+DiceBot>
(Less the . of course but.)
10:23
<@AnnoDomini>
%wg = $searchforclass($1)
10:23
<@AnnoDomini>
%dunnit = 1, too.
10:23
<@Reiver>
Is %dunnit = 1 still needed, then?
10:24
<@AnnoDomini>
Yes. So that the later part of the script doesn't go off.
10:24
<+DiceBot>
Ah-hah.
10:24
<@AnnoDomini>
"No comprende, por favor." is dependant on %dunnit.
10:24
<@Reiver>
!gold fighter
10:24
<+DiceBot>
Starting gold for .
10:24
<@Reiver>
OK, so it's stopped that bit.
10:24
<@Reiver>
Still not working.
10:25 * Reiver experiments.
10:25
<@Reiver>
!gold fighter
10:25
<+DiceBot>
Starting gold for .
10:26
<@Reiver>
!gold 2
10:26
<+DiceBot>
Starting gold at level 2: 900.
10:26
<@Reiver>
!gold 2
10:26
<+DiceBot>
Starting gold at level 2: 900.
10:26
<@Reiver>
!gold fighter
10:26
<+DiceBot>
Starting gold for .
10:26
<@AnnoDomini>
Have you checked if $searchforclass works as intended?
10:27
<+DiceBot>
Just did. <g>
10:27
<@Reiver>
It's returning Error: Not found.
10:27
<@AnnoDomini>
Ah-Ha.
10:27
<@Reiver>
Which in turn is a non-valid line in the file...
10:27
<@AnnoDomini>
Pfhah.
10:28 * Reiver fiddles that experimentally.
10:28
<@AnnoDomini>
You HAVE inserted a path in the two places, right?
10:29
<@Reiver>
!gold fighter
10:29
<+DiceBot>
Starting gold for Error:Error (Not found).
10:29
<@Reiver>
Hah! That's useful at least.
10:32
<@Reiver>
Means that the spot the script is failing is in the search.
10:32
<@Reiver>
!gold Error
10:32
<+DiceBot>
Starting gold for Error:Error (Not found).
10:32
<@Reiver>
Nope. *fiddles*
10:33
<@AnnoDomini>
Funnily enough, the alias works for me.
10:33
<@AnnoDomini>
Are you sure you've specified the correct paths?
10:34
<@Reiver>
!gold fighter
10:34
<+DiceBot>
Starting gold for Fighter: 6d4*10.
10:34
<@Reiver>
!gold Error
10:34
<+DiceBot>
Starting gold for Error:Error (Not found).
10:34
<@Reiver>
!gold gorilla
10:34
<+DiceBot>
Starting gold for Error:Error (Not found).
10:34
<@Reiver>
Excelent.
10:36 * DiceBot starts getting Ambitious.
10:38
<@gnolam>
http://www.milkandcookies.com/link/66481/detail/
10:45
<@AnnoDomini>
That's awesome.
10:46 * gnolam airbrushes out AnnoDomini from the historic record.
10:52 MyCatVerbs [~rb6822@Nightstar-18280.cs.bris.ac.uk] has joined #code
11:04
<@Reiver>
Lesse, basic version should be esay enough...
11:08 * Reiver rips out the error checking for the moment.
11:12
<@Reiver>
Lesse what I broke
11:12
<@Reiver>
!gold fighter
11:12
<+DiceBot>
Starting gold for Fighter: 6d4*10.
11:12
<@Reiver>
!gold 2
11:12
<+DiceBot>
Starting gold for 2: 900.
11:13
<@Reiver>
Sweet.
11:13
<@Reiver>
!gold 1
11:13
<+DiceBot>
Starting gold for 1: Please choose class, ie. '!gold wizard'.
11:13
<@Reiver>
!gold nill
11:13
<+DiceBot>
Starting gold for Error:Error (Not found).
11:13
<@Reiver>
I should clean that up. Hmn.
11:18 * Reiver ponders how to clean it up. It's all very convinient right now...
11:20
<@Reiver>
!gold fighter
11:20
<@Reiver>
hm
11:23
< MyCatVerbs>
!gold ethanol opiates and nekkid people on toast
11:23
<+DiceBot>
Starting gold for Error:Error (Not found).
11:23
<@Reiver>
!gold fighter
11:23
<+DiceBot>
Starting gold for Error:Error (Not found).
11:23
<@Reiver>
Sooo... partially fixed. But not quite.
11:24
< MyCatVerbs>
!gold 2.71828182845905
11:24
<+DiceBot>
Starting gold for Error:Error (Not found).
11:45 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Gone]
11:48 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Gone]
12:41 gnolam is now known as gnolamunich
12:50
<@Reiver>
!gold fighter
12:50
<+DiceBot>
Starting gold for Fighter: 6d4*10.
12:50
<@Reiver>
!gold pi
12:50
<+DiceBot>
Starting gold for Error:Error (Not found).
12:50
<@Reiver>
!gold 20
12:50
<+DiceBot>
Starting gold for 20: 760000.
12:50
<@Reiver>
!gold 21
12:50
<+DiceBot>
Starting gold for Error:Error (Not found).
12:51
<@Reiver>
y'know, that'll do for the moment.
13:52 gnolamunich is now known as gnolam
14:30 gnolam is now known as gnolamunich
15:04
<@Reiver>
!gold 1
15:04
<+DiceBot>
Starting gold for 1: Please choose class, ie. '!gold wizard'.
15:05
<@Pi>
!gold saucer
15:05
<+DiceBot>
Starting gold for Error: Not found..
15:06
<@Reiver>
hi Pi
15:06
<@Reiver>
Don't mind me, I'm just trying to clean up the code in a modified bot.
15:06
<@Reiver>
Well, Anno's bot that I insist on screwing around with anyway. >.>
15:29 Reiver is now known as ReivZzz
16:54 MyCatVerbs [~rb6822@Nightstar-18280.cs.bris.ac.uk] has quit [Client exited]
17:05 You're now known as TheWatcher[afk]
18:39 You're now known as TheWatcher
19:14 Syloqs-AFH is now known as Syloq
19:31 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has joined #code
19:31 mode/#code [+o Forj] by ChanServ
19:50 Forj [~Forj@Nightstar-10147.ue.woosh.co.nz] has quit [Quit: Gone]
20:14 Syloq is now known as Syloqs-AFH
20:16 Syloqs-AFH is now known as Syloq
20:17 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has quit [Operation timed out]
20:23 ToxicFrog [~ToxicFrog@Admin.Nightstar.Net] has joined #code
20:23 mode/#code [+o ToxicFrog] by ChanServ
20:23 * Serah pouts.
20:23
<@Serah>
People don't like me anymore.,
20:23 * jerith hugs Serah.
20:24 * Serah hugs jerith
20:24
<@Serah>
Well, except for everyone I don't know at school, whom appears to ... not be able to get enough of me.
20:24
<@Serah>
Which gets just as annoying, really.
20:30 * ToxicFrog ? at Serah
20:30
<@Serah>
[111158] <AnnoDomini> You... might want to boot KarmaBot, and use your primary client to roll.
20:30
<@Serah>
[111208] ( AnnoDomini ) Because you're kinda using Serah's bot. :P
20:30
<@Serah>
[111221] <Reiver> Sorry~
20:30
<@Serah>
[111237] <Reiver> ...wait, you don't have a Karmabot?
20:30
<@Serah>
[111249] * KarmaBot (~fark.off@87.72.35.ns-3885) has left #Code (Banished by Reiver.)
20:32
<@ToxicFrog>
??
20:33
<@Serah>
Obviously they don't like me :p
20:48 Vornicus-Latens is now known as Vornicus
21:33 gnolamunich is now known as gnolam
21:54 Chalcedon [~Chalcedon@Nightstar-10147.ue.woosh.co.nz] has joined #code
21:55 mode/#code [+o Chalcedon] by ChanServ
22:05 Syloq is now known as Syloqs-AFH
22:58 gnolam [lenin@Nightstar-13557.8.5.253.se.wasadata.net] has quit [Quit: Z?]
23:12 Thaqui [~Thaqui@Nightstar-26823.jetstream.xtra.co.nz] has quit [Quit: Leaving]
23:27
<@Vornicus>
http://www.artlebedev.com/everything/matryoshkus/
23:49 You're now known as TheWatcher[T-2]
23:51 You're now known as TheWatcher[zZzZ]
--- Log closed Thu Aug 23 00:00:18 2007
code logs -> 2007 -> Wed, 22 Aug 2007< code.20070821.log - code.20070823.log >