AlpacaLibary  1.63
A closed source C++ bot for OSRS
Chat Namespace Reference

Typedefs

typedef enum Chat::DIALOGUE_STATE DIALOGUE_STATE
 
typedef enum Chat::CHAT_TYPE CHAT_TYPE
 

Enumerations

enum  DIALOGUE_STATE {
  IDLE , CLICK_CONTINUE , SELECT_OPTION , PLEASE_WAIT ,
  ENTER_AMOUNT , LEVEL_UP , PLEASE_WAIT_TIMED
}
 
enum  CHAT_TYPE {
  GAME_MESSAGE = 0 , MOD = 1 , PUBLIC = 2 , PRIVATE = 3 ,
  ENGINE = 4 , LOGIN_LOGOUT_NOTIFICATION = 5 , PRIVATE_OUT = 6 , MOD_PRIVATE = 7 ,
  FRIENDS = 9 , FRIENDS_NOTIFICATION = 11 , TRADE_SENT = 12 , BROADCAST = 14 ,
  SNAPSHOT_FEEDBACK = 26 , EXAMINE_ITEM = 27 , EXAMINE_NPC = 28 , EXAMINE_OBJ = 29 ,
  FRIEND_NOTIFICATION = 30 , IGNORE_NOTIFICATION = 31 , AUTOTYPER = 90 , MOD_AUTOTYPER = 91 ,
  CONSOLE = 99 , TRADE_REQUEST = 101 , TRADE = 102 , CHALREQ_TRADE = 103 ,
  CHALREQ_FRIENDS = 104 , SPAM = 105 , PLAYER_RELATED = 106 , TENSEC_TIMEOUT = 107 ,
  UNKNOWN = -1
}
 

Functions

std::vector< Internal::MessageNodeGetMessages (bool Sort=true)
 
std::vector< Internal::MessageNodeGetMessages (CHAT_TYPE Type, bool Sort=true)
 
std::vector< Internal::MessageNodeGetMessages (const std::vector< CHAT_TYPE > &Type, bool Sort=true)
 
Internal::MessageNode GetLastMessage ()
 
Internal::MessageNode GetLastMessage (CHAT_TYPE Type)
 
std::vector< Interactable::WidgetGetDialogueWidgets ()
 
DIALOGUE_STATE GetDialogueState ()
 
std::vector< std::string > GetDialogueOptions ()
 
bool WaitDialogueState (std::uint32_t Duration, std::uint32_t Step, Chat::DIALOGUE_STATE State, bool Result=true)
 
bool DialogueContains (const std::string &Text)
 
bool DialogueContains (const std::vector< std::string > &Texts)
 
bool ClickContinue (bool UseKeyboard=false)
 
bool EnterAmount (std::int32_t Amount)
 
bool SelectDialogueOption (const std::string &Option, bool UseKeyboard=false)
 
bool SelectDialogueOption (const std::vector< std::string > &Options, bool UseKeyboard=false)
 

Typedef Documentation

◆ CHAT_TYPE

◆ DIALOGUE_STATE

Enumeration Type Documentation

◆ CHAT_TYPE

Enumerator
GAME_MESSAGE 

Game message

MOD 

Public chat message from a moderator

PUBLIC 

Public chat message

PRIVATE 

Private message from another player

ENGINE 
LOGIN_LOGOUT_NOTIFICATION 

Received when a friend logs in or out

PRIVATE_OUT 

Private message sent to another player

MOD_PRIVATE 

Private message received from a moderator

FRIENDS 

Clan chat message

FRIENDS_NOTIFICATION 

Message with information about the current clan chat

TRADE_SENT 

Trade request being sent

BROADCAST 

Game broadcast

SNAPSHOT_FEEDBACK 

Abuse report submitted

EXAMINE_ITEM 

Examine item message

EXAMINE_NPC 

Examine NPC message

EXAMINE_OBJ 

Examine object message

FRIEND_NOTIFICATION 

Message sent when adding a player to friends list

IGNORE_NOTIFICATION 

Message sent when adding a player to ignore list

AUTOTYPER 

Autotyper message from a player

MOD_AUTOTYPER 

Autotyper message from a moderator

CONSOLE 

Message sent typically when a setting changes

TRADE_REQUEST 

Message recieved when another sends a trade offer to the local player

TRADE 

Message recieved when completing a trade or duel

CHALREQ_TRADE 

Message received when somebody sends a duel offer

CHALREQ_FRIENDS 

Message received when another player sends a clan challenge offer

SPAM 

Filtered message

PLAYER_RELATED 
TENSEC_TIMEOUT 
UNKNOWN 

Definition at line 23 of file Chat.hpp.

◆ DIALOGUE_STATE

Enumerator
IDLE 
CLICK_CONTINUE 
SELECT_OPTION 
PLEASE_WAIT 
ENTER_AMOUNT 
LEVEL_UP 
PLEASE_WAIT_TIMED 

Definition at line 12 of file Chat.hpp.

Function Documentation

◆ ClickContinue()

bool Chat::ClickContinue ( bool  UseKeyboard = false)

◆ DialogueContains() [1/2]

bool Chat::DialogueContains ( const std::string &  Text)

◆ DialogueContains() [2/2]

bool Chat::DialogueContains ( const std::vector< std::string > &  Texts)

◆ EnterAmount()

bool Chat::EnterAmount ( std::int32_t  Amount)

◆ GetDialogueOptions()

std::vector<std::string> Chat::GetDialogueOptions ( )

◆ GetDialogueState()

DIALOGUE_STATE Chat::GetDialogueState ( )

◆ GetDialogueWidgets()

std::vector<Interactable::Widget> Chat::GetDialogueWidgets ( )

◆ GetLastMessage() [1/2]

Internal::MessageNode Chat::GetLastMessage ( )

◆ GetLastMessage() [2/2]

Internal::MessageNode Chat::GetLastMessage ( CHAT_TYPE  Type)

◆ GetMessages() [1/3]

std::vector<Internal::MessageNode> Chat::GetMessages ( bool  Sort = true)

◆ GetMessages() [2/3]

std::vector<Internal::MessageNode> Chat::GetMessages ( CHAT_TYPE  Type,
bool  Sort = true 
)

◆ GetMessages() [3/3]

std::vector<Internal::MessageNode> Chat::GetMessages ( const std::vector< CHAT_TYPE > &  Type,
bool  Sort = true 
)

◆ SelectDialogueOption() [1/2]

bool Chat::SelectDialogueOption ( const std::string &  Option,
bool  UseKeyboard = false 
)

◆ SelectDialogueOption() [2/2]

bool Chat::SelectDialogueOption ( const std::vector< std::string > &  Options,
bool  UseKeyboard = false 
)

◆ WaitDialogueState()

bool Chat::WaitDialogueState ( std::uint32_t  Duration,
std::uint32_t  Step,
Chat::DIALOGUE_STATE  State,
bool  Result = true 
)