Loot image

Need help with an engine or coding not on the list? Need help with a game or the website and forums here? Direct all questions here.
Post Reply
Andrew
Posts: 16
Joined: Mon Aug 15, 2011 12:57 pm

Loot image

Post 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
ConceptDestiny
Posts: 261
Joined: Wed Apr 28, 2010 8:35 am

Re: Loot image

Post 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'>
User avatar
Jackolantern
Posts: 10891
Joined: Wed Jul 01, 2009 11:00 pm

Re: Loot image

Post 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.
The indelible lord of tl;dr
Post Reply

Return to “Advanced Help and Support”