Functions in Load are not working. Where is the mistake?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Message
Author
Pofatlan
Posts: 11
Joined: Sat Sep 14, 2013 2:29 am
Location: Hungary

Re: Functions in Load are not working. Where is the mistake?

#41 Post by Pofatlan » Fri Jan 10, 2014 10:58 am

Danni!

I would like to ask for a working script, if that is possible :) (thank you very much) :)

Florafauna
Posts: 8
Joined: Tue Dec 17, 2013 8:12 pm

Re: Functions in Load are not working. Where is the mistake?

#42 Post by Florafauna » Sun Jan 12, 2014 12:04 pm

I would also like a working script it would really help me alot

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Functions in Load are not working. Where is the mistake?

#43 Post by BlubBlab » Sun Jan 12, 2014 1:58 pm

What sort of script? I added the function to the GM Userfunction long ago.
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

User avatar
BlubBlab
Posts: 948
Joined: Fri Nov 30, 2012 11:33 pm
Location: My little Pony cafe

Re: Functions in Load are not working. Where is the mistake?

#44 Post by BlubBlab » Tue Jan 14, 2014 11:20 am

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?
Jack-of-all-trades, but master-of-only of a few :D

My Reps:
https://github.com/BlubBlab/Micromacro-with-OpenCV (My version of MM2 with OpenCV and for MS Visual Studio)
https://github.com/BlubBlab/rom-bot (rombot with no stop WP and advanced human emulation mode and some other extensions)
https://github.com/BlubBlab/Micromacro-2-Bot-Framework ( A work in progress )
My Tools : viewtopic.php?f=10&t=6226

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 9 guests