Video Demonstration
Note: errors regarding opcode 159 are not related to this module.
OTClient game_store module source
A pull request to the main repo is pending. Right now you can find this module with the corresponding client at:
How to test
Clone, compile and run these repositories:
If you want to download icons then open up Chrome and go to http://static.tibia.com Then:
Pull requests of bug fixes, new features, improvements and issues at Github are welcome.
Note
Posts requesting help with implementing it on your own server are not welcome. All needed information that is required is already in the post.
This post is meant only for educational pruposes.
Note: errors regarding opcode 159 are not related to this module.
OTClient game_store module source
A pull request to the main repo is pending. Right now you can find this module with the corresponding client at:
How to test
Clone, compile and run these repositories:
- OTClient: metabobb/otclient (https://github.com/metabobb/otclient/tree/3281723254796a8d6a08c47f8d57cf9712b06dea)
- OTXServer: metabobb/otxserver-new (https://github.com/metabobb/otxserver-new/tree/303b5ecb4138e4b77ad98ce4f448d80c648101c5)
If you want to download icons then open up Chrome and go to http://static.tibia.com Then:
- Open up console
Ctrl+Shift+J
and paste in the array with icon names available from this gist into your console and pressEnter
to execute. - Execute the script given below (this will download all icons to your downloads folder):
JavaScript:// tested on Chrome function get_download(url) { var xhr = new XMLHttpRequest() xhr.responseType = "blob"; xhr.open("GET", url , true); xhr.onreadystatechange = function () { if(xhr.readyState === 4 && xhr.status === 200) { try { window.URL.createObjectURL(xhr.response) const a = document.createElement('a') a.href = url; a.download = name; a.click() window.URL.revokeObjectURL(url) } catch(e) { console.log('download failed: ' + name); } } }; xhr.send(); } items.forEach((icon, i) => { setTimeout(get_download.bind(this, "http://static.tibia.com/images/store/64/" + icon), i*200) })
- Copy icons into the directory
/data/images/store/64/
of your OTClient.
Pull requests of bug fixes, new features, improvements and issues at Github are welcome.
Note
Posts requesting help with implementing it on your own server are not welcome. All needed information that is required is already in the post.
This post is meant only for educational pruposes.
Last edited: