comparison Modules/Collected.lua @ 1:6f17035de058

MO will now request a server refresh when mail opening has finished, ignoring the timer. (Collected Module) Fixed the time spent to only be displayed if it is being tracked. The inventory full sound will properly be played again when your bags change.
author Zerotorescue
date Sun, 05 Sep 2010 17:02:19 +0200
parents 823e33465b6e
children c6f0976069c7
comparison
equal deleted inserted replaced
0:823e33465b6e 1:6f17035de058
224 end 224 end
225 225
226 -- Did we record any mail being opened? 226 -- Did we record any mail being opened?
227 if mailOpened and mailOpened > 0 then 227 if mailOpened and mailOpened > 0 then
228 -- Time Spent 228 -- Time Spent
229 if timeSpent then 229 if timeSpent and timeSpent > 0 then
230 printMessage = printMessage .. format("Collected a total of %d mails within %d minutes and %d seconds. ", mailOpened, floor( timeSpent / 60 ), ( timeSpent % 60 )); 230 printMessage = printMessage .. format("Collected a total of %d mails within %d minutes and %d seconds. ", mailOpened, floor( timeSpent / 60 ), ( timeSpent % 60 ));
231 else 231 else
232 printMessage = printMessage .. format("Collected a total of %d mails. ", mailOpened); 232 printMessage = printMessage .. format("Collected a total of %d mails. ", mailOpened);
233 end 233 end
234 elseif timeSpent then 234 elseif timeSpent and timeSpent > 0 then
235 printMessage = printMessage .. format("Spent %d minutes and %d seconds collecting mail. ", floor( timeSpent / 60 ), ( timeSpent % 60 )); 235 printMessage = printMessage .. format("Spent %d minutes and %d seconds collecting mail. ", floor( timeSpent / 60 ), ( timeSpent % 60 ));
236 end 236 end
237 237
238 -- Did we record any items or gold being looted? 238 -- Did we record any items or gold being looted?
239 if (itemsGained and itemsGained > 0) and (earned and earned > 0) then 239 if (itemsGained and itemsGained > 0) and (earned and earned > 0) then
254 printMessage = "|cff15ff00Mail Opener|r: (Session summary) "; 254 printMessage = "|cff15ff00Mail Opener|r: (Session summary) ";
255 255
256 -- Did we record any mail being opened? 256 -- Did we record any mail being opened?
257 if sessionMailOpened and sessionMailOpened > 0 then 257 if sessionMailOpened and sessionMailOpened > 0 then
258 -- Time Spent 258 -- Time Spent
259 if sessionTimeSpent then 259 if sessionTimeSpent and sessionTimeSpent > 0 then
260 printMessage = printMessage .. format("Collected a total of %d mails within %d minutes and %d seconds this session. ", sessionMailOpened, floor( sessionTimeSpent / 60 ), ( sessionTimeSpent % 60 )); 260 printMessage = printMessage .. format("Collected a total of %d mails within %d minutes and %d seconds this session. ", sessionMailOpened, floor( sessionTimeSpent / 60 ), ( sessionTimeSpent % 60 ));
261 else 261 else
262 printMessage = printMessage .. format("Collected a total of %d mails this session. ", sessionMailOpened); 262 printMessage = printMessage .. format("Collected a total of %d mails this session. ", sessionMailOpened);
263 end 263 end
264 elseif sessionTimeSpent then 264 elseif sessionTimeSpent then