Jump to content

Question

Posted (edited)

How do i use this? on a npc script for example

 

mes "The Item is " + <itemlink>602</itemlink> + ".";

 

then a window will pop with the items description.

 

im using 2015-11-04 client

 

* Edit *

 

so i manage to make it work but the text is always at the top

 

Capture1_zps0myp1prr.png

 

so im following this format.

		mes "<ITEM>Apple<INFO>602</INFO></ITEM>";

Edited by Hagane no Bushi

6 answers to this question

Recommended Posts

  • 0
Posted (edited)

 This function works fine for me.

function	script	itemlink	{ // getarg(0) : item id
	return "<ITEMLINK>"+getitemname(getarg(0))+"<INFO>"+getarg(0)+"</INFO></ITEMLINK>";
}

//ex: mes "Look at that "+callfunc("itemlink",512)+"! Isn't it awesome!?";

Also for those who wonder I know this functionnality works on my 2013-12-23 client but it doesn't work on my 2013-08-07 client so it's available since a date between those 2.

Edited by Kurofly
  • 0
Posted
On 6/19/2016 at 11:48 AM, iubantot said:

How do i use this? on a npc script for example

 

mes "The Item is " + <itemlink>602</itemlink> + ".";

 

then a window will pop with the items description.

 

im using 2015-11-04 client

 

* Edit *

 

so i manage to make it work but the text is always at the top

 

Capture1_zps0myp1prr.png

 

so im following this format.


		mes "<ITEM>Apple<INFO>602</INFO></ITEM>";

it's possible to use it on items, in iteminfo.lua ?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...