dmustanger / 7dtd-ServerTools

Server tools for 7 days to die dedicated servers
189 stars 56 forks source link

Enhancement: Set trader hours within ServerTools #465

Open pharrisee opened 11 months ago

pharrisee commented 11 months ago

Possible enhancement?

Would it be possible to allow setting trader hours within servertools? including an option to close trader during Blood Moon regardless of hours set?

something like:

<Tool Name="Trader_Hours" _24hr="True" Open="0400" Close="2300" CloseDuringBM="True" />

if "_24hr" is set then do not check "Open" and "Close". if "_24hr" is not set then open and close accordingly. if "CloseDuringBM" is set then close trader during the period of bloodmoon regardless of whether "_24hr" is set, or whether open and close is within range.

I did have a mod created by ZipCore previously but it seems he never published it. It worked slightly differently wherein it was always 24hr apart from BM.

ObsComp commented 11 months ago

I was not aware it checks that server side. If so then I could set the 24 hour time fairly easy however I was fairly certain that gets checked client side based on what the server has sent to them when first joining. It is in the trader.xml to control their hours of operations. Can't say I have looked into this before, but I can take a peak

ObsComp commented 9 months ago

This can be control via your games xml files. Trader poi, traders in general and the entity values of the trader can all be managed by the admin. Times for opening and closing can be set with the xml. No need for servertools to do anything however staying open or closed during bloodmoon, that is a bit different. I dont think the base game has anything like that