<?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%3AGetGuildAppointmentData</id>
	<title>API:GetGuildAppointmentData - 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%3AGetGuildAppointmentData"/>
	<link rel="alternate" type="text/html" href="https://wiki.returnofreckoning.com/index.php?title=API:GetGuildAppointmentData&amp;action=history"/>
	<updated>2026-10-17T17:54:12Z</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:GetGuildAppointmentData&amp;diff=30394&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:GetGuildAppointmentData&amp;diff=30394&amp;oldid=prev"/>
		<updated>2026-10-16T19:43:51Z</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;
Returns the events (appointments) in the guild calendar.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
appointments = GetGuildAppointmentData()&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Arguments ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
;appointments : &amp;lt;code&amp;gt;table&amp;lt;/code&amp;gt; – Array of appointment tables, indexed from 1. Empty if there are none.&lt;br /&gt;
&lt;br /&gt;
Each appointment table has these fields:&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
! Key !! Type !! Meaning&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;appointmentID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Appointment id, 0–255.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;guildID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Id of the guild that owns the appointment.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;creatorID&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Character id of the member who created it.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;bIsPlayersEvent&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if &amp;lt;code&amp;gt;creatorID&amp;lt;/code&amp;gt; is the player&amp;#039;s own character.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;startTime&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Start as a raw time value.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;startMonth&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Start month, 1–12.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;startDay&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Start day of the month.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;startYear&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Start year.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;startHour&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Start hour, 0–23.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;startMinute&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Start minute.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;endTime&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;endMonth&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;endDay&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;endYear&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;endHour&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;endMinute&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || The same for the end of the appointment.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;summary&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Event name. The stock UI stores it as &amp;lt;code&amp;gt;subject&amp;lt;/code&amp;gt;.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;details&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;wstring&amp;lt;/code&amp;gt; || Event description.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;locked&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if sign-ups are locked.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;shared&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;boolean&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt; if the event is shared with the alliance.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;lt;code&amp;gt;localPlayerSignedUp&amp;lt;/code&amp;gt; || &amp;lt;code&amp;gt;number&amp;lt;/code&amp;gt; || Only present when the player is on the sign-up list; holds the player&amp;#039;s sign-up status value.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Details ==&lt;br /&gt;
* The calendar fields are computed from the raw times in the computer&amp;#039;s local time zone.&lt;br /&gt;
* &amp;lt;code&amp;gt;summary&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;details&amp;lt;/code&amp;gt; are passed through the profanity filter when it is enabled.&lt;br /&gt;
* If there is no player object, or the Lua state is not available, the function returns nothing.&lt;br /&gt;
* Use [[API:GetGuildSignupData|GetGuildSignupData]] for the members signed up to one appointment.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
None.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
From &amp;lt;code&amp;gt;default/ea_guildwindow/source/guildwindowtabcalendar.lua&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
local guildAppointmentData = GetGuildAppointmentData()&lt;br /&gt;
&lt;br /&gt;
if( guildAppointmentData == nil ) then&lt;br /&gt;
    DEBUG(L&amp;quot;guildAppointmentData == nil&amp;quot;)&lt;br /&gt;
    return&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
for key, value in ipairs( guildAppointmentData ) do&lt;br /&gt;
    ...&lt;br /&gt;
    GuildWindowTabCalendar.appointmentListData[key].appointmentID   = value.appointmentID&lt;br /&gt;
    GuildWindowTabCalendar.appointmentListData[key].guildID         = value.guildID&lt;br /&gt;
    ...&lt;br /&gt;
    GuildWindowTabCalendar.appointmentListData[key].subject         = value.summary&lt;br /&gt;
    GuildWindowTabCalendar.appointmentListData[key].details         = value.details&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[API:GetGuildSignupData|GetGuildSignupData]]&lt;br /&gt;
* [[API:SendGuildAppointmentData|SendGuildAppointmentData]]&lt;/div&gt;</summary>
		<author><name>Maintenance script</name></author>
	</entry>
</feed>