-
Notifications
You must be signed in to change notification settings - Fork 18
Global Functions
Global Functions are a collection of essential tools for interacting with the game environment. These functions provide streamlined access to player data, game objects, and other crucial aspects of the game.
get_local_player()
Note
Accesses the game object representing the local player, essential for many player-centric operations.
- Returns:
gameobject
get_local_player_name()
Note
Retrieves Character Name of Local Player.
- Returns: String
get_player_position()
Note
Retrieves the current geographical position of the local player in the game world, useful for navigation and positioning strategies.
- Returns:
vec3
get_actors_list()
Note
Gathers a comprehensive list of all active game actors, providing a broad overview of the entities present in the current game environment.
- Returns: Table of
gameobjects
get_attachments_list()
Note
Fetches a list of all game objects that are currently attached, offering insights into various game entities and their interactions.
- Returns: Table of
gameobjects
get_hash(str)
-
str
: String - The string to be hashed.
Note
Converts a given string into a hash integer, facilitating efficient data storage and retrieval operations.
- Returns: Integer
get_cursor_position()
Note
Obtains the precise position of the cursor in the game world, useful for UI interactions and in-game targeting.
- Returns:
vec3
get_gametime()
Note
Provides the current in-game time, essential for time-based events and game dynamics.
- Returns: Number
get_time_since_inject()
Note
Measures the duration since the last code injection, offering a timing benchmark for scripts and operations.
- Returns: Number
get_equipped_spell_ids()
Note
- Returns: Table of number (int) spells ids
get_name_for_spell(spell_id)
spell_id parameter is number(int)
Note
- Returns: Name of the spell sent by parameter
is_inventory_open()
Note
- Returns: Return
Boolean
of inventory open state.
get_open_inventory_bag()
State | ID |
---|---|
Not Open | -1 |
Items | 0 |
Consumables | 1 |
Note
- Returns: Return
number (int)
indicating which inventory is open.
get_key_state(key)
-
key
: Byte - The key code to check.
Note
Checks if the specified key is currently pressed down.
- Returns: Boolean
get_quests()
Note
Retrieves a table of all active quests in the game.
- Returns: Table of quests
get_hovered_item()
interact_object(object)
-
object
:gameobject
- The object to interact with.
Note
Initiates an interaction with the specified game object.
- Returns: Boolean (indicates success or failure)
interact_vendor(object)
-
object
:game.object
- The vendor object to interact with.
Note
Initiates an interaction with the specified vendor object.
- Returns:
void
get_screen_width()
Note
Retrieves the current width of the game screen in pixels.
- Returns: Number
get_screen_height()
Note
Retrieves the current height of the game screen in pixels.
- Returns: Number
get_helltide_coin_cinders()
Note
Retrieves the current count of Helltide coin cinders.
- Returns: Number
get_helltide_coin_hearts()
Note
Retrieves the current count of Helltide coin hearts.
- Returns: Number
leave_dungeon()
Note
Initiates the action to exit the current dungeon, useful for automating transitions or escaping unfavorable situations.
- Returns:
bool
(indicates success or failure)
revive_at_checkpoint()
Note
Revives the player at the nearest checkpoint.
- Returns:
void
start_game()
Note
Starts the game session.
- Returns:
void
leave_game()
Note
Leaves the current game session.
- Returns:
void
use_health_potion()
Note
Uses a health potion to restore the player's health.
- Returns:
void
reset_all_dungeons()
Note
Initiates the action to reset dungeons which also kicks you for any dungeon you are into
- Returns:
nil
teleport_to_waypoint(id)
-
id
:number
- The id of the waypoint to teleport
Note
Initiates the action to teleport to an specific waypoint
- Returns:
nil
Tip
Waypoints ID Enum
local waypoints_enum = {
GEA_KUL = 0xB66AB,
IRON_WOLVES_ENCAMPMENT = 0xDEAFC,
IMPERIAL_LIBRARY = 0x10D63D,
DENSHAR = 0x8AF45,
TARSARAK = 0x8C7B7,
ZARBINZET = 0xA46E5,
JIRANDAI = 0x462E2,
ALZUUDA = 0x792DA,
WEJINHANI = 0x9346B,
RUINS_OF_RAKHAT_KEEP_INNER_COURT = 0xF77C2,
THE_TREE_OF_WHISPERS = 0x90557,
BACKWATER = 0xA491F,
KED_BARDU = 0x34CE7,
HIDDEN_OVERLOOK = 0x460D4,
FATES_RETREAT = 0xEEEB3,
FAROBRU = 0x2D392,
TUR_DULRA = 0x8D596,
MAROWEN = 0x27E01,
BRAESTAIG = 0x7FD82,
CERRIGAR = 0x76D58,
FIREBREAK_MANOR = 0x803EE,
CORBACH = 0x22EBE,
TIRMAIR = 0xB92BE,
UNDER_THE_FAT_GOOSE_INN = 0xEED6B,
MENESTAD = 0xACE9B,
KYOVASHAD = 0x6CC71,
BEAR_TRIBE_REFUGE = 0x8234E,
MARGRAVE = 0x90A86,
YELESNA = 0x833F8,
NEVESK = 0x6D945,
NOSTRAVA = 0x8547F
}
-- Usage example:
teleport_to_waypoint(waypoints_enum.GEA_KUL)