Hey!
I'm sitting here, trying to make commands that will work in partyline, but i can't find the rigth bind.
Can anyone show me a bind, and a easy proc so i can see how it works?
ok..thanks...sorry, dont mean to be rude when saying that i dont "bother", but earlier when i have searched, i have found like 1500 posts, and not found anything helpfull....
but thanks for answering =)
sorry for taking it up again then..just so much work searching the old posts...
i got it fixed now...now only thing is to set the a globa variable with "the answer", so i can check it laters...
would 'set answer "mytxt"' work?
Hey, i'm trying to make my own triviascript (only found buggy ones that would crash my bot), and i want the script to count the lines in a file, and then choose a random line...anyone know how i could do this?
hmmm...
maybe do a bind join on ur channel, and then make the bot whois the user and search the reply for "is a registered and identified user" of whaterver ur nickserv replies?
and then do some if's and elses?
hmm...ok...almost done now...only one thing... i found this proc: proc save_hlowscores {nick host hand chan arg} { global hlowscorearray scorefile hlowscore set fp [open $scorefile w] puts $fp [uplevel 1 [list array get $hlowscorearray]] close $fp return 0 } or..have edited it some... but how should...
thanks...i found a script that works...but now i have the problem that i cant figure out how to check if the array is existing...like...
a new user gets a point..ok... set $score($nick) 1
but what about a old user...how do i add 1 up to the existing value?
Hi i'm trying to make a higher/lower-game for a channel, and want to keep track of the scores...but i havent found out how to replace a line in a file... i want to put the nick who guessed the corerct number in a file, or if it exists, just replace the line (and increase the number on it).. got ever...