Sync guild message with calendar
Is there any project, addon ready or someone who is able to create (if not very difficult) an "addon" to change the guild message of the day according to the nearest event which is scheduled on the calendar?
example: Today to 13:00 is scheduled on the calendar an event called RBG's Blue. And so I log into the game, the addon finds that this is the event next event will happen and change the guild message of the day to: "Attention, please visit the guild calendar and register for the event "%e" what will happen "%d" to "%t". "%e" would be the event "%d" would be the day "%t" would be the time of the event Soon the guild message of the day would be: "Attention, please visit the guild calendar and register for the event "RBG's Blue" is going to happen "Today" to "13:00". It would be possible to make an addon like that? |
Quote:
So wait for someone else :-) |
Sounds feasible.
The next question however is whether it would be a guild master/level 2/based on motd changeability level restricted. So, if you weren't able to change the motd currently in essence you shouldn't be able to change it programmatically. I am sure that the addon functions for said changes would refuse to work anyway under those circumstances. I'll take a look though. I'm guild master in a somewhat dead guild at present so can have plenty of fun testing that stuff out for ya. Unless of course someone else has already started work on this ? |
Any news on this "project" friends?
|
I had a dabble with it last night for a few hours but the OpenCalendar function doesn't always work. I'm trying to remember what I did before when I was playing with the calendar stuff but it was getting way too late last night to do anything more.
Tonight is my last night to dabble before my weekend break so I will see if I can at least have it consistently register something before I head to bed tonight. I hope .. already 11pm here so running low on time. |
thank you my friend, will be very helpful to me.
|
Okay, 2am time for bed rofl ..
Here's an old thread ( 2 years old I believe ) that showed some form of calendar functionality that i got working with glitches that wasn't guild specific. I may have to take a look through that again in case the guild specific side is still not 100% but will have to see. http://www.wowinterface.com/forums/s...9&postcount=21 However, I did get my current mini addon working the way as expected, but only once. I have no idea how it happened and how to get it to replicate it. |
then that means you can not create something similar to what I mentioned?
Excuse my lack of knowledge, but I do not know anything about programming. :) |
So far I have been unsuccessful in getting it to always appear with something that is on the calendar. It could be that there simply is not enough information for addons to access the calendar successfully or simple that it will take more than a few hours to get working. Sometimes the simplest task can be the most complicated to achieve.
Maybe someone else will be able to spot something I overlooked but seeing as I am hitting a similar brick wall as I did 2 years ago makes me wonder if it simply isn't possible to get to that information via an addon. |
The in-game calendar is just an addon. If it can access information, then an addon can access the same information. If nobody has figured this out by the weekend I'll look into it, time permitting.
|
Thanks Phanx,
It annoyed the hell out of me the last time I tried to get information out. It works fine if you manually click the calendar event open but if you use the OpenCalendar and OpenEvent functions it doesn't seem to be consistent. This information on wowprogramming is what worries me of whether it is possible to automatically consistently open and read event information. Quote:
Quote:
The following is the code I was using for my tests. The CALENDAR_UPDATE_GUILD_EVENTS event triggers occasionally when you first log in but seemingly never on reload. It always recognised how many events there were but would never get any information from them. Lua Code:
|
Friend, I used this code but its not had much success in changing the guild message of the day.
|
Yeah thats the problem. It should work but it doesn't as the events don't trigger. It's not set to change the message yet but should print a message at the point it would change the motd text. I've not got much time this week to dabble with it but I will try my other theory when I get home tonight if I'm not too late.
|
Okay, found a function in the wow files that I didn't see in wowprogramming and must have missed from wowpedia, and it all seems to work apart from your main requirement ... updating the MotD text automatically. Here's the code anyway. Hopefully Phanx can see what is wrong.
Lua Code:
CALENDAR_UPDATE_EVENT_LIST is triggered everytime you reload the UI and CALENDAR_UPDATE_GUILD_EVENTS is triggered when you first log in and when new guild events are added. |
Quote:
|
Quote:
But, I also forgot to use the Event List event as I was expecting to need a guild specific one to get just guild details but apparently not. This was what was stopping it from working all the time. *slaps head again* I'll use the excuse I was doing this after 12 hr work days and very little sleep .. rofl. |
My friend, now seems to be working perfectly, so I enter the game or reload the screen, displays the list of events that week, and the guild message of the day is changed.
But I do not know if I'm using the wrong way, but the message of the guild is always changed and is no message. I change it? |
Quote:
|
Cool, thanks P3lim
|
friend,
I used the codes you sent but do not know what is acontecento it does not work with me whenever I enter the game it changes the guild message of the day and leave it blank, is there anything I should change? |
All times are GMT -6. The time now is 01:43 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI