public class Dialogues extends API
bank, bot, camera, chatbox, client, colorPicker, combat, configs, depositBox, dialogues, diaries, display, doorHandler, equipment, experienceTracker, favour, grandExchange, graphicObjects, groundItems, hintArrow, inventory, keyboard, logger, logoutTab, magic, map, menu, mouse, npcs, objects, players, prayer, projectiles, quests, settings, skills, store, tabs, trade, walking, widgets, worlds
Constructor and Description |
---|
Dialogues() |
Modifier and Type | Method and Description |
---|---|
boolean |
clickContinue()
Continues dialogue with a continuation message.
|
boolean |
completeDialogue(java.lang.String... options)
Completes the current dialogue using the specified options when available.
|
boolean |
completeDialogueU(java.lang.String... options)
Completes the current dialogue using the specified options when available.
|
int |
getInterfaceId() |
boolean |
inDialogue()
Checks if there is a dialogue currently active using color.
|
void |
initializeModule() |
boolean |
isPendingContinuation()
Determines whether the game is pending on a "to continue."
|
boolean |
isPendingOption()
Checks if the current dialogue has options for selection.
|
boolean |
selectOption(int choice)
Selects an option on the select an option menu in dialogues.
|
boolean |
selectOption(int choices,
int choice)
Deprecated.
|
boolean |
selectOption(java.lang.String... options)
Selects an option from the option selection menu.
|
exchangeContext, execute, getBank, getBot, getCamera, getChatbox, getClient, getColorPicker, getCombat, getConfigs, getDepositBox, getDialogues, getDiaries, getDisplay, getDoorHandler, getEquipment, getExperienceTracker, getFavour, getGrandExchange, getGraphicObjects, getGroundItems, getHintArrow, getInventory, getKeyboard, getLogoutTab, getMagic, getMap, getMenuAPI, getMouse, getNpcs, getObjects, getPlayers, getPrayer, getProjectiles, getQuests, getSettings, getSkills, getStore, getTabs, getTrade, getWalking, getWidgets, getWorlds, gRandom, gRandom, gRandom, initializeContext, log, log, myPlayer, myPosition, random, random, sleep, stripFormatting, warn
public int getInterfaceId()
public boolean clickContinue()
public boolean isPendingContinuation()
public boolean inDialogue()
public boolean isPendingOption()
@Deprecated public boolean selectOption(int choices, int choice)
choices
- he amount of choices in the option selection dialoguechoice
- The choice you wish to select. 1 is the first option.public boolean selectOption(int choice)
choice
- The index of the choice. 1 is the first option.public boolean selectOption(java.lang.String... options)
options
- The options to choose if available.public boolean completeDialogueU(java.lang.String... options)
WARNING - This method loops until either the player is not in a dialogue, the "Select an Option" menu does not contain any of the specified options, or an option selection event failed.
options
- The options to choose while completing the dialogue.public boolean completeDialogue(java.lang.String... options) throws java.lang.InterruptedException
WARNING - This method loops until either the player is not in a dialogue, the "Select an Option" menu does not contain any of the specified options, or an option selection event failed.
options
- The options to choose while completing the dialogue.java.lang.InterruptedException
- Thrown when interrupted during executionpublic void initializeModule()
initializeModule
in class API