Jump to content
  • 0

Making @iteminfo2/@ii2 clickable


ItsRas

Question


  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  03/08/15
  • Last Seen:  

-	script	iteminfo2	-1,{
end;

OnInit:
	bindatcmd "ii2",strnpcinfo(3)+"::OnAtcommand";
	bindatcmd "iteminfo2",strnpcinfo(3)+"::OnAtcommand";
	end;
	
OnAtcommand:
.@item$ = "";
for (.@i = 0; .@i < .@atcmd_numparameters; .@i++) {
  if (.@i != 0)
    .@item$ += " ";
  .@item$ += .@atcmd_parameters$[.@i];
}
dispbottom "<ITEMLINK>"+getitemname(.@item$)+"<INFO>"+.@item$ +"</INFO></ITEMLINK>";
}

Hello everyone,

I need help on my script, I can't make to work this script ingame. I tested it but the item won't link.

 

I am trying to make something like this. Thank you in advance.

unknown.png

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

  • Group:  Developer
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  2407
  • Reputation:   613
  • Joined:  07/05/12
  • Last Seen:  

You need, for example,

 

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  10
  • Topics Per Day:  0.00
  • Content Count:  30
  • Reputation:   0
  • Joined:  03/08/15
  • Last Seen:  

16 hours ago, Capuche said:

You need, for example,

 

Thanks for the reply, Capuche!

I've followed the instructions and tested this but this give me this warning not sure what exactly what this mean.

image.png.cd357087bc7d725b604f8ff9059a4eb7.png

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