Thread Tools Display Modes
03-29-12, 04:25 PM   #1
Nervus86
A Defias Bandit
Join Date: Mar 2012
Posts: 3
CalendarGetEventInfo()

Hi all

this is my code...

Code:
CalendarOpenEvent(0, today[3], i) ;
			-- info of raid
			local title, description, creator, eventType, textureIndex,  weekday, month, day, year, hour, minute, calendarType , asML=CalendarGetEventInfo()
			raid[1]={
				title = title,
				description = description,
				creator = creator,
			        eventType = eventType,
				textureIndex = textureIndex,
				weekday = weekday,
				month = month,
				day = day,
				year = year,
				hour = hour,
				minute = minute,
				calendarType =calendarType,
				asML = asML
				}
			output = output .. "<raid>\n<r_info>\n"
			for k,v in pairs(raid) do
				output = output .. v.textureIndex 						
			end
v.textureIndex value is always 1 even if I put an event calendar in pvp or a raid, can you tell me why?

thanks
  Reply With Quote
03-30-12, 04:22 PM   #2
kaels
A Cyclonian
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 46
You're skipping some of the arguments passed by CalendarGetEventInfo. Your textureIndex is actually storing the argument repeatOption, if I'm counting correctly. Here's the API for CalendarGetEventInfo:
http://wowprogramming.com/docs/api/CalendarGetEventInfo
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » CalendarGetEventInfo()


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off