Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enhancement: Set trader hours within ServerTools #465

Open
pharrisee opened this issue Aug 12, 2023 · 2 comments
Open

Enhancement: Set trader hours within ServerTools #465

pharrisee opened this issue Aug 12, 2023 · 2 comments

Comments

@pharrisee
Copy link

pharrisee commented Aug 12, 2023

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
Copy link
Collaborator

ObsComp commented Aug 13, 2023

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
Copy link
Collaborator

ObsComp commented Oct 4, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants