<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Send_WaitLog_event</id>
		<title>Send WaitLog event - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://greggsmith.net/wiki/index.php?action=history&amp;feed=atom&amp;title=Send_WaitLog_event"/>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Send_WaitLog_event&amp;action=history"/>
		<updated>2026-04-17T12:43:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.26.1</generator>

	<entry>
		<id>http://greggsmith.net/wiki/index.php?title=Send_WaitLog_event&amp;diff=3997&amp;oldid=prev</id>
		<title>Kowy: New page: __NOTOC__ Category:Customizations Category:r11 Category:r12 Category:Spell Code {{Global Header}} {{Global Announcement}} == Overview == This method create activity Event O...</title>
		<link rel="alternate" type="text/html" href="http://greggsmith.net/wiki/index.php?title=Send_WaitLog_event&amp;diff=3997&amp;oldid=prev"/>
				<updated>2009-12-07T13:23:53Z</updated>
		
		<summary type="html">&lt;p&gt;New page: __NOTOC__ &lt;a href=&quot;/wiki/index.php?title=Category:Customizations&quot; title=&quot;Category:Customizations&quot;&gt;Category:Customizations&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R11&quot; title=&quot;Category:R11&quot;&gt;Category:r11&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:R12&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:R12 (page does not exist)&quot;&gt;Category:r12&lt;/a&gt; &lt;a href=&quot;/wiki/index.php?title=Category:Spell_Code&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Category:Spell Code (page does not exist)&quot;&gt;Category:Spell Code&lt;/a&gt; {{Global Header}} {{Global Announcement}} == Overview == This method create activity Event O...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;__NOTOC__&lt;br /&gt;
[[Category:Customizations]]&lt;br /&gt;
[[Category:r11]]&lt;br /&gt;
[[Category:r12]]&lt;br /&gt;
[[Category:Spell Code]]&lt;br /&gt;
{{Global Header}}&lt;br /&gt;
{{Global Announcement}}&lt;br /&gt;
== Overview ==&lt;br /&gt;
This method create activity Event Occured to object's activity log. This method is valid for CR as well for CHG objects.&lt;br /&gt;
&lt;br /&gt;
This action can be called in [[Spel_Reference_Guide|spell code]] in method [[send_wait]].&lt;br /&gt;
&lt;br /&gt;
== Usage ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
void send_wait (int timeout, object top_object, &amp;quot;log_event&amp;quot;, object group_leader, uuid userid, string message)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* timeout - how long (?in seconds?) should the method wait for finishing the method (0 means infinite)&lt;br /&gt;
* top_object - root object for the method (on which the method is called)&lt;br /&gt;
* group_leader - Group leader object obtained from [[Send_WaitGet_Co_group|get_co_group]] method&lt;br /&gt;
* userid - user designated as action creator&lt;br /&gt;
* message - user description in object's activity&lt;br /&gt;
&lt;br /&gt;
== Results ==&lt;br /&gt;
On success nothing. If error occured msg[0] contains error message.&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
&amp;lt;source lang=&amp;quot;javascript&amp;quot;&amp;gt;&lt;br /&gt;
/ add an activity log. requires the macro be locked.&lt;br /&gt;
uuid log_userid;&lt;br /&gt;
// log_userid = Administrator&lt;br /&gt;
log_userid = (uuid)&amp;quot;4FE1477A236A2A44A3B05A628DCBE661&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
// get info from event to store in log description&lt;br /&gt;
string log;&lt;br /&gt;
log = format(&amp;quot;event '%s' triggered by condition '%s'.&amp;quot;, event_tmpl.sym, event_tmpl.condition.sym);&lt;br /&gt;
&lt;br /&gt;
send_wait(0, this, &amp;quot;log_event&amp;quot;, group_leader, log_userid, log);&lt;br /&gt;
if (msg_error()) {&lt;br /&gt;
logf(ERROR, format(&amp;quot;macro event error '%s'&amp;quot;, msg[0]));&lt;br /&gt;
} &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Kowy</name></author>	</entry>

	</feed>