• 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!

How to add GIF Images into Shop Offer

Waller

gogo
Joined
Jun 19, 2008
Messages
770
Reaction score
14
Location
Sweden
Hiya,

I wonder how to add gif images into shop offers? When I try to add it it dosn't work.
I want it to look normal, not to like you pasted a picture. The image shall fit into the background. Understand me?

Rep+ if someone helps me.


Regards,
Waller
 
shopsystem.php
$main_content .= '<tr bgcolor="#D4C0A1"><td align="center"><img src="item_images/'.$item['id'].'.gif"></td><td><b>'.$item['name'].'</b> ('.$item['points'].' points)<br />'.$item['description'].'</td><td align="center">';
 
shopsystem.php

I want it to look normal, not to like you pasted a picture. The image shall fit into the background. Understand me?

Still dont looks normal, it still looks like you pasted a picture in there. It dosn't fit into the background eaither.
Hmm, How can I fix it? ^.-

How to get it like http://fixz.mine.nu/?subtopic=shopsystem

Regards,
Waller
 
If you have photoshop, remove the backround, the white. Then it will "fit" into the backround. Or you just do like Cykotian showed, change .jpg > .gif in shopsystem.php. Then just copy-paste images from your images/items folder and rename them.
 
Transparent:
Code:
[IMG]http://supremia.servegame.com/images/items/1992.gif[/IMG]
Not Transparent:
Code:
[IMG]http://supremia.servegame.com/images/items/1992-not.gif[/IMG]
 
lol i still cant even get a damn picture up there any ideas why? ther GIF pics and i even copyed that dudes code on the first page but i still cant get one to show up for infernal bolt 6529 and the picutre is in the items folder
 
First: Either PNG or GIF pictures can be transparent.

Second: I recommend PNG due to quality.

Third: Extract any PNG image from game by downloading this tool.

Fourth: Don't ask me anything else cause I shouldn't have even needed to tell you that. ^.^ Good day.
 
First: Either PNG or GIF pictures can be transparent.

Second: I recommend PNG due to quality.

Third: Extract any PNG image from game by downloading this tool.

Fourth: Don't ask me anything else cause I shouldn't have even needed to tell you that. ^.^ Good day.

Thanks but it's allready solved.

Btw.

First: Save all images from tibia.wikia

Second: Change "jpg" in shopsystem.php to "gif"

Third: Then just throw the images in shop image folder.

Easier way.
 
Last edited:
Thanks but it's allready solved.

Btw.

First: Save all images from tibia.wikia

Second: Change "jpg" in shop.lua to "gif"

Third: Then just throw the images in shop image folder.

Easier way.

That's pretty much what they told you to do.. :p You can alternatively copy them from tibia.wikia.com or you can do a shapshot of the item and just use photoshop to create a transparency for it.
 
Back
Top