zs4yswtf Posted June 19, 2014 Share Posted June 19, 2014 (edited) Entity anvil = closestObjectForName("Anvil"); inv.interactWithId(STEEL_BAR, "Use"); sleep(random(600, 700)); anvil.interact("Use"); sleep(random(600, 700)); Snippet from my code, any idea why it hovers over then anvil instead of using it? Edited June 19, 2014 by zs4yswtf Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 19, 2014 Share Posted June 19, 2014 Are you scripting for OSB2? Link to comment Share on other sites More sharing options...
zs4yswtf Posted June 19, 2014 Author Share Posted June 19, 2014 I'm using 1.8.15 for this script. Link to comment Share on other sites More sharing options...
Swizzbeat Posted June 19, 2014 Share Posted June 19, 2014 I'm using 1.8.15 for this script. I wouldn't bother with scripting for the OSB1 bot anymore. OSB2 comes out tomorrow and OSB1 support will be ceased. The OSB2 API can be found here. Link to comment Share on other sites More sharing options...
Extreme Scripts Posted June 19, 2014 Share Posted June 19, 2014 If you want to continue using with OSBot 1 then due to the nouns having colours it wouldn't match the interaction string so set the interaction for "Anvil" entity to "null". Finished code should be: Anvil.interact(null); 1 Link to comment Share on other sites More sharing options...
Joseph Posted June 21, 2014 Share Posted June 21, 2014 (edited) If you want to continue using with OSBot 1 then due to the nouns having colours it wouldn't match the interaction string so set the interaction for "Anvil" entity to "null". Finished code should be: Anvil.interact(null); couldnt you do Anvil.interact(); i mean the argument for an interact method is a String... so it would accept nothing as the argument, and will still be considered null. I have tested it out, its just a theory Edited June 21, 2014 by josedpay Link to comment Share on other sites More sharing options...