Ylen X Walker Posted July 23, 2020 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 [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; } -- 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 Share Posted July 23, 2020 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>"; Quote Link to comment Share on other sites More sharing options...
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