mIRC Home    About    Download    Register    News    Help

Print Thread
#263168 11/06/18 10:09 PM
Joined: Jan 2016
Posts: 43
T
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

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
You want this to work in private messages or in channel messages?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Channel please and thank you smile

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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.

Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
No go...

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
What?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jul 2006
Posts: 4,145
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,145
No go...


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
Doesn't work for me frown

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Originally Posted By: Wims
No go...


What?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
ALT + R -> File -> New -> Paste the code -> And it will work.


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2016
Posts: 43
T
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.

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
I've tried the code and seems to work here, what mIRC version you have 3.21?


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
mIRC 7.52 (according to the About section)

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
Capture a video and show me what are you doing, so i can have an image to see what is going on..


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127
make sure that you have 2 different nicks testing this, with neither nick being the one running the script

Joined: Jan 2016
Posts: 43
T
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

Joined: Jan 2016
Posts: 43
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Jan 2016
Posts: 43
i have like 5 people typing what...

Joined: Dec 2008
Posts: 1,515
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2008
Posts: 1,515
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


Need Online mIRC help or an mIRC Scripting Freelancer? -> https://irc.chathub.org <-
Joined: Jan 2016
Posts: 43
T
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


Link Copied to Clipboard