PDA

View Full Version : When recive prv msg go to x label



Hars
12-23-2015, 06:47 AM
Hello guys,

Its possible to do something like that? My one player send prv msg to second and when he recive msg go to xx label.

Anyone know how to do it? Im trying with proxy speach but fail.

Kociii
12-23-2015, 07:04 AM
Dont think it's possible. I may be wrong :)

brindeds
12-23-2015, 10:24 AM
Yes. I believe that you need not use a solution like the one you're thinking. I think one module would be enough.
http://forums.xenobot.net/showthread.php?39301-shAdOwArt-s-Lua-Scripts&p=460853&posted=1#post460853 take as a basis the chat posted here.

grave18
12-23-2015, 12:50 PM
Module.New("PrivateMessage", function()
PrivateMessageProxy.OnReceive("PrivateMessage", function(proxy, speaker, level, text)
if (text:find("LoveXB") and speaker == "Fleven") then
Walker.Goto("X")
end
end)
end)

Hars
12-24-2015, 08:11 AM
Module.New("PrivateMessage", function()
PrivateMessageProxy.OnReceive("PrivateMessage", function(proxy, speaker, level, text)
if (text:find("LoveXB") and speaker == "Fleven") then
Walker.Goto("X")
end
end)
end)

Shit, it work great, thanks.

One more question, possible to check if server send msg like quest log updated?