Extreme Scripts Posted June 7, 2014 Posted June 7, 2014 I've reported this since 2.14, been broken since then. 1
Swizzbeat Posted June 7, 2014 Author 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?
Eliot Posted June 7, 2014 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.
Swizzbeat Posted June 7, 2014 Author 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?
Nitrousek Posted June 7, 2014 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.
Swizzbeat Posted June 7, 2014 Author 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.
Deffiliate Posted June 7, 2014 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"
Swizzbeat Posted June 7, 2014 Author 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.
Swizzbeat Posted June 7, 2014 Author 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.
Deffiliate Posted June 7, 2014 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.
Dreamliner Posted June 7, 2014 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
Swizzbeat Posted June 7, 2014 Author Posted June 7, 2014 .interact(null, id); What? There is no #interact(String, int) method if you're using it on an entity.
Dreamliner Posted June 7, 2014 Posted June 7, 2014 What? There is no #interact(String, int) method if you're using it on an entity. jk, .interact(null);