Otclient  14/8/2020
Otc Namespace Reference

Enumerations

enum  {
  TILE_PIXELS = 32, MAX_ELEVATION = 24, SEA_FLOOR = 7, MAX_Z = 15,
  UNDERGROUND_FLOOR = SEA_FLOOR+1, AWARE_UNDEGROUND_FLOOR_RANGE = 2, INVISIBLE_TICKS_PER_FRAME = 500, ITEM_TICKS_PER_FRAME = 500,
  ANIMATED_TEXT_DURATION = 1000, STATIC_DURATION_PER_CHARACTER = 60, MIN_STATIC_TEXT_DURATION = 3000, MAX_STATIC_TEXT_WIDTH = 200,
  MAX_AUTOWALK_STEPS_RETRY = 10, MAX_AUTOWALK_DIST = 127
}
 
enum  DrawFlags {
  DrawGround = 1, DrawGroundBorders = 2, DrawOnBottom = 4, DrawOnTop = 8,
  DrawItems = 16, DrawCreatures = 32, DrawEffects = 64, DrawMissiles = 128,
  DrawCreaturesInformation = 256, DrawStaticTexts = 512, DrawAnimatedTexts = 1024, DrawAnimations = 2048,
  DrawBars = 4096, DrawNames = 8192, DrawLights = 16384, DrawManaBar = 32768,
  DrawWalls = DrawOnBottom | DrawOnTop, DrawEverything
}
 
enum  DatOpts {
  DatGround = 0, DatGroundClip, DatOnBottom, DatOnTop,
  DatContainer, DatStackable, DatForceUse, DatMultiUse,
  DatWritable, DatWritableOnce, DatFluidContainer, DatSplash,
  DatBlockWalk, DatNotMoveable, DatBlockProjectile, DatBlockPathFind,
  DatPickupable, DatHangable, DatHookSouth, DatHookEast,
  DatRotable, DatLight, DatDontHide, DatTranslucent,
  DatDisplacement, DatElevation, DatLyingCorpse, DatAnimateAlways,
  DatMinimapColor, DatLensHelp, DatFullGround, DatIgnoreLook,
  DatCloth, DatAnimation, DatLastOpt = 255
}
 
enum  InventorySlot {
  InventorySlotHead = 1, InventorySlotNecklace, InventorySlotBackpack, InventorySlotArmor,
  InventorySlotRight, InventorySlotLeft, InventorySlotLegs, InventorySlotFeet,
  InventorySlotRing, InventorySlotAmmo, InventorySlotPurse, InventorySlotExt1,
  InventorySlotExt2, InventorySlotExt3, InventorySlotExt4, LastInventorySlot
}
 
enum  Statistic {
  Health = 0, MaxHealth, FreeCapacity, Experience,
  Level, LevelPercent, Mana, MaxMana,
  MagicLevel, MagicLevelPercent, Soul, Stamina,
  LastStatistic
}
 
enum  Skill {
  Fist = 0, Club, Sword, Axe,
  Distance, Shielding, Fishing, CriticalChance,
  CriticalDamage, LifeLeechChance, LifeLeechAmount, ManaLeechChance,
  ManaLeechAmount, LastSkill
}
 
enum  Direction {
  North = 0, East, South, West,
  NorthEast, SouthEast, SouthWest, NorthWest,
  InvalidDirection
}
 
enum  FluidsColor {
  FluidTransparent = 0, FluidBlue, FluidRed, FluidBrown,
  FluidGreen, FluidYellow, FluidWhite, FluidPurple
}
 
enum  FluidsType {
  FluidNone = 0, FluidWater, FluidMana, FluidBeer,
  FluidOil, FluidBlood, FluidSlime, FluidMud,
  FluidLemonade, FluidMilk, FluidWine, FluidHealth,
  FluidUrine, FluidRum, FluidFruidJuice, FluidCoconutMilk,
  FluidTea, FluidMead
}
 
enum  FightModes { FightOffensive = 1, FightBalanced = 2, FightDefensive = 3 }
 
enum  ChaseModes { DontChase = 0, ChaseOpponent = 1 }
 
enum  PVPModes { WhiteDove = 0, WhiteHand = 1, YellowHand = 2, RedFist = 3 }
 
enum  PlayerSkulls {
  SkullNone = 0, SkullYellow, SkullGreen, SkullWhite,
  SkullRed, SkullBlack, SkullOrange
}
 
enum  PlayerShields {
  ShieldNone = 0, ShieldWhiteYellow, ShieldWhiteBlue, ShieldBlue,
  ShieldYellow, ShieldBlueSharedExp, ShieldYellowSharedExp, ShieldBlueNoSharedExpBlink,
  ShieldYellowNoSharedExpBlink, ShieldBlueNoSharedExp, ShieldYellowNoSharedExp, ShieldGray
}
 
enum  PlayerEmblems {
  EmblemNone = 0, EmblemGreen, EmblemRed, EmblemBlue,
  EmblemMember, EmblemOther
}
 
enum  CreatureIcons {
  NpcIconNone = 0, NpcIconChat, NpcIconTrade, NpcIconQuest,
  NpcIconTradeQuest
}
 
enum  PlayerStates {
  IconNone = 0, IconPoison = 1, IconBurn = 2, IconEnergy = 4,
  IconDrunk = 8, IconManaShield = 16, IconParalyze = 32, IconHaste = 64,
  IconSwords = 128, IconDrowning = 256, IconFreezing = 512, IconDazzled = 1024,
  IconCursed = 2048, IconPartyBuff = 4096, IconPzBlock = 8192, IconPz = 16384,
  IconBleeding = 32768, IconHungry = 65536
}
 
enum  MessageMode {
  MessageNone = 0, MessageSay = 1, MessageWhisper = 2, MessageYell = 3,
  MessagePrivateFrom = 4, MessagePrivateTo = 5, MessageChannelManagement = 6, MessageChannel = 7,
  MessageChannelHighlight = 8, MessageSpell = 9, MessageNpcFrom = 10, MessageNpcTo = 11,
  MessageGamemasterBroadcast = 12, MessageGamemasterChannel = 13, MessageGamemasterPrivateFrom = 14, MessageGamemasterPrivateTo = 15,
  MessageLogin = 16, MessageWarning = 17, MessageGame = 18, MessageFailure = 19,
  MessageLook = 20, MessageDamageDealed = 21, MessageDamageReceived = 22, MessageHeal = 23,
  MessageExp = 24, MessageDamageOthers = 25, MessageHealOthers = 26, MessageExpOthers = 27,
  MessageStatus = 28, MessageLoot = 29, MessageTradeNpc = 30, MessageGuild = 31,
  MessagePartyManagement = 32, MessageParty = 33, MessageBarkLow = 34, MessageBarkLoud = 35,
  MessageReport = 36, MessageHotkeyUse = 37, MessageTutorialHint = 38, MessageThankyou = 39,
  MessageMarket = 40, MessageMana = 41, MessageBeyondLast = 42, MessageMonsterYell = 43,
  MessageMonsterSay = 44, MessageRed = 45, MessageBlue = 46, MessageRVRChannel = 47,
  MessageRVRAnswer = 48, MessageRVRContinue = 49, MessageGameHighlight = 50, MessageNpcFromStartBlock = 51,
  LastMessage = 52, MessageInvalid = 255
}
 
enum  GameFeature {
  GameProtocolChecksum = 1, GameAccountNames = 2, GameChallengeOnLogin = 3, GamePenalityOnDeath = 4,
  GameNameOnNpcTrade = 5, GameDoubleFreeCapacity = 6, GameDoubleExperience = 7, GameTotalCapacity = 8,
  GameSkillsBase = 9, GamePlayerRegenerationTime = 10, GameChannelPlayerList = 11, GamePlayerMounts = 12,
  GameEnvironmentEffect = 13, GameCreatureEmblems = 14, GameItemAnimationPhase = 15, GameMagicEffectU16 = 16,
  GamePlayerMarket = 17, GameSpritesU32 = 18, GameOfflineTrainingTime = 20, GamePurseSlot = 21,
  GameFormatCreatureName = 22, GameSpellList = 23, GameClientPing = 24, GameExtendedClientPing = 25,
  GameDoubleHealth = 28, GameDoubleSkills = 29, GameChangeMapAwareRange = 30, GameMapMovePosition = 31,
  GameAttackSeq = 32, GameBlueNpcNameColor = 33, GameDiagonalAnimatedText = 34, GameLoginPending = 35,
  GameNewSpeedLaw = 36, GameForceFirstAutoWalkStep = 37, GameMinimapRemove = 38, GameDoubleShopSellAmount = 39,
  GameContainerPagination = 40, GameThingMarks = 41, GameLooktypeU16 = 42, GamePlayerStamina = 43,
  GamePlayerAddons = 44, GameMessageStatements = 45, GameMessageLevel = 46, GameNewFluids = 47,
  GamePlayerStateU16 = 48, GameNewOutfitProtocol = 49, GamePVPMode = 50, GameWritableDate = 51,
  GameAdditionalVipInfo = 52, GameBaseSkillU16 = 53, GameCreatureIcons = 54, GameHideNpcNames = 55,
  GameSpritesAlphaChannel = 56, GamePremiumExpiration = 57, GameBrowseField = 58, GameEnhancedAnimations = 59,
  GameOGLInformation = 60, GameMessageSizeCheck = 61, GamePreviewState = 62, GameLoginPacketEncryption = 63,
  GameClientVersion = 64, GameContentRevision = 65, GameExperienceBonus = 66, GameAuthenticator = 67,
  GameUnjustifiedPoints = 68, GameSessionKey = 69, GameDeathType = 70, GameIdleAnimations = 71,
  GameKeepUnawareTiles = 72, GameIngameStore = 73, GameIngameStoreHighlights = 74, GameIngameStoreServiceType = 75,
  GameAdditionalSkills = 76, LastGameFeature = 101
}
 
enum  PathFindResult {
  PathFindResultOk = 0, PathFindResultSamePosition, PathFindResultImpossible, PathFindResultTooFar,
  PathFindResultNoWay
}
 
enum  PathFindFlags { PathFindAllowNotSeenTiles = 1, PathFindAllowCreatures = 2, PathFindAllowNonPathable = 4, PathFindAllowNonWalkable = 8 }
 
enum  AutomapFlags {
  MapMarkTick = 0, MapMarkQuestion, MapMarkExclamation, MapMarkStar,
  MapMarkCross, MapMarkTemple, MapMarkKiss, MapMarkShovel,
  MapMarkSword, MapMarkFlag, MapMarkLock, MapMarkBag,
  MapMarkSkull, MapMarkDollar, MapMarkRedNorth, MapMarkRedSouth,
  MapMarkRedEast, MapMarkRedWest, MapMarkGreenNorth, MapMarkGreenSouth
}
 
enum  VipState { VipStateOffline = 0, VipStateOnline = 1, VipStatePending = 2 }
 
enum  SpeedFormula { SpeedFormulaA = 0, SpeedFormulaB, SpeedFormulaC, LastSpeedFormula }
 
enum  Blessings {
  BlessingNone = 0, BlessingAdventurer = 1, BlessingSpiritualShielding = 1 << 1, BlessingEmbraceOfTibia = 1 << 2,
  BlessingFireOfSuns = 1 << 3, BlessingWisdomOfSolitude = 1 << 4, BlessingSparkOfPhoenix = 1 << 5
}
 
enum  DeathType { DeathRegular = 0, DeathBlessed = 1 }
 
enum  StoreProductTypes { ProductTypeOther = 0, ProductTypeNameChange = 1 }
 
enum  StoreErrorTypes {
  StoreNoError = -1, StorePurchaseError = 0, StoreNetworkError = 1, StoreHistoryError = 2,
  StoreTransferError = 3, StoreInformation = 4
}
 
enum  StoreStates { StateNone = 0, StateNew = 1, StateSale = 2, StateTimed = 3 }
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
TILE_PIXELS 
MAX_ELEVATION 
SEA_FLOOR 
MAX_Z 
UNDERGROUND_FLOOR 
AWARE_UNDEGROUND_FLOOR_RANGE 
INVISIBLE_TICKS_PER_FRAME 
ITEM_TICKS_PER_FRAME 
ANIMATED_TEXT_DURATION 
STATIC_DURATION_PER_CHARACTER 
MIN_STATIC_TEXT_DURATION 
MAX_STATIC_TEXT_WIDTH 
MAX_AUTOWALK_STEPS_RETRY 
MAX_AUTOWALK_DIST 

Definition at line 28 of file const.h.

◆ AutomapFlags

Enumerator
MapMarkTick 
MapMarkQuestion 
MapMarkExclamation 
MapMarkStar 
MapMarkCross 
MapMarkTemple 
MapMarkKiss 
MapMarkShovel 
MapMarkSword 
MapMarkFlag 
MapMarkLock 
MapMarkBag 
MapMarkSkull 
MapMarkDollar 
MapMarkRedNorth 
MapMarkRedSouth 
MapMarkRedEast 
MapMarkRedWest 
MapMarkGreenNorth 
MapMarkGreenSouth 

Definition at line 439 of file const.h.

◆ Blessings

Enumerator
BlessingNone 
BlessingAdventurer 
BlessingSpiritualShielding 
BlessingEmbraceOfTibia 
BlessingFireOfSuns 
BlessingWisdomOfSolitude 
BlessingSparkOfPhoenix 

Definition at line 475 of file const.h.

◆ ChaseModes

Enumerator
DontChase 
ChaseOpponent 

Definition at line 211 of file const.h.

◆ CreatureIcons

Enumerator
NpcIconNone 
NpcIconChat 
NpcIconTrade 
NpcIconQuest 
NpcIconTradeQuest 

Definition at line 257 of file const.h.

◆ DatOpts

Enumerator
DatGround 
DatGroundClip 
DatOnBottom 
DatOnTop 
DatContainer 
DatStackable 
DatForceUse 
DatMultiUse 
DatWritable 
DatWritableOnce 
DatFluidContainer 
DatSplash 
DatBlockWalk 
DatNotMoveable 
DatBlockProjectile 
DatBlockPathFind 
DatPickupable 
DatHangable 
DatHookSouth 
DatHookEast 
DatRotable 
DatLight 
DatDontHide 
DatTranslucent 
DatDisplacement 
DatElevation 
DatLyingCorpse 
DatAnimateAlways 
DatMinimapColor 
DatLensHelp 
DatFullGround 
DatIgnoreLook 
DatCloth 
DatAnimation 
DatLastOpt 

Definition at line 71 of file const.h.

◆ DeathType

Enumerator
DeathRegular 
DeathBlessed 

Definition at line 485 of file const.h.

◆ Direction

Enumerator
North 
East 
South 
West 
NorthEast 
SouthEast 
SouthWest 
NorthWest 
InvalidDirection 

Definition at line 161 of file const.h.

◆ DrawFlags

Enumerator
DrawGround 
DrawGroundBorders 
DrawOnBottom 
DrawOnTop 
DrawItems 
DrawCreatures 
DrawEffects 
DrawMissiles 
DrawCreaturesInformation 
DrawStaticTexts 
DrawAnimatedTexts 
DrawAnimations 
DrawBars 
DrawNames 
DrawLights 
DrawManaBar 
DrawWalls 
DrawEverything 

Definition at line 47 of file const.h.

◆ FightModes

Enumerator
FightOffensive 
FightBalanced 
FightDefensive 

Definition at line 205 of file const.h.

◆ FluidsColor

Enumerator
FluidTransparent 
FluidBlue 
FluidRed 
FluidBrown 
FluidGreen 
FluidYellow 
FluidWhite 
FluidPurple 

Definition at line 173 of file const.h.

◆ FluidsType

Enumerator
FluidNone 
FluidWater 
FluidMana 
FluidBeer 
FluidOil 
FluidBlood 
FluidSlime 
FluidMud 
FluidLemonade 
FluidMilk 
FluidWine 
FluidHealth 
FluidUrine 
FluidRum 
FluidFruidJuice 
FluidCoconutMilk 
FluidTea 
FluidMead 

Definition at line 184 of file const.h.

◆ GameFeature

Enumerator
GameProtocolChecksum 
GameAccountNames 
GameChallengeOnLogin 
GamePenalityOnDeath 
GameNameOnNpcTrade 
GameDoubleFreeCapacity 
GameDoubleExperience 
GameTotalCapacity 
GameSkillsBase 
GamePlayerRegenerationTime 
GameChannelPlayerList 
GamePlayerMounts 
GameEnvironmentEffect 
GameCreatureEmblems 
GameItemAnimationPhase 
GameMagicEffectU16 
GamePlayerMarket 
GameSpritesU32 
GameOfflineTrainingTime 
GamePurseSlot 
GameFormatCreatureName 
GameSpellList 
GameClientPing 
GameExtendedClientPing 
GameDoubleHealth 
GameDoubleSkills 
GameChangeMapAwareRange 
GameMapMovePosition 
GameAttackSeq 
GameBlueNpcNameColor 
GameDiagonalAnimatedText 
GameLoginPending 
GameNewSpeedLaw 
GameForceFirstAutoWalkStep 
GameMinimapRemove 
GameDoubleShopSellAmount 
GameContainerPagination 
GameThingMarks 
GameLooktypeU16 
GamePlayerStamina 
GamePlayerAddons 
GameMessageStatements 
GameMessageLevel 
GameNewFluids 
GamePlayerStateU16 
GameNewOutfitProtocol 
GamePVPMode 
GameWritableDate 
GameAdditionalVipInfo 
GameBaseSkillU16 
GameCreatureIcons 
GameHideNpcNames 
GameSpritesAlphaChannel 
GamePremiumExpiration 
GameBrowseField 
GameEnhancedAnimations 
GameOGLInformation 
GameMessageSizeCheck 
GamePreviewState 
GameLoginPacketEncryption 
GameClientVersion 
GameContentRevision 
GameExperienceBonus 
GameAuthenticator 
GameUnjustifiedPoints 
GameSessionKey 
GameDeathType 
GameIdleAnimations 
GameKeepUnawareTiles 
GameIngameStore 
GameIngameStoreHighlights 
GameIngameStoreServiceType 
GameAdditionalSkills 
LastGameFeature 

Definition at line 345 of file const.h.

◆ InventorySlot

Enumerator
InventorySlotHead 
InventorySlotNecklace 
InventorySlotBackpack 
InventorySlotArmor 
InventorySlotRight 
InventorySlotLeft 
InventorySlotLegs 
InventorySlotFeet 
InventorySlotRing 
InventorySlotAmmo 
InventorySlotPurse 
InventorySlotExt1 
InventorySlotExt2 
InventorySlotExt3 
InventorySlotExt4 
LastInventorySlot 

Definition at line 109 of file const.h.

◆ MessageMode

Enumerator
MessageNone 
MessageSay 
MessageWhisper 
MessageYell 
MessagePrivateFrom 
MessagePrivateTo 
MessageChannelManagement 
MessageChannel 
MessageChannelHighlight 
MessageSpell 
MessageNpcFrom 
MessageNpcTo 
MessageGamemasterBroadcast 
MessageGamemasterChannel 
MessageGamemasterPrivateFrom 
MessageGamemasterPrivateTo 
MessageLogin 
MessageWarning 
MessageGame 
MessageFailure 
MessageLook 
MessageDamageDealed 
MessageDamageReceived 
MessageHeal 
MessageExp 
MessageDamageOthers 
MessageHealOthers 
MessageExpOthers 
MessageStatus 
MessageLoot 
MessageTradeNpc 
MessageGuild 
MessagePartyManagement 
MessageParty 
MessageBarkLow 
MessageBarkLoud 
MessageReport 
MessageHotkeyUse 
MessageTutorialHint 
MessageThankyou 
MessageMarket 
MessageMana 
MessageBeyondLast 
MessageMonsterYell 
MessageMonsterSay 
MessageRed 
MessageBlue 
MessageRVRChannel 
MessageRVRAnswer 
MessageRVRContinue 
MessageGameHighlight 
MessageNpcFromStartBlock 
LastMessage 
MessageInvalid 

Definition at line 286 of file const.h.

◆ PathFindFlags

Enumerator
PathFindAllowNotSeenTiles 
PathFindAllowCreatures 
PathFindAllowNonPathable 
PathFindAllowNonWalkable 

Definition at line 432 of file const.h.

◆ PathFindResult

Enumerator
PathFindResultOk 
PathFindResultSamePosition 
PathFindResultImpossible 
PathFindResultTooFar 
PathFindResultNoWay 

Definition at line 424 of file const.h.

◆ PlayerEmblems

Enumerator
EmblemNone 
EmblemGreen 
EmblemRed 
EmblemBlue 
EmblemMember 
EmblemOther 

Definition at line 248 of file const.h.

◆ PlayerShields

Enumerator
ShieldNone 
ShieldWhiteYellow 
ShieldWhiteBlue 
ShieldBlue 
ShieldYellow 
ShieldBlueSharedExp 
ShieldYellowSharedExp 
ShieldBlueNoSharedExpBlink 
ShieldYellowNoSharedExpBlink 
ShieldBlueNoSharedExp 
ShieldYellowNoSharedExp 
ShieldGray 

Definition at line 233 of file const.h.

◆ PlayerSkulls

Enumerator
SkullNone 
SkullYellow 
SkullGreen 
SkullWhite 
SkullRed 
SkullBlack 
SkullOrange 

Definition at line 223 of file const.h.

◆ PlayerStates

Enumerator
IconNone 
IconPoison 
IconBurn 
IconEnergy 
IconDrunk 
IconManaShield 
IconParalyze 
IconHaste 
IconSwords 
IconDrowning 
IconFreezing 
IconDazzled 
IconCursed 
IconPartyBuff 
IconPzBlock 
IconPz 
IconBleeding 
IconHungry 

Definition at line 265 of file const.h.

◆ PVPModes

Enumerator
WhiteDove 
WhiteHand 
YellowHand 
RedFist 

Definition at line 216 of file const.h.

◆ Skill

enum Otc::Skill
Enumerator
Fist 
Club 
Sword 
Axe 
Distance 
Shielding 
Fishing 
CriticalChance 
CriticalDamage 
LifeLeechChance 
LifeLeechAmount 
ManaLeechChance 
ManaLeechAmount 
LastSkill 

Definition at line 144 of file const.h.

◆ SpeedFormula

Enumerator
SpeedFormulaA 
SpeedFormulaB 
SpeedFormulaC 
LastSpeedFormula 

Definition at line 468 of file const.h.

◆ Statistic

Enumerator
Health 
MaxHealth 
FreeCapacity 
Experience 
Level 
LevelPercent 
Mana 
MaxMana 
MagicLevel 
MagicLevelPercent 
Soul 
Stamina 
LastStatistic 

Definition at line 128 of file const.h.

◆ StoreErrorTypes

Enumerator
StoreNoError 
StorePurchaseError 
StoreNetworkError 
StoreHistoryError 
StoreTransferError 
StoreInformation 

Definition at line 495 of file const.h.

◆ StoreProductTypes

Enumerator
ProductTypeOther 
ProductTypeNameChange 

Definition at line 490 of file const.h.

◆ StoreStates

Enumerator
StateNone 
StateNew 
StateSale 
StateTimed 

Definition at line 504 of file const.h.

◆ VipState

Enumerator
VipStateOffline 
VipStateOnline 
VipStatePending 

Definition at line 462 of file const.h.