mIRC Home    About    Download    Register    News    Help

Print Thread
Script that will repeat #263168 11/06/18 10:09 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
I want a script that will post what was last said in chat when someone says what.
So it would be like this
User 1: blah blah blah blah blah
User 2: what?
Bot: User 1 said blah blah blah blah blah

Re: Script that will repeat [Re: Techchef] #263169 11/06/18 10:16 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
You want this to work in private messages or in channel messages?

Re: Script that will repeat [Re: westor] #263170 11/06/18 10:18 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Channel please and thank you smile

Re: Script that will repeat [Re: Techchef] #263171 11/06/18 10:22 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Try use this:

Code:
ON *:TEXT:*:#: {
  if ($strip($1-) == what?) && (%last_ [ $+ [ $chan ] $+ ] _msg) && ($gettok(%last_ [ $+ [ $chan ] $+ ] _msg,1,32) !== $nick) { msg $chan %last_ [ $+ [ $chan ] $+ ] _msg | return }
  set -e %last_ $+ $chan $+ _msg $nick said: $1-
}


Last edited by westor; 11/06/18 10:28 PM.
Re: Script that will repeat [Re: westor] #263173 11/06/18 10:33 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
No go...

Re: Script that will repeat [Re: Techchef] #263174 11/06/18 10:34 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
What?

Re: Script that will repeat [Re: westor] #263175 11/06/18 10:36 PM
Joined: Jul 2006
Posts: 3,723
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,723
No go...


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: Script that will repeat [Re: westor] #263176 11/06/18 10:37 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Doesn't work for me frown

Re: Script that will repeat [Re: Wims] #263177 11/06/18 10:37 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Originally Posted By: Wims
No go...


What?

Re: Script that will repeat [Re: Techchef] #263178 11/06/18 10:38 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
ALT + R -> File -> New -> Paste the code -> And it will work.

Re: Script that will repeat [Re: westor] #263179 11/06/18 10:43 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
not sure what i am doing wrong-but i tried this too..its in a new blank script with nothing else and its not triggering.

Re: Script that will repeat [Re: Techchef] #263180 11/06/18 10:46 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
I've tried the code and seems to work here, what mIRC version you have 3.21?

Re: Script that will repeat [Re: westor] #263181 11/06/18 10:47 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
mIRC 7.52 (according to the About section)

Re: Script that will repeat [Re: Techchef] #263182 11/06/18 10:48 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Capture a video and show me what are you doing, so i can have an image to see what is going on..

Re: Script that will repeat [Re: Techchef] #263183 11/06/18 10:52 PM
Joined: Jan 2004
Posts: 1,410
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,410
make sure that you have 2 different nicks testing this, with neither nick being the one running the script

Re: Script that will repeat [Re: westor] #263184 11/06/18 10:57 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
hopefully this works...a bunch of screenshots of me doing each step
https://www.dropbox.com/sh/dcb1027by5wgyub/AACgV07nSS5KDvSIcAfqRrQ2a?dl=0

Re: Script that will repeat [Re: maroon] #263185 11/06/18 10:59 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
i have like 5 people typing what...

Re: Script that will repeat [Re: Techchef] #263186 11/06/18 11:03 PM
Joined: Dec 2008
Posts: 1,511
westor Offline
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,511
Originally Posted By: Techchef
I want a script that will post what was last said in chat when someone says what.
So it would be like this
User 1: blah blah blah blah blah
User 2: what?
Bot: User 1 said blah blah blah blah blah


That was your FIRST post, what are you requesting in your first post?

User 2: what?

And what are typing in your examples tests?

what

If you forget what are you requesting, then i can suggest you a good doctor! laugh

Re: Script that will repeat [Re: Techchef] #263187 11/06/18 11:09 PM
Joined: Jan 2016
Posts: 43
T
Techchef Offline OP
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
OK-this is my own stupidity (and tiredness) i was typing what, not what?..I didn't even realize i typed what? in my op.
It works smile