Otclient  14/8/2020
const.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 Otc
 

Enumerations

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