Jump to content
  • 0

Item link


iubantot

Question


  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

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
Link to comment
Share on other sites

6 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  31
  • Topics Per Day:  0.01
  • Content Count:  283
  • Reputation:   31
  • Joined:  07/08/14
  • Last Seen:  

 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
Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  24
  • Topics Per Day:  0.01
  • Content Count:  206
  • Reputation:   11
  • Joined:  12/06/11
  • Last Seen:  

Client above 2015-11-04 won't work.
Try lower client it will work.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  117
  • Topics Per Day:  0.03
  • Content Count:  312
  • Reputation:   34
  • Joined:  10/15/12
  • Last Seen:  

Client above 2015-11-04 won't work.

Try lower client it will work.

is 2015-10-29 stable? or what other clients can i use and where do i get them

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  19
  • Topics Per Day:  0.00
  • Content Count:  192
  • Reputation:   43
  • Joined:  12/13/11
  • Last Seen:  

Upon my tests, it usualy worked as long as the name isn't too long and used seperately on one line only.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

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 ?

Link to comment
Share on other sites

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.

×
×
  • Create New...