mIRC Home    About    Download    Register    News    Help

Print Thread
another question #43764 23/08/03 07:54 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Somone that know if its possible to identify if a ACTION text is typed as /me or /ame when it comes from the server? i trying to echo action text, but if somone slap another person in one channel, then it echo's to all channels im on.. and that do i want when somone set him/her self away, and using /ame, is it possible to do? somone that been trying it? :tongue:


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: another question #43765 24/08/03 04:23 AM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline
Pikka bird
Offline
Pikka bird
O
Joined: Jul 2003
Posts: 14
well i have a script that counters someone's /me when it involves my nickname, if it will help ill give it below

here it is and you can modify it if ya like, please dont use it for spamming though...

on *:ACTION:$(* $+ $me $+ *):#: { describe $chan $replace($1-,$me,$nick) }

Re: another question #43766 24/08/03 04:30 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
yea, thats great...

* KingTomato slaps Obelisk around abit with a large trout
* Obelisk slaps KingTomato around abit with a large trout
* KingTomato slaps Obelisk around abit with a large trout
* Obelisk slaps KingTomato around abit with a large trout
* KingTomato slaps Obelisk around abit with a large trout
* Obelisk slaps KingTomato around abit with a large trout

...

I can see that not being used for spamming


-KingTomato
Re: another question #43767 24/08/03 04:38 AM
Joined: Jul 2003
Posts: 14
O
Obelisk Offline
Pikka bird
Offline
Pikka bird
O
Joined: Jul 2003
Posts: 14
lol, np i give credit to LordTyphoon who gives credit to someone else for that script, lol


btw, please dont use it for spamming...

Re: another question #43768 24/08/03 04:41 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Thank you for your help.. but thats not what i looking for, i want to filter the ACTIONS in the channel typed by somone else, and i want to filter out the /me's from /ame's .. and i was wondering if the server sending some signals for that? mIRC see the diffrence if it a /ame or /me , cos it shows the /me in only 1 channel, but the /ame appears in all channels.. smile


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: another question #43769 24/08/03 05:53 PM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
This is no way to filer /me from /ame unless you were to count the number of messages from the user. Example: The user and yourself share 3 channels together. The other person uses /me on one channel, thats a /me Now they use a /ame and all channels you share get the same action, thats a /ame. The only way i chould think of it is as follows:

on *:ACTION:*:#: {
/inc -u1 %ame. [ $+ [ $nick ] ]
if (%ame. [ $+ [ $nick ] ] > 1) .tiumerame [ $+ [ $nick ] ] 1 1 /echo -a /AME Receieved From $nick $+ !
}

Use a sort of timer to count the number of messages in the duration of a second. If you get 2+ messages from that person in the duration of a second, then you can assume its a /ame. Tho its not exactly accurate as they could type //me does an action | /me does another action and it would assume an /ame


-KingTomato
Re: another question #43770 24/08/03 06:09 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
This is what i get in the debug window during a /me and a /ame..

/me

<- :nick!ident@host PRIVMSG # :ACTION test

/ame

<- :nick!ident@host PRIVMSG # :ACTION test
<- :nick!ident@host PRIVMSG # :ACTION test

How do mIRC tell them apart? it see if its a /me or a /ame .. now i dont understand how it can do that, and if mIRC can tell them apart, why cant i make the same thing with som coding, the code i have now looks like

Code:
on ^*:ACTION:*:*: {
  if (%timestamp == 1) { timesetj }
  var %i 1
  while (%i &lt;= $chan(0)) {
    echo $chan(%i)  $+ $color(action text) $+ %tstmp $+ ° $nick $1-
    inc %i
    haltdef
  }
}


how can i filter out the /ame and /me ? cos now it counts all actions like a /ame
and i tryed your code.. i couldent get it to work.. confused


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: another question #43771 24/08/03 06:57 PM
Joined: Jun 2003
Posts: 67
D
demitrix Offline
Babel fish
Offline
Babel fish
D
Joined: Jun 2003
Posts: 67
im too lazy to code it for you but couldnt u do something
Code:
on ^*:ACTION:*matchstuffhere*:#:{
   if ($read(logfile1.log,$lines(logfiles1.log)) == $read(logfile2.log,$lines(logfiles2.log))
halt

or something u get the idea


while (demi == nub) {
inc %skill
}
Re: another question #43772 24/08/03 07:12 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
I dont understand your answer? i want it to see all action's made in a channel.. i also want it to send all /me to the channel it happens in.. and all /ame to the channels it suposed to show up in.. and i dont understand the log thingie? mIRC can handle the text.. and i want a litle script that makes the same, the only thing i want it to do is to change all action texts as i want the to be.. but now i get all action texts like a /ame.. it dont see the /me .. confused


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: another question #43773 24/08/03 08:26 PM
Joined: Feb 2003
Posts: 3,432
S
sparta Offline OP
Hoopy frood
OP Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
Never mind, i solved the problem with som coding.. grin


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Re: another question #43774 25/08/03 02:58 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
I gave you an answer 4 posts ago.. Not that it matters now.


-KingTomato