creationx Posted April 3, 2015 Share Posted April 3, 2015 So say I wanted to use a bucket of water with Drezel, what would be the code to find the bucket in the inventory, click it, and then use it on Drezel? I am really new at coding and would appreciate help! Thank you! Quote Link to comment Share on other sites More sharing options...
Czar Posted April 3, 2015 Share Posted April 3, 2015 if (getInventory().isItemSelected()) { npc.interact("use"); } else { getInventory().interact("Use", "item name"); } Excuse the horrible code format and overall code, this is just the idea ;) Quote Link to comment Share on other sites More sharing options...
creationx Posted April 3, 2015 Author Share Posted April 3, 2015 Thanks Czar! Your range script is doing great work by the way Got me 70+ range on two accounts! I will come back if I have more issues with script. 1 Quote Link to comment Share on other sites More sharing options...
Wiz Khalifa Posted April 3, 2015 Share Posted April 3, 2015 if (getInventory().isItemSelected()) { npc.interact("use"); } else { getInventory().interact("Use", "item name"); } Excuse the horrible code format and overall code, this is just the idea wow nice code yo Quote Link to comment Share on other sites More sharing options...