Lone Posted April 22, 2016 Posted April 22, 2016 (edited) Hi I believe the issue will be in my case CHOP if more code is needed I can post it all just want to keep it simple. case CHOP: RS2Object tree = getObjects().closest("Tree"); if (tree != null){ tree.interact("Chop-down"); } break; As you can see it just floats over the object never interacting with it. Edited April 22, 2016 by Bradf3rd
Borrowed Posted April 22, 2016 Posted April 22, 2016 This is due to your interact string being "Chop-down", where the actual one is "Chop down". No hyphen. The interact event is failing because it can't find the "Chop-down" action, since the actual one doesn't have the hyphen. 1
Khaleesi Posted April 22, 2016 Posted April 22, 2016 Make sure to use the correct names Chop-down -> Chop down 1
Lone Posted April 22, 2016 Author Posted April 22, 2016 This is due to your interact string being "Chop-down", where the actual one is "Chop down". No hyphen. The interact event is failing because it can't find the "Chop-down" action, since the actual one doesn't have the hyphen. Make sure to use the correct names Chop-down -> Chop down Thank you both! In the guide I saw a snippet of code "stall.interact("Steal-from");" so I thought it all was like that. 1