Modcraft - The community dedicated to quality WoW modding!

Wrath of the Lich King Modding => Serverside Modding => Topic started by: monoman on June 15, 2014, 09:45:14 pm

Title: [SOLVED] [QUESTION] How to add a picture to a text in game
Post by: monoman on June 15, 2014, 09:45:14 pm
Hi i was wondering how to add a picture to a text ingame, i have seen text with images but so far im unable to do it myself.


I have used this item as reference: 14679- Of love and Family
[attachment=0:1tchmcry]WoWScrnShot_061514_152616.jpg[/attachment:1tchmcry]

It's page text: 2351 has this code

Quote
<HTML> <BODY> <IMG src="InterfacePictures14679_Tirion_256"/> </BODY> </HTML>

I made a new image to put in the interfacepictures folder, a new page text replacing ofcourse the line with the new file name and adding the page to a new item.

So far i've only got a blank page.

If any one has an idea of how to do this  i would be deeply thankfull for any directions you could give me.
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: Alastor on June 15, 2014, 10:23:08 pm
i know only how to post BLP in chat ... thats alll
ima afraid its not helpfull ... :?
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: Shelldon on June 16, 2014, 10:35:43 am
Well, if you're talking about just add some image to a text as a part of it, then you can use this tag: |T |t
For example, you can add flower icon to your text in pagetext or gossip using this:
|TInterface\Icons\inv_misc_flower_02:32:32|t (32:32 here means size (x,y))
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: monoman on June 16, 2014, 05:37:31 pm
Quote from: "Shelldon"
Well, if you're talking about just add some image to a text as a part of it, then you can use this tag: |T |t
For example, you can add flower icon to your text in pagetext or gossip using this:
|TInterface\Icons\inv_misc_flower_02:32:32|t (32:32 here means size (x,y))

I'll try this, thank you Shelldon

Quote from: "dahaga"
i know only how to post BLP in chat ... thats alll
ima afraid its not helpfull ... :?

I would like to know how to do that anyway, so is ok if you can tell me n_n
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: monoman on June 16, 2014, 07:27:48 pm
It worked flawlessly, thank you very much Shelldon, it would be a great improvement for current story books.

If you know any other useful text edition codes I would like to learn them.

Again thank you and here is an image to celebrate your kind help

[attachment=0:aikiggzj]WoWScrnShot_061614_131403.jpg[/attachment:aikiggzj]
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: Shelldon on June 16, 2014, 07:52:55 pm
You are welcome, about text editing codes - I hope you know about |cffCOLORtext|r (|cffFF0000text here|r - example), you can use it too. Also, there are different textures of book pages in client (as in your image in 1st post), I didn't look into it too much, but I think it is not very hard to make your own one and then add it into the game client.
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: Alastor on June 17, 2014, 11:24:38 am
Its all about SCM (SendChatMessage)

Code: [Select]
/run SendChatMessage("124cff00FF00 Test01 124TInterface\OPTIONSFRAME\NvidiaLogo:128:256124t124r test02");
(http://i.imgur.com/HjtRCTb.png)
Title: Re: [QUESTION] How to add a picture to a text in game
Post by: monoman on June 26, 2014, 08:47:00 pm
Quote from: "dahaga"
Its all about SCM (SendChatMessage)

Code: [Select]
/run SendChatMessage("124cff00FF00 Test01 124TInterface\OPTIONSFRAME\NvidiaLogo:128:256124t124r test02");
(http://i.imgur.com/HjtRCTb.png)

Thank you very much Dahaga, i think i have just the way to use it n_n.

Thank you again to all for your kind and useful replies.