| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8
Comments:
<0> like set ::var <0> else it will be treated as a local var <1> hrm.. so.. i just use global ::var ?? <1> what i'm setting up is a method to allow ppl to use the command only once per 3 or 5 seconds.. probably 3 <0> skip the :: <0> use set ::var bla <1> ok, so i just 'global var' and it will be global, even though i didn't initialize it outside first <0> or global var; set var blabla
<0> exactly <0> but, I think you must set it after you do global <0> ;proc 1 {} { global var } ; proc 2 {} { puts $::var } <2> Robb: #1194 (422 clicks) Tcl: <0> ;2 <1> ok.. good.. then i can set rsb_ignore($nick:play) and utimer unset rsb_ignore($nick:play) as needed <0> !tcl 2 <0> !tcl 1 <0> bah <0> ;1 <1> well, i had planned to do it within same proc.. heh <0> wtf is wrong with the bot <0> ah ok <1> basically, when they type the command in channel, i'll add set $rsb_ignore($nick:play) 1, then unset it in 3 seconds.. <1> just to keep them from flooding the bot <0> yea <1> then probably use $nick:cmd for all other commands, set at 5 seconds <1> and i dunno why, but i can never seem to dcc chat with the bot. I have to get him to initiate the chat. <1> gonna check right quick and see if alltools.tcl is loaded, which it should be <0> :p <1> ok.. it is.. good <1> i can use that for putchan and putnotc <1> hrm.. while i'm at it.. robb.. i wrote a proc that will edit and return scores from the score list.. <1> i have another proc that will write the score list to the score file <0> yea? <1> i was thinking of putting the second one on a repeating timer.. but i'm not sure if i should do that <1> or add something to the end of the first one to wait 10 minutes then call the second one <0> well dunno what youre doin .. so I cant say <1> hrm.. ok.. well it's a game, obviously.. and i'm wanting to write the score's to the score file every so often <1> but i guess, only if it changes.. hrm.. <1> i'll probably add a timer to score proc, that will wait for a few minutes then write the score file <0> hrm..
<0> I wouldnt write it to often <1> i saw something in the alltools that would let me know if a timer is set to execute a particular command.. <0> it really depends on your needs <1> i was thinking, 10 minutes.. think maye 30 would be better? <0> 30 sounds good.. <1> basically, i'm keeping scores in a list, internally, but also writting to the score file, so if bot crashes, and reloads it'll pick up from that file <0> maybe its good in your case to write it pretty often <0> cause of botcrasch I mean <1> i'll have it so whenever someone played and thier score is edited.. i'd check to see if a timer is already active for the writescores proc.. if not, set one for 10 to 30 minutes.. <1> that way it's only saving if there's changed data <1> and even then it waits for more to come in before saving <1> first, i'll get it so you can play.. <1> ok.. got the timer in place <1> using: utimer 3 [list unset rsb_ignore($nick:play)] <1> that puts in any backslashes needed automatically.. makes sure it goes off without a hitch <0> yep <1> there.. havn't got it to write the scores to file yet.. but i think i have it so it can at least be played <3> anyone use netbots.tcl? <1> ok.. i'm using .tcl source scripts/runshabo.tcl <1> getting this in reply <1> Tcl error: wrong # args: should be "proc name args body" <1> it's not telling me where it's messing up <4> try $errorInfo <1> hrm.. says wrong # of args.. i have it bound the way it should be.. i think <1> yea.. the bind type says {nick uhost hand chan text} <1> and i have {nick uhost hand chan rest} <1> maybe it's the name i gave the proc.. pub:rsb_play <1> nope, that didn't fix it <5> Aakanaar whats the 1st line of the proc? <5> with the proc :p <1> i think i got it.. had a ] and } mixed up <5> k <3> how come when i do .netjoin on netbots.tcl only one bot joins <6> did you read the topic? <3> yes, i did <6> so you chose to ignore the part relating 3rd party scripts? <3> :)
Return to
#eggtcl or Go to some related
logs:
update to VMFS3
#stocks #mirc #linux-noob sql order by decode function alphabetically
#windows #politics #gentoo #beginner original blueprints pre-war BMW R75
|
|