I hope I'm understanding the problem correctly...
Do you have event states in a series of lua functions such as the following?
Code:
function event_buffs()
add_event_state(2506, 41, 900000)
add_event_state(2508, 41, 900000)
add_event_state(163429, 10, 900000)
add_event_state(13425, 277, 900000)
add_event_state(13424, 277, 900000)
add_event_state(13423, 36, 900000)
add_event_state(163448, 39, 900000)
add_event_state(2505, 160, 900000)
add_event_state(2507, 160, 900000)
add_event_state(163433, 90, 900000)
add_event_state(163405, 48, 900000)
add_event_state(163407, 48, 900000)
add_event_state(163406, 48, 900000)
add_event_state(163404, 48, 900000)
add_event_state(1013, 100, 900000)
end
Or do you have a list in a self written program which you're firing under specific conditions, etc?
The reason i ask is, I had a simple program written in c# which punched in event states under certain conditions which it read from a list. I had issues with it freezing when there were too many commands sent to it at one time.
E.G:
Code:
foreach(string line in lines)
{
foreach (Process herlock in Process.GetProcessesByName("CaptainHerlockServer"))
{
string text = eventBuffList[1];
IntPtr p = Marshal.StringToHGlobalAuto(text);
IntPtr tmp = FindWindowEx(herlock.MainWindowHandle, IntPtr.Zero, "Edit", null);
SendMessage(tmp, WM_SETTEXT, 0, p);
SendMessage(tmp, 258, 13, IntPtr.Zero);
Application.DoEvents();
}
}
It would work fairly well, until there were too many in the list then Herlock would lock up.
But once I added
Code:
System.Threading.Thread.Sleep(100);
in the code block or switched to lua functions the issue was corrected.
Hope that helped, mate.