Use this PR. Easy since its included in rAthena. https://github.com/rathena/rathena/pull/5731