Swizzbeat Posted June 7, 2014 Share Posted June 7, 2014 Is it just me or does it not work what so ever? Link to comment Share on other sites More sharing options...
Extreme Scripts Posted June 7, 2014 Share Posted June 7, 2014 I've reported this since 2.14, been broken since then. 1 Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 7, 2014 Author Share Posted June 7, 2014 I've reported this since 2.14, been broken since then. How are you trying to do it? Interact with inventory item "Use" and then "Use" on entity? Link to comment Share on other sites More sharing options...
Eliot Posted June 7, 2014 Share Posted June 7, 2014 How are you trying to do it? Interact with inventory item "Use" and then "Use" on entity? Yes. You can check if an item in the inventory is selected and get what that item is, so that should help you. Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 7, 2014 Author Share Posted June 7, 2014 Yes. You can check if an item in the inventory is selected and get what that item is, so that should help you. That's exactly what I'm doing and it won't work. Whats your code? Link to comment Share on other sites More sharing options...
Nitrousek Posted June 7, 2014 Share Posted June 7, 2014 Select item, move to entity destination, rightclick if more than 1 entity on cursor, find the appropiate menu option by looping through all of them, and select it. That's what I do anyway, so I haven't noticed any problems. Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 7, 2014 Author Share Posted June 7, 2014 Select item, move to entity destination, rightclick if more than 1 entity on cursor, find the appropiate menu option by looping through all of them, and select it. That's what I do anyway, so I haven't noticed any problems. I did enough rewritting of their shit for OSB1. I'm not wasting my time doing it again when I could be doing other more important things. Link to comment Share on other sites More sharing options...
Deffiliate Posted June 7, 2014 Share Posted June 7, 2014 It's because the noun part of the interact string contains a color code 'notices the different colored "---->" (Because it's colored), so you need to account for that. Here's the string format you need to use: "<col=ff9040>ITEM_NAME<col=ffffff> -> <col=ffff>NOUN" Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 7, 2014 Author Share Posted June 7, 2014 It's because the noun part of the interact string contains a color code 'notices the different colored "---->" (Because it's colored), so you need to account for that. Here's the string format you need to use: "<col=ff9040>ITEM_NAME<col=ffffff> -> <col=ffff>NOUN" No that does not matter. Link to comment Share on other sites More sharing options...
Deffiliate Posted June 7, 2014 Share Posted June 7, 2014 No that does not matter. Always mattered in OSB1. Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 7, 2014 Author Share Posted June 7, 2014 Always mattered in OSB1. You must do it a different way than me, because I've never bothered using the full color coded string. Link to comment Share on other sites More sharing options...
Deffiliate Posted June 7, 2014 Share Posted June 7, 2014 You must do it a different way than me, because I've never bothered using the full color coded string. ah okie. Link to comment Share on other sites More sharing options...
Dreamliner Posted June 7, 2014 Share Posted June 7, 2014 (edited) .interact(null); -- will always select the first option, which is perfect if the item is selected. but this relies on OSBot's interact method which is awful. Write your own method. Edited June 7, 2014 by dreamliner Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 7, 2014 Author Share Posted June 7, 2014 .interact(null, id); What? There is no #interact(String, int) method if you're using it on an entity. Link to comment Share on other sites More sharing options...
Dreamliner Posted June 7, 2014 Share Posted June 7, 2014 What? There is no #interact(String, int) method if you're using it on an entity. jk, .interact(null); Link to comment Share on other sites More sharing options...