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

Lua Solved...

Status
Not open for further replies.

Archez

'
Senator
Joined
Jun 26, 2008
Messages
6,589
Solutions
1
Reaction score
70
Location
Mexico
Well I want to add pictures to the left side of the item in the shop of my OT.

Here's a picture of what I need...

picfire.jpg


So, someone can help me? :p
 
Well, i assume you fetch the itemid from the database, and then run it through either a list of itemid2name or through the items.xml to get the name.
If so i suggest that you download a set of tibia item images, and name them with the same name as the itemid (for example 1234.gif), and then when the script fetches the itemID, you can simply make the script print something like this in the picture box:

Code:
echo '<img src="http://yoursite.com/images/'.$itemid.'.gif"/>';

and it should display an image to every list item.
 
Can you be more specific :p... Im bad with SQL...

or post a pic :p please?
On folder named item_images put there the photo of the items with the number of the offert "ID" on DB
Leme explain it...
Code:
42	2	6500	100	0	0	item	100 Demonic Essences.	x100 Demonic Essencesp
Thats an item the first number "42" it's the ID of the item...
So you have to put on the folder a image with name 42 using format .JPG..
 
Status
Not open for further replies.
Back
Top