Quantcast
Download
(188 Kb)
Download
Updated: 08/07/20 03:45 AM
Patch for:
Shissu's Guild Tools.
Compatibility:
Stonethorn (6.1.5)
Greymoor (6.0.5)
Harrowstorm (5.3.4)
Dragonhold (5.2.5)
Scalebreaker (5.1.5)
Elsweyr (5.0.5)
Updated:08/07/20 03:45 AM
Created:08/14/19 05:26 AM
Monthly downloads:499
Total downloads:15,626
Favorites:21
MD5:
6.1.5
Shissu Guild Tools Stonethorn Patch V1.4.9  Popular! (More than 5000 hits)
Version: 1.4.9
by: Splat, Sordrak
PLEASE READ BEFORE INSTALLATION

For exisiting users

Due to moving to the new Tuesday 2pm UTC trader swap, upon installation of this patch, any data that is currently showing in the 'Since Kiosk' dropdown will be moved into 'Last Week' (replacing the data in 'Last Week') .

Any donations made after installation of the patch will be placed in 'Since Kiosk' until the following Tuesday trader swap when those donations will be moved to 'Last Week' and the addon will return to working as normal.

I therefore recommend that you make any promotions related to donations (based on your current 'Last Week' & 'Since Kiosk') prior to instaling this update.



I strongly advise that you first BACKUP your AddOns and SavedVariables Folders before installing.

Install this at your own risk. No warranties are offered whatsoever.

Installation:
- Download zip file to a temporary directory (or your desktop)
- Extract all files
- Copy the files to your ...\Documents\Elder Scrolls Online\live\AddOns folder replacing all exisiting shissu files

You DO NOT need any other version of Shissu Guild Tools installed to use this patch. If you are experiencing any errors then I would recommend that you remove any old version and replace it with this version and see if that resolves your issue.
1.4.9

API bump to 100032 Stonethorn.
Updated timers for trader bid to display new Tuesday 2pm UTC times.
Updated recording of 'Since Kiosk' & 'Last Week' to be based on a Tuesday 2pm UTC week.
Known Issue - Weekly data will need 1 Tuesday trader bid to have passed through the system before data recording is performing nominally.

-------

1.4.8

API bump to 100031 Greymoor
Small text change made to roster to specify total donations
Delay between mails increased in notebook module to try and reduce the amount of Social Bans hitting GM's. I would still recommend that no more than 500 mails are sent per 24 hours.

-------

1.4.7

Fix for duplicate version text being spammed into chat for some users
Change to trader timer for daylight saving change

-------

1.4.6

Fixed the duplication of the Promote & Demote options now that ZOS have come to their senses :)
Chat should now function correctly again.

-------

1.4.5

API bump
Added the promote and demote buttons back into the guild roster context menu

-------

1.4.4

Fixed the issue with the settings menu (again, for real this time)

-------

1.4.3

Changes made to reset trader bid timer to correct hours
Updated some language issues introduced in the Dragonhold DLC

-------

1.4.2

API bump for Dragonhold PTS testing
Bug fix for Dragonhold that broke the settings menu
Fix to the welcome message so it no longer outputs it twice
Fix to 'to join' so that it now displays a yellow 'to join' when an invite is sent and the player is pending in the roster and a green 'joined' once they have fully joined the guild

--------

1.4.1

Chat bug fixed, so no more %s %s %s
UI elements moved to fit with longer trader bid names for Bid History & Trader Timer

--------
Archived Files (9)
File Name
Version
Size
Uploader
Date
1.4.8
188kB
Splat
05/26/20 04:10 AM
1.4.7
188kB
Splat
03/28/20 05:48 AM
1.4.6
391kB
Splat
03/02/20 10:13 AM
1.4.5
188kB
Splat
02/24/20 09:53 AM
1.4.4
188kB
Splat
11/10/19 05:33 AM
1.4.3
188kB
Splat
11/04/19 05:52 AM
1.4.2
188kB
Splat
09/27/19 06:42 AM
1.4.1
188kB
Splat
09/10/19 04:49 AM
1.4
188kB
08/14/19 05:26 AM


Post A Reply Comment Options
Unread 09/20/20, 04:33 AM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
Originally Posted by mlq88
Where are welcome messages saved? I had to reinstall and have a backup, but cannot seem to restore them.
I have not tried to do this but that would only be in the saved vars folder. All mods use that folder. To restore those files you have to be out of the game, and you have to have backed up the files with the welcome message in the saved vars. I'm sorry I have not dug through the files I don't know specifically which one stores that.
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Report comment to moderator  
Reply With Quote
Unread 09/20/20, 04:30 AM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
Originally Posted by Kwoung
I continue to have an issue with the roll over time on the guild roster happening way to early. Is there some sort of option to adjust it or what is it based off of that would cause it to be so off? Does it query my bios time zone maybe?
I have made adjustments for the kiosk flip time based on what I had to do to MM. If you manually install my variation it should show the flip time more in line with MM.

However, when the kiosk flip happens at say 3:00PM US, the server doesn't transmit the new time for several hours. I have seen it not change for up to 4 hours after the scheduled time. So "This Week" on the guild roster or looking at the kiosk flip clock on the guild home tab will be incorrect until ZOS transmits the new time.
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Report comment to moderator  
Reply With Quote
Unread 09/12/20, 02:18 PM  
mlq88

Forum posts: 0
File comments: 31
Uploads: 0
Where are welcome messages saved? I had to reinstall and have a backup, but cannot seem to restore them.
Last edited by mlq88 : 09/12/20 at 02:18 PM.
Report comment to moderator  
Reply With Quote
Unread 09/01/20, 10:06 AM  
Kwoung

Forum posts: 0
File comments: 34
Uploads: 0
I continue to have an issue with the roll over time on the guild roster happening way to early. Is there some sort of option to adjust it or what is it based off of that would cause it to be so off? Does it query my bios time zone maybe?
Last edited by Kwoung : 09/01/20 at 11:12 AM.
Report comment to moderator  
Reply With Quote
Unread 08/11/20, 08:40 AM  
Splat
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 5
Just a quick update to say that patch 1.4.9 worked as expected. For those that installed the patch prior to the trader today (11th August 2020) any donations made since you installed the patch will now be showing in last week and any donations made since the trader swap today will be showing in 'Since Kiosk'. This happened live in game without the need for a relog.

Additionally the trader bids performed the same as on PTS, each part of the bid phase took around 1 minute to complete. For example the trader swap happened at about 55 seconds past the hour.
Report comment to moderator  
Reply With Quote
Unread 08/09/20, 04:26 AM  
Splat
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 5
If you wish to take over the updates to Shissu you are welcome to do so. THat

Originally Posted by Sharlikran
https://github.com/ESOUIMods/ShissuG...e/dev-shar.zip

I apologize Splat not trying to step on your toes I just need the practice with Trade mods. So as I mentioned I have been testing this and getting feedback from other people that had already asked for my help updating the mod. Feel free to upload this as a new version if you like.

Since I am trying to learn as much as I can about guild history requests I continue to tinker with this. I can see that for the most part the changes you are making Splat are for the GuildId and GuildName changes since that seems to be what changed with the API and that's what's different from the last official version by Shissu.

So after I saw your update I merged all the changes I could and opened every file and started scouring the code for any occurrence of GetNumGuilds(). From there I just made sure the vars were correct.

I didn't like the English translation on the Roster Page. So I changed it to This Week and Last Week.

I added Globals because of all the times that were scattered all over the place.

The Kiosk timer has been updated to use the 9 day week and then automatically use a 7 day week after the 11th.

The gold totals on the guild roster tab will be correct if you scan the guild history manually, reload your UI, and then wait about 20 minutes. It might be a good idea to backup saved vars but if you do what I mentioned the mod will pick up everything and then the totals will become more accurate.

I also added a quality of life update for those using GuildHallButton so that the button and the timer are not overlapping.

I have also updated all the version numbers and manifest files. Should be pretty thorough.

The two bugs I'm trying to resolve are the icon when you are in multiple guilds and how that shows in the chat window. The other bug seems to be when a player logs onto different characters eventually the GM should see that on the tooltip for the players account. So if I figure those out I'll let you know.
If you wish to take over the updates to Shissu you are welcome to do so. That is easy than me publishing patch updates to the old version as my time to fix things is limited.
Report comment to moderator  
Reply With Quote
Unread 08/07/20, 05:26 PM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
https://github.com/ESOUIMods/ShissuG...e/dev-shar.zip

I apologize Splat not trying to step on your toes I just need the practice with Trade mods. So as I mentioned I have been testing this and getting feedback from other people that had already asked for my help updating the mod. Feel free to upload this as a new version if you like.

Since I am trying to learn as much as I can about guild history requests I continue to tinker with this. I can see that for the most part the changes you are making Splat are for the GuildId and GuildName changes since that seems to be what changed with the API and that's what's different from the last official version by Shissu.

So after I saw your update I merged all the changes I could and opened every file and started scouring the code for any occurrence of GetNumGuilds(). From there I just made sure the vars were correct.

I didn't like the English translation on the Roster Page. So I changed it to This Week and Last Week.

I added Globals because of all the times that were scattered all over the place.

The Kiosk timer has been updated to use the 9 day week and then automatically use a 7 day week after the 11th.

The gold totals on the guild roster tab will be correct if you scan the guild history manually, reload your UI, and then wait about 20 minutes. It might be a good idea to backup saved vars but if you do what I mentioned the mod will pick up everything and then the totals will become more accurate.

I also added a quality of life update for those using GuildHallButton so that the button and the timer are not overlapping.

I have also updated all the version numbers and manifest files. Should be pretty thorough.

The two bugs I'm trying to resolve are the icon when you are in multiple guilds and how that shows in the chat window. The other bug seems to be when a player logs onto different characters eventually the GM should see that on the tooltip for the players account. So if I figure those out I'll let you know.
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Last edited by Sharlikran : 08/08/20 at 01:31 AM.
Report comment to moderator  
Reply With Quote
Unread 08/07/20, 03:46 AM  
Splat
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 5
The update to fix the traders to the new Tuesday trader swap is live (once verified).

PLEASE READ BEFORE INSTALLATION

For exisiting users

Due to moving to the new Tuesday 2pm UTC trader swap, upon installation of this patch, any data that is currently showing in the 'Since Kiosk' dropdown will be moved into 'Last Week' (replacing the data in 'Last Week') .

Any donations made after installation of the patch will be placed in 'Since Kiosk' until the following Tuesday trader swap when those donations will be moved to 'Last Week' and the addon will return to working as normal.

I therefore recommend that you make any promotions related to donations (based on your current 'Last Week' & 'Since Kiosk') prior to instaling this update.

I strongly advise that you first BACKUP your AddOns and SavedVariables Folders before installing.
Report comment to moderator  
Reply With Quote
Unread 08/04/20, 06:16 PM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
Originally Posted by Splat
The addon was developed a long time ago by someone else who is no longer in ESO, I simply maintain what there is.

Due to the way it is written atm it would take longer to add the api function in than it has done to adjust the timings, as they are used in an odd way in multiple places in the modules.
What I don't get is if it is 13:00 or 14:00 EU doesn't matter because GetGuildKioskCycleTimes() is automatic. It is Zenimax's code. The same code works for the US and EU. It will change based on what the server reports as Zenimax changes things.

Well then I guess I'll ignore the PM for help and leave you to it. I'm figuring it out for myself because my GMs asked me for help also. Plus practice makes improvement and I can defiantly use more practice with all this trader stuff anyway for things trade related.

Tale care.
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Last edited by Sharlikran : 08/05/20 at 07:58 AM.
Report comment to moderator  
Reply With Quote
Unread 08/04/20, 12:08 PM  
Splat
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 5
Originally Posted by Sharlikran
Did you use the changes for the Kiosk times I provided? I had some people test this yesterday for both pacific and eastern and the times ere accurate and adjusted for time zone.

However, as I have mentioned the rest of the code when it comes to time is jacked. Sorry for the slang. It has a calculation to adjust the current time. That routine is currently deducting 7 hours. Why would that be needed? The routine is even called "currentTime"! Well if the current time locally for me is 7PM at night why would I want the mod to deduct 7 hours which puts me at noon or 12:00 PM my time. But in the past?

Don't get me wrong I am not criticizing you. You asked me for help and I provided the Kiosk fix. I am interested in looking at the rest but it is really confusing code and will take time to analyze. I know you are picking this up because the original author has not made updates and that's great. I know many people that use it. I am sorry if the code is confusing it seems confusing to me also. So when I make comments it's directed at the code, not at you Splat.

The API has simply been updated over the last 4 years and new features are there to avoid unnecessary calculations. It's just a matter of knowing what they are. I am very new to this and only learned about the Kiosk times being provided directly from Zenimax. There are probably other features that could be updated as well.
The addon was developed a long time ago by someone else who is no longer in ESO, I simply maintain what there is.

Due to the way it is written atm it would take longer to add the api function in than it has done to adjust the timings, as they are used in an odd way in multiple places in the modules.

The test I ran on PTS today worked as expected and Gina has got back to me to confirm that the EU trader will be at 14:00 UTC on Tuesdays (not 13:00 UTC as mentioned in the support article).

I am running a further test later today and again tomorrow to check that the data is correct saved for donations on a Tuseday based week, but asssuming they both pass, the patch for Shissu should be good to go live.

I will update here once the patch is live.

@Sharlikran - I am assuming from your reply that MM is going to be showing weekly sales based on a Tuesday to Tuesday week.
Last edited by Splat : 08/04/20 at 12:10 PM.
Report comment to moderator  
Reply With Quote
Unread 08/04/20, 10:44 AM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
Originally Posted by Splat
I will add that I have been in contact with a number of GM's to discuss if it is more sensible to keep a regular week instead of, or alongside, the new Tuesday week. It is 50/50 atm with those I have discussed this with and is to some degree dependant on what other addons decide to do, especially for those guilds running a X amount of sales or X donation style quota. Implementing this is a bit of a pain atm and is hard to do and test on PTS without the correct data over the new time periods but is something I can look into once we are up and running on the new timing system.
This is you’re deal but you can't make everyone happy. It doesn’t make too much sense to have two systems. Any project if it's Skyrim, Fallout 4, Wrye Bash, LOOT, the general theme is to keep it simple. Users are not programmers and they do not see things the same way. It makes no sense to have Zenimax transmitting via their own API function that the Kiosk will flip on a Tuesday but report in a mod information from Sunday to Sunday.

Originally Posted by Splat
ATM the exact change of timings for the EU server is a bit of a mystery as the info that ZOS published contradicts itself. The new date for the trader bid will be Tuesday but its unclear if it will be 13:00 or 14:00 UTC - I have asked ZOS for clarification.
I have not witnessed this for NA or EU. Their internal API function returns exactly what they want. If they change the times then the function should automatically adjust because the server transmits the time. I am aware that it currently indicates the flip will be this Sunday on the live servers but I doubt Zenimax needs to do much to change that.

Originally Posted by Splat
I have made all neccessary changes to Shissu for it to work correctly on the new timings (currently guessing at a 14:00 UTC time) and a patch will be released once I am able to confirm the exact timing.
Did you use the changes for the Kiosk times I provided? I had some people test this yesterday for both pacific and eastern and the times ere accurate and adjusted for time zone.

However, as I have mentioned the rest of the code when it comes to time is jacked. Sorry for the slang. It has a calculation to adjust the current time. That routine is currently deducting 7 hours. Why would that be needed? The routine is even called "currentTime"! Well if the current time locally for me is 7PM at night why would I want the mod to deduct 7 hours which puts me at noon or 12:00 PM my time. But in the past?

Don't get me wrong I am not criticizing you. You asked me for help and I provided the Kiosk fix. I am interested in looking at the rest but it is really confusing code and will take time to analyze. I know you are picking this up because the original author has not made updates and that's great. I know many people that use it. I am sorry if the code is confusing it seems confusing to me also. So when I make comments it's directed at the code, not at you Splat.

The API has simply been updated over the last 4 years and new features are there to avoid unnecessary calculations. It's just a matter of knowing what they are. I am very new to this and only learned about the Kiosk times being provided directly from Zenimax. There are probably other features that could be updated as well.
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Last edited by Sharlikran : 08/04/20 at 11:51 AM.
Report comment to moderator  
Reply With Quote
Unread 08/04/20, 04:57 AM  
Splat
AddOn Author - Click to view AddOns

Forum posts: 4
File comments: 42
Uploads: 5
Ok, time for an update and a bit of clarification on a few things.

ATM the exact change of timings for the EU server is a bit of a mystery as the info that ZOS published contradicts itself. The new date for the trader bid will be Tuesday but its unclear if it will be 13:00 or 14:00 UTC - I have asked ZOS for clarification.

Despite the PTS being on an EU character copy it appears (from the current trader countdown on PTS) that they are testing the NA trader bid timings on PTS today so I am not able to test the EU and confirm anything.

We will be seeing a 9 day week this week (from the 2nd to the 11th August) so any addons using 'this week', 'weekly', 'since kiosk' etc will be incorrect by 2 days so that is worth bearing in mind wehn looking at promotions/demotions etc

I have made all neccessary changes to Shissu for it to work correctly on the new timings (currently guessing at a 14:00 UTC time) and a patch will be released once I am able to confirm the exact timing.

Once we have passed the trader bid on PTS today, and once I have a reply from ZOS on exactly whe the new timings are, I will publish the new patch. This will hopefully be before next Sunday but is dependant on testing and ZOS providing the correct info to me.

I will add that I have been in contact with a number of GM's to discuss if it is more sensible to keep a regular week instead of, or alongside, the new Tuesday week. It is 50/50 atm with those I have discussed this with and is to some degree dependant on what other addons decide to do, especially for those guilds running a X amount of sales or X donation style quota. Implementing this is a bit of a pain atm and is hard to do and test on PTS without the correct data over the new time periods but is something I can look into once we are up and running on the new timing system.
Last edited by Splat : 08/04/20 at 05:08 AM.
Report comment to moderator  
Reply With Quote
Unread 08/04/20, 03:56 AM  
age

Forum posts: 0
File comments: 12
Uploads: 0
Hi there - first off, really terrific add-on and thanks for keeping it up-to-date!

ZoS is changing the guild trader kiosk window (in case not seen, ZoS is moving the kiosk change-over to Tuesday - so kiosks won this week will continue past the usual Sunday window to Tuesday 11th; from that point the bids will close each Tuesday).

I was wondering :-

1. Do you have a plan re. how that might be addressed within the add-on, if at all? Appreciate you got no notice!!

2. If you're taking requests, it would be GREAT to have an option in the drop-downs or via a toggle to show data (e.g. donations) by either the "kiosk reset" window, or based on a calendar week (i.e. Monday to Sunday) (where you can select "last week", "since kiosk" etc). Personally, I'd much rather maintain a calendar week for my guild members, Monday 00:01 to Sunday 23:59 and I'll worry about when ZoS wants me to bid.

Appreciate it!
__________________
age.
GM, the Burnish & Gleam Trading company
Report comment to moderator  
Reply With Quote
Unread 08/04/20, 02:19 AM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
There is way more to the time management then just those two routines. This is a bit too much to work on I'm afraid. It would need quite a lot of work. So those two routines only return the proper kiosk time in seconds. So the countdown clock will be correct. Anything is anyone's guess
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Report comment to moderator  
Reply With Quote
Unread 08/03/20, 10:49 AM  
Sharlikran
 
Sharlikran's Avatar
AddOn Author - Click to view AddOns

Forum posts: 143
File comments: 798
Uploads: 9
I didn't like how MM did things but it made sense because it used the entire value from the game's internal way of managing time. It usually is not good practice to make your own time calculations and use the OS because it will account for Leap Year and Daylight Savings time and so on.

This just does too much for me to know if it will be 100% reliable. I added comments in case someone else wants to look at it. I override the calculated value with the value from the server, or Zenimax.

The current flip seems to be happening again on Sunday and no idea if they will flip things on Tuesday and have a 2 day week or extend it to have a 9 day week. Either way you don't have to adjust anything. You can pretty much ignore the last lines for when the guild store is offline because if it is then you can't request guild history anyway. So all that does is return a week in seconds so the calculations don't cause Lua errors.

What should happen is if Zenimax keeps it at Sunday then this will be correct. If they decide to change it to a 9 day week and flip on Tuesday this will also be correct as long as their server transmits the proper time to be Aug 11 19:00 UTC which is about 3pm EDT / 2pm EST according to the post.

functions.lua
Code:
-- Zeit bis zum nächsten Gildenhändler???
-- Time to the next guild trader
function _func.getKioskTime(which, additional, day)
  local hourSeconds = 60 * 60
  local daySeconds = 60 * 60 *24
  local weekSeconds = 7 * daySeconds
  local additional = additional or 0

  -- Erste Woche 1970 beginnt Donnerstag -> Verschiebung auf Gebotsende
  -- First week of 1970 begins Thursday -> postponement to end of bid
  local firstWeek = 1 + (3 * daySeconds) + (19 * hourSeconds)

  local currentTime =  _func.currentTime()

  -- Anzahl der Wochen seit 01.01.1970
  -- Number of weeks since 01/01/1970
  local week = math.floor(currentTime / weekSeconds) + additional
  local beginnKiosk = firstWeek + (weekSeconds * week) + 60 * 60

  --[[
  Rather then eliminate all of the code I will add this

  1: This fuction is not called using other parameters
  such as additional or day. If that changes this will
  not work
  2: _func.getKioskTime function gets the ammount
  of seconds remaining until the next trader flip.
  ]]--
  local _, weekCutoff = GetGuildKioskCycleTimes()
  beginnKiosk = weekCutoff

  -- Gebots Ende
  -- Bidding end
  if (which == 1) then
    beginnKiosk = beginnKiosk - 300
  -- Ersatzhändler
  -- Replacement dealer
  elseif (which == 2) then
    beginnKiosk = beginnKiosk + 300
  end

  -- Restliche Zeit in der Woche
  -- Remaining time in the week
  local restWeekTime = beginnKiosk - GetTimeStamp()

  --[[
  if (day) then
    restWeekTime = beginnKiosk
  end
  ]]--

  if restWeekTime < 0 then
    restWeekTime = 7 * 86400 -- one week if guild store is offline
  end

  return restWeekTime
end
ShissuGuildHome.lua
Code:
function _addon.getKioskTime(which)
  local hourSeconds = 60 * 60
  local daySeconds = 60 * 60 *24
  local weekSeconds = 7 * daySeconds

  -- Erste Woche 1970 beginnt Donnerstag -> Verschiebung auf Gebotsende
  -- First week 1970 beginning Thursday -> postponement to end of bid
  local firstWeek = 1 + (3 * daySeconds) + (19 * hourSeconds)

  local currentTime = _addon.currentTime()

  -- Anzahl der Wochen seit 01.01.1970
  -- Number of weeks since 01/01/1970
  local week = math.floor(currentTime / weekSeconds)
  local beginnKiosk = firstWeek + (weekSeconds * week) + 60 *60

  --[[
  Rather then eliminate all of the code I will add this

  1: This fuction is not called using other parameters
  such as additional or day. If that changes this will
  not work
  2: _addon.getKioskTime function gets the ammount
  of seconds remaining until the next trader flip.
  ]]--
  local _, weekCutoff = GetGuildKioskCycleTimes()
  beginnKiosk = weekCutoff

  -- Gebots Ende
  -- Bidding end
  if (which == 1) then
    beginnKiosk = beginnKiosk - 300
  -- Ersatzhändler
  -- Replacement dealer
  elseif (which == 2) then
    beginnKiosk = beginnKiosk + 300
  end

  -- Restliche Zeit in der Woche
  -- Remaining time in the week
  local restWeekTime = beginnKiosk - GetTimeStamp()

  if restWeekTime < 0 then
    restWeekTime = 7 * 86400 -- one week if guild store is offline
  end

  return restWeekTime
end
__________________
Admin for TES5Edit, occasional LOOT masterlist contributor, and Wrye Bash contributor. I also maintain special Fallout 3 and Fallout NV versions of Wrye Flash.
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: