Page 3 of 3
Re: Functions in Load are not working. Where is the mistake?
Posted: Fri Jan 10, 2014 10:58 am
by Pofatlan
Danni!
I would like to ask for a working script, if that is possible

(thank you very much)

Re: Functions in Load are not working. Where is the mistake?
Posted: Sun Jan 12, 2014 12:04 pm
by Florafauna
I would also like a working script it would really help me alot
Re: Functions in Load are not working. Where is the mistake?
Posted: Sun Jan 12, 2014 1:58 pm
by BlubBlab
What sort of script? I added the function to the GM Userfunction long ago.
Re: Functions in Load are not working. Where is the mistake?
Posted: Tue Jan 14, 2014 11:20 am
by BlubBlab
Because the code is also here:
Code: Select all
EventMonitorStart("detectGMast", "CHAT_MSG_SYSTEM");
for _,v in pairs(gmNameList) do
local foundmsg = false
sendMacro("AskPlayerInfo(\'"..v.."\');");
repeat
local time, moreToCome, msg = EventMonitorCheck("detectGMast", "1")
if msg and string.find(msg, ".*%(.*%).*%(.*%)") then
found = true
break
end
if msg then
foundmsg = true
end
until moreToCome ~= true and foundmsg
if found == true then
break;
end
end
EventMonitorStop("detectGMast")
Okay I need some thought assistance. I'm not sure this will always work like I think.
The idea is how long I wait between ask and pooling it could never be enough(high theoretically through lags) and on top of it its make the execution of the code very slow.
So I added foundmsg to make sure I have at least received one valid message.
I'm not sure if this is enough or I need compare the offline message(multi language) with the received message to make sure I don't got a gap?