WowLegacyCore / HermesProxy

A World of Warcraft connection Proxy for VMaNGOS & CMaNGOS.
GNU General Public License v3.0
311 stars 99 forks source link

Auto-sell junk when clicking on a vendor sometimes forces logout. #203

Open NiceLikeTryce opened 1 year ago

NiceLikeTryce commented 1 year ago

Describe the bug Auto-sell junk when clicking on a vendor sometimes forces logout. (using any* auto-sell addon)

Game Server Everlook

Hermes Proxy Version Version 2022-12-04 official 3.6.0

NiceLikeTryce commented 1 year ago

updated

happens with any auto-sell addon

sh3ppard commented 1 year ago

It causes probably because those addons sell it so fast.

Voidheart commented 1 year ago

This issue is due to Latency calculations, if you flood the server too quickly with selling items it will disconnect you. I use Dejunk for all my auto-sell it works great and calculates Latency. It may differ you may have to edit the code yourself to increase the latency calculations but other than it works great.

If you happen to try Dejunk and want to edit the .lua code yourself to hotfix it you can use what my edit.

Dejunk/src/core.lua Version: 9.1.2

function Core:OnUpdate(elapsed)
  interval = interval + elapsed
  if (interval >= DELAY) then -- Update latency
    interval = 0
    home, world = select(3, GetNetStats())
    latency = max(home, world) * 0.001 -- convert to seconds
    self.MinDelay = max(latency, 0.25) -- EDIT: original is 0.15 seconds min
  end
NiceLikeTryce commented 1 year ago

Can't find a working version of that addon. Also that core file doesn't exist.