saurav2008 Posted March 7, 2017 Share Posted March 7, 2017 Anyone have a snippet of taking the lamp from a genie when it spawns rather than ignoring? Thanks in advance. Quote Link to comment Share on other sites More sharing options...
Juggles Posted March 7, 2017 Share Posted March 7, 2017 Check if the Genie is interacting with your player, go through the dialogue. If you contain a lamp in your inventory, click it. If the widget for getting stats is visible, interact with the widget to select the skill you want 1 Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted March 7, 2017 Share Posted March 7, 2017 11 minutes ago, Juggles said: Check if the Genie is interacting with your player, go through the dialogue. If you contain a lamp in your inventory, click it. If the widget for getting stats is visible, interact with the widget to select the skill you want Pseudocode ftw. 1 Quote Link to comment Share on other sites More sharing options...
saurav2008 Posted March 7, 2017 Author Share Posted March 7, 2017 Algorithm wise isnt the issue. More because I am new to the api and its pretty rare to get a genie to debug code. Rather have someone's snippet if they are experienced and have used it many times. Quote Link to comment Share on other sites More sharing options...
Ayylmao420 Posted March 7, 2017 Share Posted March 7, 2017 n -> n.getInteracting() != null && n.isInteracting(myPlayer()) && n.hasAction("Talk-to"); ? Quote Link to comment Share on other sites More sharing options...
Polymorphism Posted March 7, 2017 Share Posted March 7, 2017 40 minutes ago, Ayylmao420 said: n -> n.getInteracting() != null && n.isInteracting(myPlayer()) && n.hasAction("Dismiss") && n.getName().contains("enie"); ? Quote Link to comment Share on other sites More sharing options...
LoudPacks Posted March 7, 2017 Share Posted March 7, 2017 1 hour ago, Polymorphism said: Idk man you might end up interacting with a "Big Weenie" 5 Quote Link to comment Share on other sites More sharing options...