2012-06-26 00:13:30 +02:00
|
|
|
-- @docconsts @{
|
|
|
|
|
2013-01-31 02:44:57 +01:00
|
|
|
FloorHigher = 0
|
|
|
|
FloorLower = 15
|
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
SkullNone = 0
|
|
|
|
SkullYellow = 1
|
|
|
|
SkullGreen = 2
|
|
|
|
SkullWhite = 3
|
|
|
|
SkullRed = 4
|
|
|
|
SkullBlack = 5
|
|
|
|
SkullOrange = 6
|
|
|
|
|
|
|
|
ShieldNone = 0
|
|
|
|
ShieldWhiteYellow = 1
|
|
|
|
ShieldWhiteBlue = 2
|
|
|
|
ShieldBlue = 3
|
|
|
|
ShieldYellow = 4
|
|
|
|
ShieldBlueSharedExp = 5
|
|
|
|
ShieldYellowSharedExp = 6
|
|
|
|
ShieldBlueNoSharedExpBlink = 7
|
|
|
|
ShieldYellowNoSharedExpBlink = 8
|
|
|
|
ShieldBlueNoSharedExp = 9
|
|
|
|
ShieldYellowNoSharedExp = 10
|
2013-11-13 00:48:41 +01:00
|
|
|
ShieldGray = 11
|
2012-03-18 14:34:39 +01:00
|
|
|
|
|
|
|
EmblemNone = 0
|
|
|
|
EmblemGreen = 1
|
|
|
|
EmblemRed = 2
|
|
|
|
EmblemBlue = 3
|
2013-11-13 00:48:41 +01:00
|
|
|
EmblemMember = 4
|
|
|
|
EmblemOther = 5
|
2012-03-23 15:48:00 +01:00
|
|
|
|
2014-01-14 23:15:01 +01:00
|
|
|
VipIconFirst = 0
|
|
|
|
VipIconLast = 10
|
|
|
|
|
2014-06-02 00:04:56 +02:00
|
|
|
Directions = {
|
|
|
|
North = 0,
|
|
|
|
East = 1,
|
|
|
|
South = 2,
|
|
|
|
West = 3,
|
|
|
|
NorthEast = 4,
|
|
|
|
SouthEast = 5,
|
|
|
|
SouthWest = 6,
|
|
|
|
NorthWest = 7
|
|
|
|
}
|
|
|
|
|
|
|
|
North = Directions.North
|
|
|
|
East = Directions.East
|
|
|
|
South = Directions.South
|
|
|
|
West = Directions.West
|
|
|
|
NorthEast = Directions.NorthEast
|
|
|
|
SouthEast = Directions.SouthEast
|
|
|
|
SouthWest = Directions.SouthWest
|
|
|
|
NorthWest = Directions.NorthWest
|
2012-06-05 23:27:37 +02:00
|
|
|
|
2012-07-26 11:12:20 +02:00
|
|
|
FightOffensive = 1
|
|
|
|
FightBalanced = 2
|
|
|
|
FightDefensive = 3
|
|
|
|
|
|
|
|
DontChase = 0
|
|
|
|
ChaseOpponent = 1
|
|
|
|
|
2013-11-19 00:50:00 +01:00
|
|
|
PVPWhiteDove = 0
|
|
|
|
PVPWhiteHand = 1
|
|
|
|
PVPYellowHand = 2
|
|
|
|
PVPRedFist = 3
|
|
|
|
|
2012-06-05 23:27:37 +02:00
|
|
|
GameProtocolChecksum = 1
|
|
|
|
GameAccountNames = 2
|
2013-01-17 21:24:41 +01:00
|
|
|
GameChallengeOnLogin = 3
|
2012-08-19 03:40:04 +02:00
|
|
|
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
|
|
|
|
GameChargeableItems = 19
|
|
|
|
GameOfflineTrainingTime = 20
|
|
|
|
GamePurseSlot = 21
|
|
|
|
GameFormatCreatureName = 22
|
2012-08-19 11:46:24 +02:00
|
|
|
GameSpellList = 23
|
2012-08-25 21:11:54 +02:00
|
|
|
GameClientPing = 24
|
2013-01-17 21:24:41 +01:00
|
|
|
GameExtendedClientPing = 25
|
|
|
|
GameDoubleHealth = 28
|
|
|
|
GameDoubleSkills = 29
|
|
|
|
GameChangeMapAwareRange = 30
|
|
|
|
GameMapMovePosition = 31
|
|
|
|
GameAttackSeq = 32
|
|
|
|
GameBlueNpcNameColor = 33
|
|
|
|
GameDiagonalAnimatedText = 34
|
|
|
|
GameLoginPending = 35
|
|
|
|
GameNewSpeedLaw = 36
|
2013-01-18 06:27:29 +01:00
|
|
|
GameForceFirstAutoWalkStep = 37
|
2013-01-29 21:36:27 +01:00
|
|
|
GameMinimapRemove = 38
|
2013-02-15 19:38:57 +01:00
|
|
|
GameDoubleShopSellAmount = 39
|
2013-10-20 17:15:24 +02:00
|
|
|
GameContainerPagination = 40
|
|
|
|
GameThingMarks = 41
|
|
|
|
GameLooktypeU16 = 42
|
|
|
|
GamePlayerStamina = 43
|
|
|
|
GamePlayerAddons = 44
|
|
|
|
GameMessageStatements = 45
|
|
|
|
GameMesssageLevel = 46
|
|
|
|
GameNewFluids = 47
|
|
|
|
GamePlayerStateU16 = 48
|
|
|
|
GameNewOutfitProtocol = 49
|
2013-11-19 00:50:00 +01:00
|
|
|
GamePVPMode = 50
|
2014-01-14 23:15:01 +01:00
|
|
|
GameWritableDate = 51
|
|
|
|
GameAdditionalVipInfo = 52
|
2014-04-04 17:58:12 +02:00
|
|
|
GameSpritesAlphaChannel = 56
|
2014-07-15 23:19:08 +02:00
|
|
|
GamePremiumExpiration = 57
|
|
|
|
GameBrowseField = 58
|
2014-08-03 14:13:23 +02:00
|
|
|
GameEnhancedAnimations = 59
|
2014-12-29 18:08:13 +01:00
|
|
|
GameOGLInformation = 60
|
|
|
|
GameMessageSizeCheck = 61
|
|
|
|
GamePreviewState = 62
|
|
|
|
GameLoginPacketEncryption = 63
|
|
|
|
GameClientVersion = 64
|
|
|
|
GameContentRevision = 65
|
|
|
|
GameExperienceBonus = 66
|
2012-06-05 23:27:37 +02:00
|
|
|
|
2012-07-26 11:12:20 +02:00
|
|
|
TextColors = {
|
|
|
|
red = '#f55e5e', --'#c83200'
|
|
|
|
orange = '#f36500', --'#c87832'
|
|
|
|
yellow = '#ffff00', --'#e6c832'
|
|
|
|
green = '#00EB00', --'#3fbe32'
|
|
|
|
lightblue = '#5ff7f7',
|
2012-07-26 14:19:01 +02:00
|
|
|
blue = '#9f9dfd',
|
2012-07-26 11:12:20 +02:00
|
|
|
--blue1 = '#6e50dc',
|
|
|
|
--blue2 = '#3264c8',
|
|
|
|
--blue3 = '#0096c8',
|
2013-02-19 02:18:10 +01:00
|
|
|
white = '#ffffff', --'#bebebe'
|
2012-07-26 11:12:20 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
MessageModes = {
|
|
|
|
None = 0,
|
|
|
|
Say = 1,
|
|
|
|
Whisper = 2,
|
|
|
|
Yell = 3,
|
|
|
|
PrivateFrom = 4,
|
|
|
|
PrivateTo = 5,
|
|
|
|
ChannelManagement = 6,
|
|
|
|
Channel = 7,
|
|
|
|
ChannelHighlight = 8,
|
|
|
|
Spell = 9,
|
|
|
|
NpcFrom = 10,
|
|
|
|
NpcTo = 11,
|
|
|
|
GamemasterBroadcast = 12,
|
|
|
|
GamemasterChannel = 13,
|
|
|
|
GamemasterPrivateFrom = 14,
|
|
|
|
GamemasterPrivateTo = 15,
|
|
|
|
Login = 16,
|
|
|
|
Warning = 17,
|
|
|
|
Game = 18,
|
|
|
|
Failure = 19,
|
|
|
|
Look = 20,
|
|
|
|
DamageDealed = 21,
|
|
|
|
DamageReceived = 22,
|
|
|
|
Heal = 23,
|
|
|
|
Exp = 24,
|
|
|
|
DamageOthers = 25,
|
|
|
|
HealOthers = 26,
|
|
|
|
ExpOthers = 27,
|
|
|
|
Status = 28,
|
|
|
|
Loot = 29,
|
|
|
|
TradeNpc = 30,
|
|
|
|
Guild = 31,
|
|
|
|
PartyManagement = 32,
|
|
|
|
Party = 33,
|
|
|
|
BarkLow = 34,
|
|
|
|
BarkLoud = 35,
|
|
|
|
Report = 36,
|
|
|
|
HotkeyUse = 37,
|
|
|
|
TutorialHint = 38,
|
|
|
|
Thankyou = 39,
|
|
|
|
Market = 40,
|
|
|
|
BeyondLast = 41,
|
|
|
|
MonsterYell = 42,
|
|
|
|
MonsterSay = 43,
|
|
|
|
Red = 44,
|
|
|
|
Blue = 45,
|
|
|
|
RVRChannel = 46,
|
|
|
|
RVRAnswer = 47,
|
|
|
|
RVRContinue = 48,
|
|
|
|
Last = 49,
|
2013-02-19 02:18:10 +01:00
|
|
|
Invalid = 255,
|
2012-07-26 11:12:20 +02:00
|
|
|
}
|
|
|
|
|
2012-07-18 01:49:21 +02:00
|
|
|
OTSERV_RSA = "1091201329673994292788609605089955415282375029027981291234687579" ..
|
|
|
|
"3726629149257644633073969600111060390723088861007265581882535850" ..
|
|
|
|
"3429057592827629436413108566029093628212635953836686562675849720" ..
|
|
|
|
"6207862794310902180176810615217550567108238764764442605581471797" ..
|
|
|
|
"07119674283982419152118103759076030616683978566631413"
|
|
|
|
|
|
|
|
CIPSOFT_RSA = "1321277432058722840622950990822933849527763264961655079678763618" ..
|
|
|
|
"4334395343554449668205332383339435179772895415509701210392836078" ..
|
|
|
|
"6959821132214473291575712138800495033169914814069637740318278150" ..
|
|
|
|
"2907336840325241747827401343576296990629870233111328210165697754" ..
|
|
|
|
"88792221429527047321331896351555606801473202394175817"
|
|
|
|
|
2012-07-26 08:10:28 +02:00
|
|
|
-- set to the latest Tibia.pic signature to make otclient compatible with official tibia
|
2014-12-29 18:08:13 +01:00
|
|
|
PIC_SIGNATURE = 0x542100C1
|
2012-07-26 08:10:28 +02:00
|
|
|
|
2012-07-18 01:49:21 +02:00
|
|
|
OsTypes = {
|
|
|
|
Linux = 1,
|
|
|
|
Windows = 2,
|
|
|
|
Flash = 3,
|
|
|
|
OtclientLinux = 10,
|
|
|
|
OtclientWindows = 11,
|
2013-02-19 02:18:10 +01:00
|
|
|
OtclientMac = 12,
|
2012-07-18 01:49:21 +02:00
|
|
|
}
|
2012-06-26 00:13:30 +02:00
|
|
|
|
2012-08-22 04:10:56 +02:00
|
|
|
PathFindResults = {
|
2012-12-28 17:15:57 +01:00
|
|
|
Ok = 0,
|
|
|
|
Position = 1,
|
2013-01-03 23:42:02 +01:00
|
|
|
Impossible = 2,
|
2012-12-28 17:15:57 +01:00
|
|
|
TooFar = 3,
|
2013-02-19 02:18:10 +01:00
|
|
|
NoWay = 4,
|
2012-08-22 04:10:56 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
PathFindFlags = {
|
2012-12-28 17:15:57 +01:00
|
|
|
AllowNullTiles = 1,
|
|
|
|
AllowCreatures = 2,
|
|
|
|
AllowNonPathable = 4,
|
2013-02-19 02:18:10 +01:00
|
|
|
AllowNonWalkable = 8,
|
2012-12-28 17:15:57 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
VipState = {
|
|
|
|
Offline = 0,
|
|
|
|
Online = 1,
|
2013-02-19 02:18:10 +01:00
|
|
|
Pending = 2,
|
2012-08-22 04:10:56 +02:00
|
|
|
}
|
|
|
|
|
2013-01-21 22:36:53 +01:00
|
|
|
ExtendedIds = {
|
|
|
|
Activate = 0,
|
|
|
|
Locale = 1,
|
2013-02-19 02:18:10 +01:00
|
|
|
Ping = 2,
|
|
|
|
Sound = 3,
|
|
|
|
Game = 4,
|
|
|
|
Particles = 5,
|
|
|
|
MapShader = 6,
|
|
|
|
NeedsUpdate = 7
|
2013-01-21 22:36:53 +01:00
|
|
|
}
|
|
|
|
|
2014-12-29 18:08:13 +01:00
|
|
|
PreviewState = {
|
|
|
|
Default = 0,
|
|
|
|
Inactive = 1,
|
|
|
|
Active = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
Blessings = {
|
|
|
|
None = 0,
|
|
|
|
Adventurer = 1,
|
|
|
|
SpiritualShielding = 2,
|
|
|
|
EmbraceOfTibia = 4,
|
|
|
|
FireOfSuns = 8,
|
|
|
|
WisdomOfSolitude = 16,
|
|
|
|
SparkOfPhoenix = 32
|
|
|
|
}
|
|
|
|
|
2012-07-18 01:49:21 +02:00
|
|
|
-- @}
|