• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Sprite shower as gif

Maguss

New Member
Joined
May 17, 2009
Messages
4
Reaction score
1
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:
HTML:
<img src="http://magus.otserv.com.br:8090/tibiaitem/2916.gif" /> <!-- 2916 = slain demon -->
Shows:

2916.gif



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.
Download: http://otland.net/attachment.php?attachmentid=3618&stc=1&d=1266306940

Any bug you find post here to fix. Enjoy :)
 

Attachments

Back
Top