creationx Posted April 3, 2015 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!
Czar Posted April 3, 2015 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 ;)
creationx Posted April 3, 2015 Author 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
Wiz Khalifa Posted April 3, 2015 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