Isolate Posted May 18, 2014 Share Posted May 18, 2014 ok, so i want to use an item on this object/entity. so i select the item, all g, mouse moves to thing it should use it on then spazes out like there's no tomorrow. i even tried to use, mouseClick and the location of the entity/object but it refuses to click on it. using NPC,Object,Item debuggers show nothing for this object. only the entity debugger gives me a big ID. using the string name or ID as Entity z = closestObjectForName/ID(Name/ID); z.interact("Use").... mouse selects item, goes to the entity and does nothing... halppp.... Link to comment Share on other sites More sharing options...
Deffiliate Posted May 18, 2014 Share Posted May 18, 2014 (edited) The reason you're having a problem is because the noun in the menu actually contains the arrow (->) as well. So you will have to account for that. To tackle this, you need to interact with the object using a noun that accoutns for the arrow. Here's an example: closestObject(objectId).interact("Use", "<col=ff9040>Selected item name<col=ffffff> -> <col=ffff>Object name"boolean forceLeftClick, int walkDistanceThreshold, boolean isWalkingAllowed, boolean turnCamera); Edited May 18, 2014 by Deffiliate 2 Link to comment Share on other sites More sharing options...
Isolate Posted May 18, 2014 Author Share Posted May 18, 2014 @Deffiliate Works <3 <3 1 Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 18, 2014 Share Posted May 18, 2014 ok, so i want to use an item on this object/entity.so i select the item, all g, mouse moves to thing it should use it onthen spazes out like there's no tomorrow.i even tried to use, mouseClick and the location of the entity/object but it refuses to click on it.using NPC,Object,Item debuggers show nothing for this object.only the entity debugger gives me a big ID.using the string name or ID as Entity z = closestObjectForName/ID(Name/ID); z.interact("Use")....mouse selects item, goes to the entity and does nothing...halppp.... If your using an item on an object just set the interaction string to null, that way you won't have to account for nouns. Link to comment Share on other sites More sharing options...
Deffiliate Posted May 18, 2014 Share Posted May 18, 2014 If your using an item on an object just set the interaction string to null, that way you won't have to account for nouns. You could, but this would cause more mis-clicks since it won't check that the verb/noun is there. Link to comment Share on other sites More sharing options...
Extreme Scripts Posted May 18, 2014 Share Posted May 18, 2014 You could, but this would cause more mis-clicks since it won't check that the verb/noun is there. True. Link to comment Share on other sites More sharing options...