riki
Member
Posts: 11 Likes: 1
Currently Offline
Last Online: Sept 27, 2017 2:35:34 GMT
View Profile
Registered On: Sept 6, 2017 23:33:44 GMT
|
Post by riki on Sept 7, 2017 16:21:49 GMT
is there script that auto reply when someone talks to you in the Local chat(default chat )
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Sept 7, 2017 18:14:26 GMT
auto 200 foreach 'newmessages' $a if [$a.isdefault] {say 'bla bla'}
|
|
riki
Member
Posts: 11 Likes: 1
Currently Offline
Last Online: Sept 27, 2017 2:35:34 GMT
View Profile
Registered On: Sept 6, 2017 23:33:44 GMT
|
Post by riki on Sept 7, 2017 18:59:56 GMT
it works thanks but why is it so fast it sends 5 message can u fix it ?
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Sept 7, 2017 19:45:31 GMT
auto 200 foreach 'newmessages' $a if [$a.isdefault] {say 'bla bla' | wait 1000}
|
|
riki
Member
Posts: 11 Likes: 1
Currently Offline
Last Online: Sept 27, 2017 2:35:34 GMT
View Profile
Registered On: Sept 6, 2017 23:33:44 GMT
|
Post by riki on Sept 7, 2017 20:01:20 GMT
this time keep sending it every 1 seconds none stop can u fix it so it send it only 1 time when someone says something in default chat ?
|
|
Masi
Senior Tutor
Staff Member
Posts: 241 Likes: 198
Mini-Profile Background: {"image":"https://media.giphy.com/media/2bIP0gHS5cLhS/giphy.gif","color":"6b8d6b"}
Mini-Profile Text Color: ffffff
Currently Offline
Last Online: Nov 23, 2019 2:02:15 GMT
View Profile
Registered On: Mar 31, 2016 16:11:57 GMT
|
Post by Masi on Sept 7, 2017 20:25:08 GMT
this time keep sending it every 1 seconds none stop can u fix it so it send it only 1 time when someone says something in default chat ? Try this, it will reply to every message that contains keyword. auto 200 foreach 'newmessages' $a if [$a.isdefault && $a.content ? 'KEYWORD'] {say 'bla bla' | wait 500}
|
|
riki
Member
Posts: 11 Likes: 1
Currently Offline
Last Online: Sept 27, 2017 2:35:34 GMT
View Profile
Registered On: Sept 6, 2017 23:33:44 GMT
|
Post by riki on Sept 7, 2017 23:21:58 GMT
its good but is there a way to make it talk when someone say something it talks back >one time< ? without the keyword it can be anything and it reply back 1 time
|
|
|
Post by Darth Maul on Sept 8, 2017 6:25:06 GMT
Every time you talk, it detects a new message in default chat and activates the script. Just check for all default messages that you dont send.
auto 200 | dontlist | foreach 'newmessages' $a if [$a.isdefault && $a.name != $self.name] {say 'bla bla' | wait 500}
|
|