Jump to content
  • 0
mawjustin

Displaying Card Details in NPC link

Question

Hi guys, may I ask for help regarding this matter? How do we display details (similar to right-clicking a card) of a card while the link is displayed in the npc, I'm making a custom info display of customized cards.

prontera,149,184,5	script	Helper	811,{
mes "<URL>"+getitemname(4001)+"<INFO>"+getitemname(4001)+"</INFO></URL>";
close;
}

Is there a way to do this? when I click the url in the npc, it will display the details of the item or card? (similar to viewing it in the inventory)

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 1
29 minutes ago, mawjustin said:

Hi guys, may I ask for help regarding this matter? How do we display details (similar to right-clicking a card) of a card while the link is displayed in the npc, I'm making a custom info display of customized cards.

prontera,149,184,5	script	Helper	811,{
mes "<URL>"+getitemname(4001)+"<INFO>"+getitemname(4001)+"</INFO></URL>";
close;
}

Is there a way to do this? when I click the url in the npc, it will display the details of the item or card? (similar to viewing it in the inventory)

// Functions
function	script	DispLink	{
	.@id = getarg(0);
	.@showslot = getarg(1,0);
	.@slot = getitemslots(.@id);
	return "<ITEM>"+(.@slot&&.@showslot?getitemname(.@id)+" ["+.@slot+"]":getitemname(.@id))+"<INFO>"+.@id+"</INFO></ITEM>";
}

// Scripts
prontera.gat, 146, 184, 4	script	Display Link	2_DROP_MACHINE,{
	mes "[ Display Item ]";
	mes " ";
	mes "Display Link: "+DispLink(4001);
	close;
}

This one?

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...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.