Hello. This PHP script will allow you generate the respective image of an TibiaID. Useful for shop systems and monster/item libs, so you won't have to use a big img folder for your shared website.
It's very simple to use, and using apache's rewrite engine technic, will be like a real image link.
Example:
Shows:
Notes:
Any bug you find post here to fix. Enjoy
It's very simple to use, and using apache's rewrite engine technic, will be like a real image link.
Example:
HTML:
<img src="http://magus.otserv.com.br:8090/tibiaitem/2916.gif" /> <!-- 2916 = slain demon -->
Notes:
- 32x32 sprites that have multiple spriteIds are randomized (ex: void)
- To work you'll need to point the right path to 3 files: Tibia.spr, Tibia.dat and items.otb (tested on 8.52). Set it on index.php
- You can set the var $caching TRUE, then any loaded image will be saved in a folder to be generated fastly later.
Any bug you find post here to fix. Enjoy
Attachments
-
tibiaitem.rar1.9 KB · Views: 47 · VirusTotal