Louis T Steinhil Posted July 23, 2020 Group: Members Topic Count: 37 Topics Per Day: 0.01 Content Count: 177 Reputation: 33 Joined: 06/22/13 Last Seen: Saturday at 11:49 PM Share Posted July 23, 2020 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 .@name$; .@qty = searchitem(.@matches[0],.@name$); mes "I found " + .@qty + " items:"; for (.@i = 0; .@i < .@qty; .@i++) // Display name (eg: "Apple[0]") mes "<ITEM>"+getitemname(.@matches[.@i]) +"<INFO>"+.@name$+"</INFO></ITEM> [" + getitemslots(.@matches[.@i]) + "]"; end; } -- This is not my original code. Code came from sir Nova. CTTO. Quote Link to comment Share on other sites More sharing options...
0 Emistry Posted July 23, 2020 Group: Forum Moderator Topic Count: 93 Topics Per Day: 0.02 Content Count: 10018 Reputation: 2369 Joined: 10/28/11 Last Seen: Sunday at 05:32 PM Share Posted July 23, 2020 mes "<ITEM>"+getitemname(.@matches[.@i]) +"<INFO>"+.@name$+"</INFO></ITEM> [" + getitemslots(.@matches[.@i]) + "]"; change into mes "<ITEM>"+.@matches[.@i]+"<INFO>"+getitemname(.@matches[.@i])+" [" + getitemslots(.@matches[.@i]) + "]</INFO></ITEM>"; Quote Link to comment Share on other sites More sharing options...
Question
Louis T Steinhil
Good day sir / mam, what else am I missing in the code? Item link prints unknown item
-- 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.