April 3, 201510 yr 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!
April 3, 201510 yr 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 ;)
April 3, 201510 yr Author 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.
April 3, 201510 yr 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
Create an account or sign in to comment