mIRC Home    About    Download    Register    News    Help

Print Thread
#49325 14/09/03 04:43 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
Code:
on *:NOTICE:*:*: {
  if ($nick == $me) {
    if ($2 == [team]) {
      msg %logchan $2-
    }
    elseif ($2 == Player) msg %logchan $3 has $4-
    elseif (: isin $2) {
      if ($remove($2, :) == Host) msg %logchan 14Host: $3-
      else msg %logchan $2-
    }
    elseif ($2 == loading) {
      msg %logchan Loading map $4
      set %map1 $4
    }
    elseif (($2 == ***) && ($3 == Auto)) {
      msg %logchan FDS Initiating 
    }
    elseif ($2 == logged) msg %logchan $2 $3 OK
    elseif ($2 isnum) {
      msg %pnick $2-
      timerp 1 15 /.unset %pnick
    }
    elseif ($2 == No) {
      notice %pnick $2-
      unset %pnick
    }
    elseif ($2 == westwood) notice %gnick $2-
    elseif ($2 == gameplay) notice %gnick $2-
    elseif ($2 == map) notice %gnick $2-
    elseif ($2 == time) notice %gnick Time: $4-
    elseif ($2 == Fps) notice %gnick $2-
    elseif ($2 == gdi) notice %gnick $2-
    elseif ($2 == nod) {
      notice %gnick $2-
      unset %gnick
    }
  }
}

no workey, anyone know why?


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49326 14/09/03 05:08 AM
Joined: Dec 2002
Posts: 397
A
Fjord artisan
Offline
Fjord artisan
A
Joined: Dec 2002
Posts: 397
ummm well it would help us under stand this code a bit more if u told us the perpus....


Need amazing web design for low price: http://www.matrixn3t.net
#49327 14/09/03 05:14 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
well, my bot reads a log from a program and notices itself the info, then this script should do the apropriate things with the info($1 is the log timestamp)


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49328 14/09/03 07:14 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
And what exactly is the problem. Would save us a lot of time searching for one if you could describe the problem. Kinda like if you bring your computer to a repair shop. You don't say "it doesn't work" - you describe the problem.


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49329 14/09/03 07:38 AM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
thats just it it doesnt work thats it, nothing of it works, it doesnt do anything


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49330 14/09/03 07:59 AM
Joined: Jan 2003
Posts: 150
J
Vogon poet
Offline
Vogon poet
J
Joined: Jan 2003
Posts: 150
Quote:

well, my bot reads a log from a program and notices itself the info


why notice? why not use signals?


Go ahead, jump. 100,000 lemmings can't be wrong.
#49331 14/09/03 08:26 AM
Joined: Jul 2003
Posts: 655
Fjord artisan
Offline
Fjord artisan
Joined: Jul 2003
Posts: 655
Thats all well and good, but what your code is doing is watching for notices from YOURSELF... what possible purpose would you have for /notice ing yourself?

Change the $me to the nick that would actually be sending you the notices?

Edit ::

Ok, so i didn't read the follow up posts properly... n/m me laugh

But as said, for that purpose notices probably isn't the best thing to use, however i dont see any reason why NONE of your code is working, unless you have another on notice event in the same script file...

Last edited by Om3n; 14/09/03 08:31 AM.

"Allen is having a small problem and needs help adjusting his attitude" - Flutterby
#49332 14/09/03 10:04 AM
Joined: Mar 2003
Posts: 1,271
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Mar 2003
Posts: 1,271
In that case you should spend a bit of time learning about debugging. Does the event trigger at all? Check if the if-statements work. Echo the values of variables before using them to see if they have the values you expect em to have, etc etc etc


DALnet #Helpdesk
I hear and I forget. I see and I remember. I do and I understand. -Confucius
#49333 14/09/03 02:59 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
right, thanx for the advice, i found it, %logchan, <- wouldnt set


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49334 14/09/03 03:03 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
alias test {
.signal test $!1 $!2
}
on *:signal:test:{
echo -s $signal $1-
}


new username: tidy_trax
#49335 14/09/03 03:07 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
hmm i dont see how i could use signals(never used em b4)


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49336 14/09/03 03:09 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
right, now for some unknown reason if i notice my self with:
blah *** Auto blah blah
it works but when i get the notice from whats in the log:
[16:15:43] *** Auto starting game. Type 'quit' to abort ***
doesnt work


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11
#49337 14/09/03 03:10 PM
Joined: May 2003
Posts: 2,265
P
Hoopy frood
Offline
Hoopy frood
P
Joined: May 2003
Posts: 2,265
/help /signal wink


new username: tidy_trax
#49338 14/09/03 03:16 PM
Joined: Apr 2003
Posts: 300
A
andymps Offline OP
Fjord artisan
OP Offline
Fjord artisan
A
Joined: Apr 2003
Posts: 300
i just read that, now my head hurts :-/


Liek OMG Yuo Stoleded my MageHurtzzzz!!!11

Link Copied to Clipboard