some compat
minor revert
minor fix, thanks to @ReyAleman
minor
small revert, thanks to @ninjalulz
Added functions from https://github.com/otland/forgottenserver/commit/1ec9a4c45de37b596b2ebaebbec8ab8f90333aa9
Merge pull request #1257 from EPuncker/master

some of #916