mIRC Home    About    Download    Register    News    Help

Print Thread
#113315 03/03/05 03:27 PM
Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
Ok my bot is just about finished all i want to do now is add a popup box that says some info when they do /load-rs and then some info in the status window saying script CroszBot loaded more info bla bla.

This would be great if i can get some help to complete my bot. thanks again to all who help with this.

Last edited by Crosz; 03/03/05 03:33 PM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Do you mean something like...

Code:
On *:Load: {
  if (!$window(@Script)) { 
    window -n @script 
    echo @Script You loaded $script by Crosz. 
  } 
  return $input(Loaded $script,dqo,Script Loader..)
}


Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
Yep thats what i needed so i could modify it thanks.

;--------------------------------------------------
;--- CroszBot 1.01
;--- http://cdg.servemp3.com
;--- Coded by Crosz
;--------------------------------------------------
;- CroszBot script for IRC & PaperIRC chat server.
;--------------------------------------------------

On *:Load: {
if (!$window(@Script)) {
window -n @script
echo @Script You loaded $script by Crosz.
}
return $input(Loaded $script,dqo,Script Loader..)
}
on *:START:{
echo -s 2:: CroszNet Bot Script 1.01 by Crosz ::
echo -s 10:: http://cdg.servemp3.com/ ::
echo -s 3:: CroszBot Loaded And Is Now Ready For Commands ::
echo -s -

how would i make it stop here and not read on down the code

on @*:join:#:if $regex(uc,$nick,/^[^[:alpha:]]*?[A-Z]/) { mode # +v $nick } on

as the error is not connected to server.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Quote:

how would i make it stop here and not read on down the code


I don't follow dude. frown

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
Sorry when the code has finished ie the echos

end of start up should be echo -s -

after that its my bot code which starts with

on @*:join:#:if $regex(uc,$nick,/^[^[:alpha:]]*?[A-Z]/) { mode # +v $nick } on

when it starts to read the bot code it says not connected to server.

What i want is it to load the echoes at startup or load and say no error messages.they the user connects to the server and the bot does its job.

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on *:START:{
  echo -s 2:: CroszNet Bot Script 1.01 by Crosz ::
  echo -s 10:: http://cdg.servemp3.com/ ::
  echo -s 3:: CroszBot Loaded And Is Now Ready For Commands ::
  echo -s -
[color:red]}[/color]


Perhaps?

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
Thats what i thought as well but no it just stops sending the echo lines

Its ok I got it pressed no instead of ok.

It was missing a
}

Last edited by Crosz; 03/03/05 04:11 PM.
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Want to paste the whole contents of CroszBot.mrc? Please use CODE tags though..

Joined: Aug 2004
Posts: 43
C
Crosz Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: Aug 2004
Posts: 43
you where correct i tried it with a ) instead of a } was not watching. pressed no instead of ok on script load as well sorry frown my eyes are full of code lmao

Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
LOL, glad you sussed it mate. smile


Link Copied to Clipboard