Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Miscellaneous => Topic started by: Krang Stonehoof on May 10, 2016, 10:22:36 am

Title: [Question] - Item Gossip Image.
Post by: Krang Stonehoof on May 10, 2016, 10:22:36 am
Greetings,

There's an item http://www.wowhead.com/item=11108/faded-photograph (http://www.wowhead.com/item=11108/faded-photograph" onclick="window.open(this.href);return false;) that on it's gossip there's an image. Anyone have any idea where that's handled?

Thanks
Title: Re: [Question] - Item Gossip Image.
Post by: Steff on May 10, 2016, 10:46:17 am
Wow supports as fare I know a very basic html syntax.
It is so with the news box.

Just have a look at the database and search the text entry. There you can see how they access the image.
BLPs can be referenced in this html like normal images direct from patch with relativ path.
Title: Re: [Question] - Item Gossip Image.
Post by: Amaroth on May 10, 2016, 11:37:30 am
Code: [Select]
<HTML>
<BODY>
<BR/>
<BR/>
<P>
In memory of my dear mentor, Horatio M. Montgomery, M.D. Healer, Teacher, Friend.
</P>
<BR/>
<H1 align="center">
50 BTFT - 25 ATFT
</H1>
<BR/>
<P>
"The world is full of the sick and weary. It is our job, as healers, NAY, as men and women of medicine, to cleanse them ALL of the 'itis.'"
</P>
<BR/>
<P>
- H.M.M., M.D., PhD, JD, Grandmaster Farmer, Dancer Extraordinaire, Friend to the Animals
</P>
<BR/>
</BODY>
</HTML>
Just a quick example. Check page_text table, which is being referred from item's item_template

EDIT: Or more suitable example for your particular problem here:
Code: [Select]
<HTML>
<BODY>
<IMG src="InterfacePictures9330_Gammerita_sepia_256"/>
</BODY>
</HTML>