mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
hi i made this bot:


#bot on
on 1:join:#:{
/msg $chan Hello $nick ,Wana Answer my questions? if u do,type !question,for more info type ^info
}
on 1:text:*!question*:#:{
/msg $chan 4Notice: Question will require QUESTION CODES,the question code will appear after each question is answered,
/msg $chan 12 Question 1:
/msg $chan 12 is traveling into the future possible?
/msg $chan 13 A) True
/msg $chan 13 B) False
}
on 1:text:*true*:#:{
/msg $chan 13 Ur Right!!!
/msg $chan Please Enter Code: 1001011011001
}
on 1:text:*false*:#:{
/msg $chan 13 Wrong
}
on 1:text:*1001011011001*:#:{
/msg $chan 12 Question 2:
/msg $chan 12 what is the number 13 mean?
/msg $chan 13 A) bad luck
/msg $chan 13 B) good luck
/msg $chan 13 C) i dunno
}
on 1:text:*bad luck*:#:{
/msg $chan 13 Right!
/msg $chan Please Enter Code: 100110100
}
on 1:text:*good luck*:#:{
/msg $chan 13 Wrong
}
on 1:text:*i dunno*:#:{
/msg $chan 13 too bad frown
}
on 1:text:*100110100*:#:{
/msg $chan 12 Question 2:
/msg $chan 12 is hong kong part of china?
/msg $chan 13 A) yes
/msg $chan 13 B) no
}
on 1:text:*yes*:#:{
/msg $chan 13 Correct!
/msg $chan 4End Of All Questions,questions will be upgrade later,thankyou for playing
}
on 1:text:*no*:#:{
/msg $chan 12 wrong!
}
on 1:text:*^info*:#:{
/msg $chan 4 Info:
/msg $chan 4 Owner: ]SW[SoldierSD4
/msg $chan 4 Purpose: asks questions
/msg $chan 4 Update Questions later(dunno when...)
/msg $chan 4 Bot Size: 1.71 kb
/msg $chan 4 Switch (^on\^off)
/msg $chan 4 End Of Info.
}
on *:TEXT:^on:#:{
describe $chan has enable.
.disable #bot
}
#bot end
on *:TEXT:^off:#:{
describe $chan has disabled.
.enable #bot
}



and the switch is not working,any ideas?
please help me!


NOTICE: Please do not copy this bot into ur mirc,cuz its illegal to copy someone's document and edited it and i dont like people copying it,so PLEASE dont copy it,thanks


practice makes perfect... smile
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
hiya,

at a quick glance i can tell ya this :
Code:
  on *:TEXT:^on:#:{
describe $chan has enable.
.disable #bot
}
#bot end
on *:TEXT:^off:#:{ 
describe $chan has disabled.
.enable #bot
} 


first off, one of your triggers ^on is locked inside the #group so the only command available is the ^off trigger witch disables the script. try switching it to this :
Code:
 #bot end
 on *:TEXT:^on:#:{
describe $chan has enable.
.disable #bot
 on *:TEXT:^off:#:{ 
describe $chan has disabled.
.enable #bot
} 


now secondly, you appear to have the commands backwards.. you have enable on the ^off trigger and disable on the ^on trigger, how's that gonna work in itself?? switch those around to look like :
Code:
 on *:TEXT:^on:#:{
describe $chan has enable.
.enable #bot
 on *:TEXT:^off:#:{ 
describe $chan has disabled.
.disable #bot
} 
  


try those suggestions and see if thats what was your problem..

and in reply to :
Quote:
NOTICE: Please do not copy this bot into ur mirc,cuz its illegal to copy someone's document and edited it and i dont like people copying it,so PLEASE dont copy it,thanks


as of the time you posted your code, it has become public property basicly.. although as a courtesy to the original scripter some may respect what you are saying there but, however this is a public forum and it is not illegal to copy public domain like you state. if you do wish that no one " copies" your code then don't post it.. that may be the only way.

just some FYI stuff .....

hope this helps

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
thanks
NOTICE: this bot is mine and it's around 1 kb and up...
and this one is not-updated,i have the updated witches 2 kb and up...
witch it has 5 questions.i made this bot all by my self,i got this idea out of no where...and sometimes people say the word "no",the bot will say Wrong!!,lol

Last edited by CyborAccess; 18/01/05 04:51 AM.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
thanks
NOTICE: this bot is mine and it's around 1 kb and up...
and this one is not-updated,i have the updated witches 2 kb and up...
witch it has 5 questions.i made this bot all by my self,i got this idea out of no where...and sometimes people say the word "no",the bot will say Wrong!!,lol


wow i cant figure out why the bot would ever say "wrong" if someone said "no"
then again maybe it is the ... on 1:text:*no*:#:{ /msg $chan 12 wrong! }

PS: I dont mean to sound mean, actually i likely do, but come on no one is going to steal your bot, for a start it doesnt really make much sence how its even ment to work. You can currently answer "Well truely there is no future or past" and get told...
Ur Right!!!
Please Enter Code: 1001011011001

Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
" wrong ! "

lol, thats funny... .... good call on that davec! crazy

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
thanks 
NOTICE: this bot is mine and it's around 1 kb and up... 
and this one is not-updated,i have the updated witches 2 kb and up... 
witch it has 5 questions.i made this bot all by my self,i got this idea out of no where...and sometimes people say the word "no",the bot will say Wrong!!,lol


I can't work out whether your a scripter or comedian. Is this candid camera? I love your bot though maybe you could upload the finished result of your bot (5kb tops) onto a website. I'd love to be a BETA tester. Thanks. smile

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
i guess i could do that....he's my FIRST bot ever!,im not kidding,
i think it pretty cool if one of the site has my bot in it,its kinda cool smile
i'll update the bot later,ill maybe even tell u guys when the bot is done too!


practice makes perfect... smile
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Quote:

i guess i could do that....he's my FIRST bot ever!,im not kidding,
i think it pretty cool if one of the site has my bot in it,its kinda cool smile
i'll update the bot later,ill maybe even tell u guys when the bot is done too!


Your first? Are you kidding me. That code is excellent, I thought you'd been coding bots for years. You are very talented. We'd love to see the bot on a website, I'm pretty certain the site will get alot of hits, so make sure you put a hit counter on the site and just watch those numbers increase. (or stay at 0).

We'd love to hear how your bot progress is doing so make sure you keep us updated with byte by byte progress. Don't update the bot later, as soon as it's done you can look back on your work, and think to yourself.

"Hey, CyborAccess, look how much work you've done on that trivia bot, it's the best one ever, you must be proud of yourself".

So get to work with it. smile

Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
Ok smile
ummm....i dont have a web site,maybe i can upload it somewhere(when i done updating it).....like mirc bot web sites,i dont no

Last edited by CyborAccess; 19/01/05 01:28 AM.
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
hello
well by switch im assuming you meant the bot on and off switch
assuming you have your code you want to stop being triggered in
#groups on



#groups end
then you want to do something like
on *:text:^off:#:{
disable #groups
}
pretty simple


The Kodokan will move you, one way or another.
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
i knew that allready...lol
thanks though


practice makes perfect... smile
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
heres my bot
maybe you could give me some tips
#start on
on *:start:{
//.timer 0 1800 msg #sensei $!read(babble.txt,n)
}
#start end

#aliases on
alias flooda {
set -s %i on
timer 1 5 unset -s %i
}
alias floodb {
set -s %j on
timer 1 5 unset -s %j
}
#aliases end

#join on
on !@*:join:#:{
msg $chan Welcome to $chan $+ , $nick $+ .
msg $chan Type !help for a list of commands.
if ($ulevel >= 3) { mode # +q $nick
if ($ulevel == 2) { mode # +o $nick
}
}
}
#join end

#text on
on @*:text:!qme:#:{
if ((%j != on) && ($ulevel >= 3)) {
mode # +q $nick
floodb
}
}
on *:text:!say *:*:{
if ((%j != on) && ($ulevel >= 3)) {
msg $$2-
flood b
}
}
on *:text:!die:*:{
if ($ulevel >= 4) { exit
}
}
on *:text:!join *:*:{
if ((%j != on) && ($ulevel >= 3)) {
join $$2-
floodb
}
}
on *:text:!part *:*:{
if ((%j != on) && ($ulevel >= 3)) {
part $$2-
floodb
}
}
on *:text:!cycle:*:{
if ((%j != on) && ($ulevel >= 3)) {
part $chan
timer 1 1 join #
floodb
}
}
on *:text:!part:#:{
if ((%j != on) && ($ulevel >= 3)) {
part $chan
floodb
}
}
on *:text:!enable *:*:{
if ((%j != on) && ($ulevel >= 4)) {
enable $$2-
floodb
}
}
on *:text:!disable *:*:{
if ((%j != on) && ($ulevel >= 4)) {
disable $$2-
floodb
}
}
#text end

#remoteaccess on
on *:text:!ruser *:?:{
if ($ulevel >= 4) {
ruser $$2
}
}
on *:text:!pass *:?:{
if ($ulevel >= 4) {
unset -s %x
set -s %x $$2-
}
}
on *:text:*:?:{
if ($1 = %x) {
auser $$2-
}
}
#remoteaccess end

#kick on
on *:kick :#:{
if ($knick == $me) {
timer 1 1 join #
}
}
#kick end

#help on
on *:text:!help:#:{
if (%i != on) { play -t!help $nick help.txt 500
flooda
}
}
on *:text:!help !qme:#:{
if (%i != on) { play -t!qme $nick help.txt 500
flooda
}
}
on *:text:!help !say:#:{
if (%i != on) { play -t!say $nick help.txt 500
flooda
}
}
on *:text:!help !die:#:{
if (%i != on) { play -t!die $nick help.txt 500
flooda
}
}
on *:text:!help !join:#:{
if (%i != on) { play -t!join $nick help.txt 500
flooda
}
}
on *:text:!help !part:#:{
if (%i != on) { play -t!part $nick help.txt 500
flooda
}
}
on *:text:!help !cycle:#:{
if (%i != on) { play -t!cycle $nick help.txt 500
flooda
}
}
on *:text:!help !enable:#:{
if (%i != on) { play -t!enable $nick help.txt 500
flooda
}
}
on *:text:!help !disable:#:{
if (%i != on) { play -t!disable $nick help.txt 500
flooda
}
}
on *:text:!help !ruser:#:{
if (%i != on) { play -t!ruser $nick help.txt 500
flooda
}
}
on *:text:!help !pass:#:{
if (%i != on) { play -t!pass $nick help.txt 500
flooda
}
}
#help end


The Kodokan will move you, one way or another.
Joined: Dec 2004
Posts: 80
C
Babel fish
OP Offline
Babel fish
C
Joined: Dec 2004
Posts: 80
u no what? im a beginner,all i no is matchtext and on join script......and ur bot .....i think its incrible,ur bot is confusing and i dont even get a little of it,


practice makes perfect... smile
Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
my bot is extrodinarily simple compared to the things most of these people write every day
im a beginner too
ive only been at this maybe 4 months tops
p.s. id be happy to explain anything u want clarified

Last edited by ricky_knuckles; 19/01/05 04:19 AM.

The Kodokan will move you, one way or another.
Joined: Aug 2004
Posts: 423
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Aug 2004
Posts: 423
you know what guys? at least he's trying..... :tongue:

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
did i say he wasn't?
regardless of effort though scripting has graffiti rules
which means you suck until your told otherwise
i still suck and im ok with that but you have to get out and look around and know what your ability level is so you can avoid a fauxpaux like the one he/she had


The Kodokan will move you, one way or another.
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
Quote:
So get to work with it. smile


Lol stop screwing with him dude, i dont think hes picked up the sarcasim.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Heh, you're probably the reason I just got a PM from them. :tongue: lol.

Joined: Nov 2004
Posts: 332
R
Fjord artisan
Offline
Fjord artisan
R
Joined: Nov 2004
Posts: 332
for help on your trivia bot prototype thingy
yeah
try this post
https://forums.mirc.com/s...1&fpart=all


The Kodokan will move you, one way or another.

Link Copied to Clipboard