<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendGuildAppointmentData</id>
	<title>API:SendGuildAppointmentData - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.returnofreckoning.com/index.php?action=history&amp;feed=atom&amp;title=API%3ASendGuildAppointmentData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendGuildAppointmentData&amp;action=history"/>
	<updated>2026-10-18T19:24:21Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.11</generator>
	<entry>
		<id>https://wiki.returnofreckoning.com/index.php?title=API:SendGuildAppointmentData&amp;diff=30696&amp;oldid=prev</id>
		<title>Maintenance script: UI Lua API import (WAR 1.4.8)</title>
		<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:SendGuildAppointmentData&amp;diff=30696&amp;oldid=prev"/>
		<updated>2026-10-16T19:48:39Z</updated>

		<summary type="html">&lt;p&gt;UI Lua API import (WAR 1.4.8)&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{LuaApi|group=Guild}}&lt;br /&gt;
Sends a guild calendar command to the server: create, edit or delete an appointment, sign up or leave, or manage sign-ups.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendGuildAppointmentData(action, appointmentID, guildID, memberID,&lt;br /&gt;
    startMonth, startDay, startYear, startHour, startMinute, startAMPM,&lt;br /&gt;
    endMonth, endDay, endYear, endHour, endMinute, endAMPM,&lt;br /&gt;
    title, description, shared, locked)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
;action : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – What to do. The stock UI uses the constants in &amp;lt;code&amp;gt;GuildWindowTabCalendar&amp;lt;/code&amp;gt;: 1 &amp;lt;code&amp;gt;APPOINTMENT_ADD&amp;lt;/code&amp;gt;, 2 &amp;lt;code&amp;gt;APPOINTMENT_EDIT&amp;lt;/code&amp;gt;, 3 &amp;lt;code&amp;gt;APPOINTMENT_DELETE&amp;lt;/code&amp;gt;, 4 &amp;lt;code&amp;gt;APPOINTMENT_SIGNUP&amp;lt;/code&amp;gt;, 5 &amp;lt;code&amp;gt;APPOINTMENT_LEAVE&amp;lt;/code&amp;gt;, 6 &amp;lt;code&amp;gt;APPOINTMENT_KICK&amp;lt;/code&amp;gt;, 7 &amp;lt;code&amp;gt;APPOINTMENT_FLAG_ATTENDANCE&amp;lt;/code&amp;gt;.&lt;br /&gt;
;appointmentID : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Appointment id (8-bit). 0 when adding.&lt;br /&gt;
;guildID : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Guild id of the appointment. 0 when adding.&lt;br /&gt;
;memberID : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Character id of the member, for actions 6 and 7. 0 otherwise.&lt;br /&gt;
;startMonth, startDay, startYear, startHour, startMinute : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Start date and time in local time; &amp;lt;code&amp;gt;startHour&amp;lt;/code&amp;gt; is 0–23.&lt;br /&gt;
;startAMPM : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Not used by the client.&lt;br /&gt;
;endMonth, endDay, endYear, endHour, endMinute : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – End date and time in local time.&lt;br /&gt;
;endAMPM : &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; – Not used by the client.&lt;br /&gt;
;title : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Event name.&lt;br /&gt;
;description : &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; – Event description.&lt;br /&gt;
;shared : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to share the event with the alliance.&lt;br /&gt;
;locked : &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; – &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; to lock sign-ups.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
Nothing.&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* All 20 arguments must always be passed with the right types, even for actions that do not use them. The stock UI passes 0, &amp;lt;code&amp;gt;L&amp;quot;&amp;quot;&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; as fillers.&lt;br /&gt;
* Actions 1 and 2 send the appointment with its start and end times, title, description and the two flags. The dates are converted to raw times using the computer&amp;#039;s local time zone.&lt;br /&gt;
* Action 3 deletes the appointment. Actions 4 and 5 sign the player up or remove the player. Actions 6 and 7 act on the member given by &amp;lt;code&amp;gt;memberID&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Any other &amp;lt;code&amp;gt;action&amp;lt;/code&amp;gt; value, such as the stock UI&amp;#039;s &amp;lt;code&amp;gt;APPOINTMENT_VIEW&amp;lt;/code&amp;gt; (8), sends nothing.&lt;br /&gt;
* The client copies the title into a 30-character buffer and the description into a 100-character buffer.&lt;br /&gt;
* If there is no player object, or the Lua state is not available, nothing happens.&lt;br /&gt;
* The function needs at least 20 arguments and only reads the last 20. &amp;lt;code&amp;gt;shared&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;locked&amp;lt;/code&amp;gt; must be real booleans.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None besides the generic &amp;#039;&amp;#039;Invalid Parameters&amp;#039;&amp;#039; message when an argument has the wrong type.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
Signing up for the selected appointment, from &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildwindowtabcalendar.lua&amp;lt;/code&amp;gt; (the remaining arguments are fillers):&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendGuildAppointmentData(&lt;br /&gt;
    GuildWindowTabCalendar.APPOINTMENT_SIGNUP,                          -- Param 0&lt;br /&gt;
    GuildWindowTabCalendar.appointmentListData[index].appointmentID,    -- Param 1&lt;br /&gt;
    GuildWindowTabCalendar.appointmentListData[index].guildID,          -- Param 2&lt;br /&gt;
    0,      -- Param 3&lt;br /&gt;
    0,      -- Param 4&lt;br /&gt;
    ...&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Creating or editing an appointment, from the same file:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
SendGuildAppointmentData(&lt;br /&gt;
    GuildWindowTabCalendar.Appointment_Mode,                -- Param 0&lt;br /&gt;
    appointmentID,  -- Param 1  AppointmentID&lt;br /&gt;
    guildID,        -- Param 2  GuildID&lt;br /&gt;
    0,              -- Param 3  MemberID&lt;br /&gt;
    ComboBoxGetSelectedMenuItem(&amp;quot;GWCalendarNewAppointmentStartTimeMonthComboBox&amp;quot;),     -- Param 4 Start Month&lt;br /&gt;
    ...&lt;br /&gt;
    GWCalendarNewAppointmentEventNameEditBox.Text,                                     -- Param 16 The name of the event&lt;br /&gt;
    GWCalendarNewAppointmentDescriptionEditBox.Text,                                   -- Param 17 Event Description&lt;br /&gt;
    ButtonGetPressedFlag(&amp;quot;GWCalendarNewAppointmentShareCheckBox&amp;quot;),                     -- Param 18 True if event is shared with alliances&lt;br /&gt;
    ButtonGetPressedFlag(&amp;quot;GWCalendarNewAppointmentLockSignupCheckBox&amp;quot;)                 -- Param 19 True if signups are locked&lt;br /&gt;
)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetGuildAppointmentData|GetGuildAppointmentData]]&lt;br /&gt;
* [[API:GetGuildSignupData|GetGuildSignupData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>