Jump to content
  • 0

Displaying Card Details in NPC link


mawjustin

Question


  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  90
  • Reputation:   34
  • Joined:  10/01/18
  • Last Seen:  

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

  • 0

  • Group:  Members
  • Topic Count:  47
  • Topics Per Day:  0.01
  • Content Count:  121
  • Reputation:   6
  • Joined:  09/26/14
  • Last Seen:  

@Royr thank you for this brother. 

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