mIRC Homepage
Posted By: andymps something wrong somwehre - 14/09/03 04:43 AM
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?
Posted By: ATMA Re: something wrong somwehre - 14/09/03 05:08 AM
ummm well it would help us under stand this code a bit more if u told us the perpus....
Posted By: andymps Re: something wrong somwehre - 14/09/03 05:14 AM
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)
Posted By: LocutusofBorg Re: something wrong somwehre - 14/09/03 07:14 AM
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.
Posted By: andymps Re: something wrong somwehre - 14/09/03 07:38 AM
thats just it it doesnt work thats it, nothing of it works, it doesnt do anything
Posted By: J0ke Re: something wrong somwehre - 14/09/03 07:59 AM
Quote:

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


why notice? why not use signals?
Posted By: Om3n Re: something wrong somwehre - 14/09/03 08:26 AM
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...
Posted By: LocutusofBorg Re: something wrong somwehre - 14/09/03 10:04 AM
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
Posted By: andymps Re: something wrong somwehre - 14/09/03 02:59 PM
right, thanx for the advice, i found it, %logchan, <- wouldnt set
Posted By: pheonix Re: something wrong somwehre - 14/09/03 03:03 PM
alias test {
.signal test $!1 $!2
}
on *:signal:test:{
echo -s $signal $1-
}
Posted By: andymps Re: something wrong somwehre - 14/09/03 03:07 PM
hmm i dont see how i could use signals(never used em b4)
Posted By: andymps Re: something wrong somwehre - 14/09/03 03:09 PM
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
Posted By: pheonix Re: something wrong somwehre - 14/09/03 03:10 PM
/help /signal wink
Posted By: andymps Re: something wrong somwehre - 14/09/03 03:16 PM
i just read that, now my head hurts :-/
© mIRC Discussion Forums