View Full Version : Elfbot Script - Help out me <3
Kociii
02-04-2014, 04:55 PM
Okaay.. I want to create a Elfbot script that says the same sentence as the other player says.. I have one script but I have to change the text the he says and the text the character says.
Script: auto 10 if [$curmsg.sender == 'CharacterName' && $curmsg.content == 'Character Text'] {say 'The Other Guy Say' | wait 1900}
So example
Example 1: auto 10 if [$curmsg.sender == 'Name1' && $curmsg.content == 'Hi'] {say 'Hello' | wait 1900}
So .. I want when Name1 says a message the other character says the same as him. Do you get it?
hugo999
02-04-2014, 05:12 PM
Kociii
Module.New('SpeakNow', function()
LocalSpeechProxy.OnReceive("Messages", function(proxy, mtype, speaker, level, text)
if (text:find("Exevo Gran Mas Frigo") and speaker == "Platynka") then
Self.Say("Exevo Gran Mas Flam")
end
end)
end)
Kociii
02-04-2014, 05:17 PM
Kociii
Module.New('SpeakNow', function()
LocalSpeechProxy.OnReceive("Messages", function(proxy, mtype, speaker, level, text)
if (text:find("Exevo Gran Mas Frigo") and speaker == "Platynka") then
Self.Say("Exevo Gran Mas Flam")
end
end)
end)
For elfbot? <3
hugo999
02-04-2014, 05:36 PM
For elfbot? <3
OMG, its for XenoBot. Sorry.
I've found something
auto 50 foreach 'shootableplayers' $p { if [$lastmsg.sender == $p.name && $lastmsg.sender != 'Nick' ] say $lastmsg.content}
Kociii
02-04-2014, 05:51 PM
OMG, its for XenoBot. Sorry.
I've found something
auto 50 foreach 'shootableplayers' $p { if [$lastmsg.sender == $p.name && $lastmsg.sender != 'Nick' ] say $lastmsg.content}
That script did not work :S
EDIT: The script says what you said. So If my friends says HI .. nothing happends. If I say Hi.. It spams Hi to I get muted.
Powered by vBulletin® Version 4.2.5 Copyright © 2025 vBulletin Solutions Inc. All rights reserved.