Jump to content
  • 0
Ylen X Walker

Item search with Item Link Help

Question

Good day sir / mam, what else am I missing in the code? Item link prints unknown item

-	script	itemdescs	-1,{
end;

OnInit:
	bindatcmd "ii2",strnpcinfo(3)+"::OnAtcommand";
	bindatcmd "itemdescription",strnpcinfo(3)+"::OnAtcommand";
	end;
	
OnAtcommand:
	mes "^3355FF[ Item Description Search ]^000000";
	mes "What item are you looking for?";
	input [email protected]$;
	[email protected] = searchitem([email protected][0],[email protected]$);
	mes "I found " + [email protected] + " items:";
	for ([email protected] = 0; [email protected] < [email protected]; [email protected]++)
		// Display name (eg: "Apple[0]")
		mes  "<ITEM>"+getitemname([email protected][[email protected]]) +"<INFO>"[email protected]$+"</INFO></ITEM> [" + getitemslots([email protected][[email protected]]) + "]";
	end;

}

image.png.53ba659271454e1de73a176077c97152.png

 

-- This is not my original code. Code came from sir Nova. CTTO.

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0
mes  "<ITEM>"+getitemname([email protected][[email protected]]) +"<INFO>"[email protected]$+"</INFO></ITEM> [" + getitemslots([email protected][[email protected]]) + "]";

change into

mes  "<ITEM>"[email protected][[email protected]]+"<INFO>"+getitemname([email protected][[email protected]])+" [" + getitemslots([email protected][[email protected]]) + "]</INFO></ITEM>";

 

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.