12.07.2015 Views

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

Wiley-World.of.Warcraft.Programming.A.Guide.and.Reference.for.Creating.WoW.Addons

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

572 Part IV ■ <strong>Reference</strong>CalendarContextInviteRemoveRemoves an invitation from the player’s calendar or removes the player from aguild event’s signup list.CalendarContextInviteRemove([monthOffset,] day, index)Arguments:monthOffset (optional)—Month containing an event relative to the calendar’scurrently displayed month (number)-1—Month preceding the calendar’s current month0—Current month (i.e. same month as CalendarGetMonth())1—Month after the calendar’s current monthnil—Use the event selected by CalendarContextSelectEvent <strong>and</strong> ignorefurther argumentsday—Day <strong>of</strong> the month containing an event (number)index—Index <strong>of</strong> an event on the given day (from 1 to CalendarGetNumDayEvents()) (number)CalendarContextInviteStatusReturns the player’s invite status <strong>for</strong> an event.inviteStatus = CalendarContextInviteStatus([monthOffset,] day, index)Arguments:monthOffset (optional)—Month containing an event relative to the calendar’scurrently displayed month (number)-1—Month preceding the calendar’s current month0—Current month (i.e. same month as CalendarGetMonth())1—Month after the calendar’s current monthnil—Use the event selected by CalendarContextSelectEvent <strong>and</strong> ignorefurther argumentsday—Day <strong>of</strong> the month containing an event (number)index—Index <strong>of</strong> an event on the given day (from 1 to CalendarGetNumDayEvents()) (number)Returns:inviteStatus—The player’s status regarding the event (number)1—Invited2—Accepted3—Declined4—Confirmed5—Out6—St<strong>and</strong>by7—Signed up8—Not signed up1 is also used <strong>for</strong> non-invitation/non-signup events.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!