mIRC Home    About    Download    Register    News    Help

Print Thread
#101528 25/10/04 02:37 PM
Joined: Oct 2004
Posts: 18
B
boxbred Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2004
Posts: 18
I was curious as to if someone has a script like this, or someone who could write this type of script....Say someone pm's me and says "hi/hello" the script would automatically say hi/hello back...and if someone says "asl", it would reply with my asl...Anyone with any info, it would be greatly appreciated. Thanks

#101529 25/10/04 02:46 PM
Joined: May 2004
Posts: 132
N
Vogon poet
Offline
Vogon poet
N
Joined: May 2004
Posts: 132
You can use this script

Code:
on *:TEXT:*:?:{
if ($1 == hi) {
/msg $nick Hi
}
if ($1 == hello) {
/msg $nick Hello
}
}


This will make the script trigger if someone pm's you and word one is hi or hello like this: Hi how are you?

If you want the script to trigger if someone only pm's hi or hello to you use this script

Code:
on *:TEXT:*:?:{
if ($1 == hi) && (!$2-) {
/msg $nick Hi
}
if ($1 == hello) && (!$2-) {
/msg $nick Hello
}
}


I'm sorry but i can't remember what asl stands fore


if ($me != geek) { $life is $false }
else { $life is $true }
NoPleX
#101530 25/10/04 03:09 PM
Joined: Oct 2004
Posts: 18
B
boxbred Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2004
Posts: 18
Asl = age, sex, location...and I tried the script you posted in remotes and it didnt work, so I tried alias and it still didnt work. Any clue?..Thanks

#101531 25/10/04 03:11 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
ASL stands for Age Sex Location.

To boxbred: the same principal would apply, but just changing 'hi' or 'hello' for ASL.

See /help on text and you may also want to see /help on open.

So, you could use something like:

on *:text:*:?:{
if ((hi isin $1-) || (hello isin $1-)) {
msg $nick hi
}
if (asl isin $1-) {
msg $nick 16/m/England
}
}


Edit: A couple of things to note:
- This needs to go in your Remote file, ALT+R in a new file (File > New)
- You cannot trigger this by typing the text yourself, ON TEXT events can only trigger when someone else messages you. You could open a new server window and test it though.
- If copy and pasting from Internet Explorer, it will paste into one line. This should not how it is, so paste it into Notepad first, then copy the same code from Notepad and paste it to the Remote section, it should now be on multiple lines.

Regards,


Mentality/Chris
#101532 25/10/04 03:29 PM
Joined: Oct 2004
Posts: 18
B
boxbred Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2004
Posts: 18
This is weird. Its still not working. I just loaded a script about an hour ago and its working fine, but neither one of these are working. Any other clues? Thanks again

#101533 25/10/04 03:33 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
Did you read the 'couple of things to note' bit I added to the bottom of my post? Those are the most likely issues. What script did you load 'about an hour ago'? It might be interfering. Make sure you have only ONE of the above in a clean remote file, not all of them. Make sure someone else is messaging you with the words 'hi' or 'hello' or 'asl' in the sentence.

Regards,


Mentality/Chris
#101534 25/10/04 03:58 PM
Joined: Oct 2004
Posts: 18
B
boxbred Offline OP
Pikka bird
OP Offline
Pikka bird
B
Joined: Oct 2004
Posts: 18
Ehhh....I done everything all over..an it WORKED...Thanks alot..I really appreciate it!! Have a nice day/night!


Link Copied to Clipboard