Page 1 of 1

Loot image

Posted: Sun Aug 21, 2011 9:17 am
by Andrew
Hey, I just wondering how it's possible to add Loot image?, I've done some images for this purpose but I'm wondering how I can set that for example: Orc tooth = a Orc tooth image etc.

So if a orctooth drop, I want it to show text that says You found an orc tooth etc. and show the picture of it.


Also how can I add pictures like: Healing potion = a healing potion picture. and when I don't have it in my bag anymore it will disapear.

Backpack:

Healing pot. [Image] but just for healing potion.
Mana Pot.
Orc Tooth

I know I'm dumb, but I just want you to understand what I really mean from the beginning.


,Andreas

Re: Loot image

Posted: Sun Aug 21, 2011 11:58 am
by ConceptDestiny
Best way would be to name the image relative to the item's id in the database, and in the code have:

Code: Select all

<img src='images/items/".$itemid.".gif'>

Re: Loot image

Posted: Tue Aug 23, 2011 1:51 am
by Jackolantern
I am taking a stab in the dark here, but do you mean a tooltip image, where when you mouse-over the text of the item, it will pop up a small floating window with an image and some additional text (like so many high-end PBBGs love to have)? If so, there are some nice tooltips I can suggest that will make it much easier to do. However, I think you may just be referring to regular images and how you would dynamically pull them up with the item.