saurav2008 Posted March 7, 2017 Posted March 7, 2017 Anyone have a snippet of taking the lamp from a genie when it spawns rather than ignoring? Thanks in advance.
Juggles Posted March 7, 2017 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
Polymorphism Posted March 7, 2017 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
saurav2008 Posted March 7, 2017 Author 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.
Ayylmao420 Posted March 7, 2017 Posted March 7, 2017 n -> n.getInteracting() != null && n.isInteracting(myPlayer()) && n.hasAction("Talk-to"); ?
Polymorphism Posted March 7, 2017 Posted March 7, 2017 40 minutes ago, Ayylmao420 said: n -> n.getInteracting() != null && n.isInteracting(myPlayer()) && n.hasAction("Dismiss") && n.getName().contains("enie"); ?
LoudPacks Posted March 7, 2017 Posted March 7, 2017 1 hour ago, Polymorphism said: Idk man you might end up interacting with a "Big Weenie" 5