Tibia Data v0.1.2 TibiaData.House

This module helps you to get a list of houses on a certain world, in a city and which type.

Link to this section Summary

Functions

Returns all information by a specific house world and id.

Returns all information by a specific house world and id.

Returns all houses by a specific world

Returns all houses by a specific world and town

Returns all houses by a specific world, town and type.

Link to this section Functions

Link to this function

get(world, houseid)

Returns all information by a specific house world and id.

Parameters

  • world (string): String that represents the name of the world.
  • houseid (string): String that represents the id of the house.

Examples

iex> TibiaData.House.get "Macabra", "40211"
{:ok, data}
Link to this function

get!(world, houseid)

Returns all information by a specific house world and id.

Parameters

  • world (string): String that represents the name of the world.
  • houseid (string): String that represents the id of the house.

Examples

iex> TibiaData.House.get! "Macabra", "40211"
data

Returns all houses by a specific world

Parameters

  • world (string): String that represents the name of the world.

Examples

iex> TibiaData.House.get_all "Macabra"
{:ok, data}
Link to this function

get_all_by_town(world, town)

Returns all houses by a specific world and town

Parameters

  • world (string): String that represents the name of the world.
  • town (string): String that represents the name of the town.

Examples

iex> TibiaData.House.get_all_by_town "Macabra", "Thais"
{:ok, data}
Link to this function

get_all_by_town_and_type(world, town, type)

Returns all houses by a specific world, town and type.

Parameters

  • world (string): String that represents the name of the world.
  • town (string): String that represents the name of the town.
  • type (string): String that represents the type of the house.

Examples

iex> TibiaData.House.get_all_by_town_and_type "Macabra", "Thais", "guildhalls"
{:ok, data}