Learwolf / TES3MP-0.8-Scripts

A list of my tes3mp server Lua scripts available for public use.
13 stars 5 forks source link

Cell reset timer not nil #7

Open jacobMschiller opened 2 years ago

jacobMschiller commented 2 years ago

Thanks for your awesome script! I'm still a coding noob and am trying to understand the code better. On my server, I would like for merchants to restock ingredients.

  1. I set interiorCellResetTime to 5 (seconds)
  2. I set merchantDayRestock to 0 (days)
  3. I see that the function is running for OnPlayerCellChange
  4. But if cellResetTimers[cellDescription] == nil is always false.

Thus, the cell never fully resets. Is this a mistake on my part, or is there perhaps a bug in the code?