OpenTibiaBR
GithubDiscordSponsor
  • Home
    • 📖Welcome!
    • 💵Donate
  • OpenTibiaBR
    • 🖥️Projects
      • 🐦Canary
        • About
        • Getting Started
          • Compiling
            • Linux
              • [Linux] Compiling Canary Sources
            • Windows
              • Visual Studio
                • [Windows][VC2022][CMake] Compiling Canary Sources
                • [Windows][VC2022][Solution] Compiling Canary Sources
              • WSL
                • [WSL] Compiling Canary Sources
          • Installing
            • aaPanel
              • [Linux] Canary + aaPanel + MyAAC
            • Docker
              • [Docker] Canary + MariaDB + MyAAC
            • Linux
              • Nginx + MariaDB + MyAAC
            • Windows
              • Uniform Server
                • [Windows][Basic] Canary + Uniform Server + MyAAC
              • XAMPP
                • [Windows][Advanced] Canary + XAMPP + MyAAC
        • Tutorials
          • Basic
            • Auto Backup Server Database
            • Auto Restart and Linux Logs
            • Custom Bestiary / Prey with Canary Monster Editor
            • Event Schedule Canary / OTServBR-Global
            • How to make a custom server with Canary
            • How to reset players in your database
            • How to secure a Linux server
            • SSL Certificates
            • Webhook Discord
            • [Outdated] Custom Bestiary / Prey
            • [Linux] Backup + Upload - Google Drive
            • [Linux] How to install Linux headers
            • VPS Linux
            • [Windows] SSL/HTTPS Certificate with XAMPP
          • Mapping
            • [Windows] Remere's Map Editor - Opening Canary / OTServBR-Global Map
            • [Windows] Remere's Map Editor - Converting map server id to client id
          • Programming & Scripting
            • How to add a new vocation
            • Revscriptsys
            • Guide Lua Objects
            • How to get raceId for monsters
          • Websites
            • [Canary][OTServBR-Global][GesiorAAC][MyAAC] Set up Initial Character
          • Miscellaneous
            • Useful Tutorials
            • Video Tutorials
      • 🗺️Remere's Map Editor
        • About
        • Getting Started
          • Linux
            • [Linux] Compiling Remere's Map Editor Sources
          • Windows
            • WSL
              • [WSL] Compiling Remere's Map Editor Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling Remere's Map Editor Sources
              • [Windows][VC2022][Solution] Compiling Remere's Map Editor Sources
      • 🎮OTClient Redemption
        • About
        • Getting Started
          • Android
            • [Android] Compiling OTClient Redemption Sources
          • Linux
            • [Linux] Compiling OTClient Redemption Sources
          • Windows
            • WSL
              • [WSL] Compiling OTClient Redemption Sources
            • Visual Studio
              • [Windows][VC2022][CMake] Compiling OTClient Redemption Sources
              • [Windows][VC2022][Solution] Compiling OTClient Redemption Sources
          • Web
            • [Web] OTClient Redemption
        • Tutorials
          • Basic
            • Client Updater
    • 🔗Downloads
      • 🎮Clients
        • Client 11
        • Client 14
          • Tutorials
            • Client with HexEditorXVI32
            • Client with Notepad++
            • Client with config.ini
            • [Windows] How to change client background
        • OTClientV8
          • About
          • Getting Started
            • Android
              • [Android] Compiling OTClientV8 Sources
            • Linux
              • [Linux] Compiling OTClientV8 Sources
            • Windows
              • WSL
                • [WSL] Compiling OTClientV8 Sources
              • Visual Studio
                • [Windows][VC2022][CMake] Compiling OTClientV8 Sources
                • [Windows][VC2022][Solution] Compiling OTClientV8 Sources
          • Features
            • Health and Mana bar backgrounds
            • HTTP support
            • OTML Improvement
            • Simple cam recorder and player
            • Updater, encryption and compression
            • WebSockets
        • Minimap
      • 📑Codes
        • C++
        • Events
        • Functions
        • Libs
        • Modules
        • Others
      • 🖼️Images
        • PSDs
        • Others
      • 🗺️Maps
        • Custom
        • Global
      • 📑Revscripts
        • Actions
        • CreatureEvents
        • GlobalEvents
        • MoveEvents
        • NPCs
        • Spells
        • Systems
        • TalkActions
      • ⚔️Sprites
      • ⚙️Tools
        • Editors
        • Launchers
          • Canary Launcher
            • About
            • Getting Started
              • Windows
                • [Windows][VC2022][Solution] Compiling Canary Launcher Sources
          • Slender Launcher
            • About
            • Getting Started
              • Windows
                • [Windows][Go] Compiling Slender Launcher Sources
        • Login Server
          • About
          • Getting Started
        • Map Generators
      • 🌐Web Packages
        • Linux
        • Windows
      • 🌐Website Applications
        • Websites
          • CanaryAAC
            • About
            • Informations
              • Features
              • Functions
              • API
              • Routes
              • Middleware
            • CanaryAAC Bot
          • Gesior2012
            • About
          • GesiorAAC Global
            • About
          • MyAAC
            • About
          • MyAAC Global
            • About
          • SlenderAAC
            • About
          • ZnoteAAC
            • About
        • Applications
        • Layouts
        • APIs and SDKs
Powered by GitBook
On this page
  • Server:
  • Player:
  • Guilds:
  1. OpenTibiaBR
  2. Downloads
  3. Website Applications
  4. Websites
  5. CanaryAAC
  6. Informations

Functions

Server:

Server

convertGold

Server::convertGold($gold);
return string

1kkk
1kk
1k

convertLocation

Server::convertLocation($location_id);
return string

'0' => 'All',
'1' => 'Africa',
'2' => 'Antarctica',
'3' => 'Asia',
'4' => 'Australia/Oceania',
'5' => 'Europe',
'6' => 'North America',
'7' => 'South America'

convertLocationInitials

Server::convertLocationInitials($location_id);
return string

'0' => 'All',
'1' => 'EUR',
'2' => 'USA',
'3' => 'EUR',
'4' => 'EUR',
'5' => 'EUR',
'6' => 'USA',
'7' => 'BRA'

getLocationIcon

Server::getLocationIcon($location_id);
return string

'0' => '/global/content/option_server_location_all.png',
'1' => '/global/content/option_server_location_', // no exists
'2' => '/global/content/option_server_location_', // no exists
'3' => '/global/content/option_server_location_', // no exists
'4' => '/global/content/option_server_location_', // no exists
'5' => '/global/content/option_server_location_eur.png',
'6' => '/global/content/option_server_location_usa.png',
'7' => '/global/content/option_server_location_bra.png'

convertPvpType

Server::convertPvpType($pvp_type);
return string

'0' => 'Open PvP',
'1' => 'Optional PvP',
'2' => 'Hardcore PvP',
'3' => 'Retro Open PvP',
'4' => 'Retro Hardcore PvP'

convertPvpTypeToCreateAccount

Server::convertPvpTypeToCreateAccount($pvp_type);
return string

'0' => 'open',
'1' => 'optional',
'2' => 'hardcore',
'3' => 'Retro Open',
'4' => 'Retro Hardcore'

getPvpTypeIcon

Server::getPvpTypeIcon($pvp_type);
return string

'0' => '/global/content/option_server_pvp_type_open.gif',
'1' => '/global/content/option_server_pvp_type_optional.gif',
'2' => '/global/content/option_server_pvp_type_hardcore.gif',
'3' => '/global/content/option_server_pvp_type_retro.gif',
'4' => '/global/content/option_server_pvp_type_retrohardcore.gif'

getWorldQuests

Server::getWorldQuests();
return array

[
    'name' => 'World Quest Name',
    'description' => 'Descrição'
]

convertTown

Server::convertTown($town_id);
return string

convertTransferType

Server::convertTransferType($transfertype_id);
return string

'0' => 'blocked',
'1' => 'released'

convertPremiumType

Server::convertPremiumType($premium_type);
return string

'0' => 'premium',
'1' => 'free premium'

convertBattleEye

Server::convertBattleEye($battleEye_id);
return string

'0' => 'Not protected by BattlEye.',
'1' => 'Protected by BattlEye for a while.',
'2' => 'Protected by BattlEye since its release.'

convertBattleEyeIcon

Server::convertBattleEyeIcon($battleEye_id);
return string

'0' => '/global/content/icon_battleye.gif',
'1' => '/global/content/icon_battleyeinitial.gif',
'2' => '/global/content/icon_battleyeinitial.gif'

convertWorldType

Server::convertWorldType($worldtype_id);
return string

'0' => 'Regular',
'1' => 'Experimental'

getRecordPlayers

Server::getRecordPlayers($world_id = 1);
return array

[
    'record' => 0,
    'timestamp' => 10/30/2022 11:00:00
]

getRecordPlayersWorlds

Server::getRecordPlayersWorlds();
return array

[
    'record' => 0,
    'timestamp' => 10/30/2022 11:00:00
]

getPlayersOnline

Server::getPlayersOnline();
return array

[
    [
        'name' => 'Player Sample',
        'vocation' => 1,
        'level' => 10
    ],
]

getCountPlayersOnline

Server::getCountPlayersOnline();
return int

getServerStatus

Server::getServerStatus();
return string

getMonsterImage

Server::getMonsterImage();
return string

getBoostedBoss

Server::getBoostedBoss();
return array

[
    'image_url' => string,
    'looktype' => 87,
    'lookfeet' => 0,
    'looklegs' => 0,
    'lookhead' => 0,
    'lookbody' => 0,
    'lookaddons' => 0,
    'lookmount' => 0,
    'date' => 156489,
    'boostname' => 'Demon',
    'raceid' => 1
]

getBoostedCreature

Server::getBoostedCreature();
return array

[
    'image_url' => string,
    'looktype' => 87,
    'lookfeet' => 0,
    'looklegs' => 0,
    'lookhead' => 0,
    'lookbody' => 0,
    'lookaddons' => 0,
    'lookmount' => 0,
    'date' => 156489,
    'boostname' => 'Demon',
    'raceid' => 1
]

getWorlds

Server::getWorlds();
return array

[
    [
        'id' => 1,
        'name' => 'Canary',
        'creation' => 10/30/2022 11:00:00,
        'creation_int' => 453123,
        'location' => Server::convertLocation($location),
        'location_icon' => Server::getLocationIcon($location),
        'location_initial' => Server::convertLocationInitials($location),
        'pvp_type' => Server::convertPvpType($pvp_type),
        'pvp_type_icon' => Server::getPvpTypeIcon($pvp_type),
        'pvp_type_initial' => Server::convertPvpTypeToCreateAccount($pvp_type),
        'premium_type' => Server::convertPremiumType($premium_type),
        'transfer_type' => Server::convertTransferType($transfer_type),
        'world_quests' => Server::getWorldQuests(),
        'battle_eye' => Server::convertBattleEye($battle_eye),
        'battle_eye_int' => 1,
        'battle_eye_icon' => Server::convertBattleEyeIcon($battle_eye),
        'world_type' => Server::convertWorldType($world_type),
        'players_record' => Server::getRecordPlayers($id),
        'players_online' => Server::getCountPlayersOnline(),
        'server_status' => Server::getServerStatus(),
        'ipaddress' => 127.0.0.1,
        'port' => 7172,
    ],
]

getWorldById

Server::getWorldById($world_id);
return array

[
    'id' => 1,
    'name' => 'Canary',
    'creation' => 10/30/2022 11:00:00,
    'location' => Server::convertLocation($location),
    'location_icon' => Server::getLocationIcon($location),
    'pvp_type' => Server::convertPvpType($pvp_type),
    'pvp_type_icon' => Server::getPvpTypeIcon($pvp_type),
    'premium_type' => Server::convertPremiumType($premium_type),
    'transfer_type' => Server::convertTransferType($transfer_type),
    'world_quests' => Server::getWorldQuests(),
    'battle_eye' => Server::convertBattleEye($battle_eye),
    'battle_eye_icon' => Server::convertBattleEyeIcon($battle_eye),
    'world_type' => Server::convertWorldType($world_type),
    'players_record' => Server::getRecordPlayers($id),
    'players_online' => Server::getCountPlayersOnline(),
    'server_status' => Server::getServerStatus(),
    'ipaddress' => 127.0.0.1,
    'port' => 7172,
]

Player:

Player

getAllCharacters

Player::getAllCharacters($account_id);
return array

[
  [
    'id' => 1,
    'name' => 'Player Sample',
    'level' => 8,
    'vocation' => 'Sorcerer',
    'main' => 1,
    'world' => 1,
    'online' => false,
    'outfit' => [
      'image_url' => string URL,
      'lookbody' => 130,
      'lookfeet' => 10,
      'lookhead' => 0,
      'looklegs' => 0,
      'looktype' => 10,
      'lookaddons' => 0,
    ],
    'group' => 'Player',
    'marriage' => [
      'status' => 1,
      'spouse' => 'Sample Druid',
    ],
    'deletion' => 0,
    'display' => [
      'account' => 0,
      'outfit' => 0,
      'inventory' => 0,
      'health_mana' => 0,
      'skills' => 0,
      'bonus' => 1,
      'comment' => 'Comentário string',
    ],
  ],
]

convertVocation

Player::convertVocation($vocation_id);
return string

'0' => 'None',
'1' => 'Sorcerer',
'2' => 'Druid',
'3' => 'Paladin',
'4' => 'Knight',
'5' => 'Master Sorcerer',
'6' => 'Elder Druid',
'7' => 'Royal Paladin',
'8' => 'Elite Knight',

convertMarried

Player::convertMarried($player_id);
return array

[
  'status' => 1,
  'spouse' => 'Player Sample',
]

getAchievements

Player::getAchievements($player_id, $storage);
return array
[
  [
    'key' => 30000,
    'value' => 50594264,
  ],
  [
    'key' => 30000,
    'value' => 50594264,
  ],
]

getAchievementPoints

Player::getAchievementPoints($player_id);
return int

convertWorld

Player::convertWorld($world_id);
return string

getOutfitImage

Player::getOutfitImage($looktype = 0, $lookaddons = 0, $lookbody = 0, $lookfeet = 0, $lookhead = 0, $looklegs = 0, $mount = 0);
return string URL Outfit Imagem

getOutfit

Player::getOutfit($player_id);
return array

[
  'image_url' => string URL,
  'lookbody' => 128,
  'lookfeet' => 10,
  'lookhead' => 10,
  'looklegs' => 0,
  'looktype' => 0,
  'lookaddons' => 0,
]

getEquipaments

Player::getEquipaments($player_id);
return array

[
  'url' => string só nome da imagem (3028.gif),
  'pid' => 0,
  'sid' => 0,
  'itemtype' => 0,
  'count' => 1
]

getSkull

Player::getSkull($player_id);
return string

0 => '',
1 => 'yellow_skull.gif',
2 => 'green_skull.gif',
3 => 'white_skull.gif',
4 => 'red_skull.gif',
5 => 'black_skull.gif'

getSkullTime

Player::getSkullTime($player_id);
return boolean

getDisplay

Player::getDisplay($player_id);
return array

[
  'account' => 1,
  'outfit' => 1,
  'inventory' => 0,
  'health_mana' => 1,
  'skills' => 1,
  'bonus' => 0,
  'comment' => 'Comentário string',
]p

getHouse

Player::getHouse($player_id);
return array

[
  [
    'id' => 358,
    'owner' => 1,
    'paid' => 0,
    'warnings' => 0,
    'name' => 'House Name',
    'rent' => 350000,
    'town_id' => 1,
    'bid' => 1,
    'bid_end' => 0,
    'last_bid' => 0,
    'highest_bidder' => 1,
    'size' => 68,
    'guildid' => 1,
    'beds' => 10,
  ],
]

isOnline

Player::isOnline($player_id);
return boolean

convertLastLogin

Player::convertLastLogin($lastlogin);
return string

convertPremy

Player::convertPremy($account_id);
return string

getPremDays

Player::getPremDays($account_id);
return date('d m Y')

getCoins

Player::getCoins($account_id);
return float

getGuildMember

Player::getGuildMember($player_id);
return array

[
  'guild_id' => 1,
  'guild_name' => 'Guild Name',
  'rank_id' => 1,
  'nick' => 'Nick player',
  'rank_name' => 'Leader',
];

getGuildOwner

Player::getGuildOwner($player_id);
return array

[
  [
    'level' => 1,
    'name' => 'Name',
    'ownerid' => 1,
    'creationdata' => 1042758,
    'motd' => 'Motd Guild',
    'residence' => 1047,
    'balance' => 0,
    'points' => 0,
  ],
];

getDeaths

Player::getDeaths($player_id);
return array

[
  [
    'time' => 16578912,
    'description' => 'Killed at level 100 by Demon (soloed)',
  ],
];

getFrags

Player::getFrags($player_id);
return array

[
  'time' => 15678641,
  'description' => 'Fragged Player Sample at level 100.',
  'unjustified' => 0,
];

convertSex

Player::convertSex($sex_id);
return string

'1' => 'male',
'0' => 'female'

convertGroup

Player::convertGroup($group_id);
return string

convertTown

Player::convertTown($town_id);
return string

getPlayerStorage

Player::getPlayerStorage($player_id, $storage);
return boolean

getPlayerStorageByValue

Player::getPlayerStorageByValue($player_id, $storage, $value);
return boolean

Guilds:

Guilds

getGuilds

Guilds::getGuilds();
return array

[
    [
        'id' => 1,
        'level' => 1,
        'name' => 'Guild Name',
        'ownerid' => 1,
        'creationdata' => date('d M Y H:i'),
        'motd' => 'Motd Guild',
        'residence' => 1,
        'balance' => 0,
        'points' => 0,
        'description' => 'Descrição da guild.',
        'logo_name' => 'image name.gif',
    ],
]

getGuildbyId

Guilds::getGuildbyId($guild_id);
return array

[
    'id' => 1,
    'level' => 1,
    'name' => 'Guild Name',
    'ownerid' => 1,
    'creationdata' => date('M d Y'),
    'motd' => 'Motd Guild',
    'residence' => 1,
    'balance' => 0,
    'points' => 0,
    'description' => 'Descrição da guild.',
    'logo_name' => 'image name.gif',
]

getGuildbyWorldId

Guilds::getGuildbyWorldId($wold_id);
return array

[
    'id' => 1,
    'level' => 1,
    'name' => 'Guild Name',
    'ownerid' => 1,
    'creationdata' => date('M d Y'),
    'motd' => 'Motd Guild',
    'residence' => 1,
    'balance' => 0,
    'points' => 0,
    'description' => 'Descrição da guild.',
    'logo_name' => 'image name.gif',
]

convertRankGuild

Guilds::convertRankGuild($rank_id);
return array

[
    'id' => 1,
    'guild_id' => 1,
    'name' => 'Guild Name',
    'rank_level' => 1,
]

getRanks

Guilds::getRanks($guild_id);
return array

[
    'id' => 1,
    'guild_id' => 1,
    'name' => 'Rank Name',
    'level' => 1,
]

getMembersbyRank

Guilds::getMembersbyRank($guild_id, $rank_id);
return array

[
    [
        'player_id' => 1,
        'player_name' => 'Player Sample',
        'player_vocation' => 'Sorcerer',
        'player_level' => 10,
        'player_online' => true,
        'guild_id' => 1,
        'rank_id' => 1,
        'nick' => 'Nick Player',
        'date' => date('M d Y'),
    ],
]

getAllMembers

Guilds::getAllMembers($guild_id);
return array

[
    [
        'rank_name' => 'Rank Name',
        'rank_members' => [
                            [
                                'player_id' => 1,
                                'player_name' => 'Player Sample',
                                'player_vocation' => 'Sorcerer',
                                'player_level' => 10,
                                'player_online' => true,
                                'guild_id' => 1,
                                'rank_id' => 1,
                                'nick' => 'Nick Player',
                                'date' => date('M d Y'),
                            ],
                        ],
    ],
]

getGuildMembership

Guilds::getGuildMembership($guild_id);
return array

[
    [
        'player_name' => 'Player Sample',
        'player_id' => 1,
        'guild_id' => 1,
        'rank_id' => 1,
        'nick' => 'Nick Player',
    ],
]

getGuildInvites

Guilds::getGuildInvites($guild_id);
return array

[
    [
        'player_name' => 'Player Sample',
        'player_id' => 1,
        'guild_id' => 1,
        'date' => date('M d Y'),
    ],
]

verifyAccountLeader

Guilds::verifyAccountLeader($guild_id);
return boolean

verifyAccountViceLeader

Guilds::verifyAccountViceLeader($guild_id);
return boolean

verifyAccountMember

Guilds::verifyAccountMember($guild_id);
return boolean

verifyAccountInvited

Guilds::verifyAccountInvited($guild_id);
return boolean
🔗
🌐