Table Of Contents

Previous topic

game Package

Next topic

service Package

This Page

protocols Package

860 Module

class game.protocols.860.Packet(header=None)

Bases: game.protocols.base.BasePacket

cooldownGroup(group, cooldown)
cooldownIcon(icon, cooldown)
creature(creature, known, removeKnown=0, player=None)
enum(key)
item(item, count=None)
maxKnownCreatures = 250
maxMounts = 0
maxOutfits = 25
message(player, message, msgType='_MSG_STATUS_DEFAULT ', color=0, value=0, pos=None)
outfit(look, addon=0, mount=0)
protocolEnums = {'_MSG_DAMAGE_RECEIVED': 23, '_MSG_EVENT_ADVANCE': 22, '_MSG_STATUS_CONSOLE_RED': 18, '_MSG_EXPERIENCE': 22, '_MSG_STATUS_DEFAULT': 24, '_MSG_DAMAGE_DEALT': 23, '_MSG_STATUS_SMALL': 26, '_MSG_SPEAK_YELL': 3, '_MSG_STATUS_CONSOLE_ORANGE': 20, '_MSG_EVENT_DEFAULT': 23, '_MSG_INFO_DESCR': 25, '_MSG_EVENT_ORANGE': 19, '_MSG_SPEAK_MONSTER_SAY': 19, '_MSG_NPC_TO': 4, '_MSG_NONE': 0, '_MSG_SPEAK_MONSTER_YELL': 20, '_MSG_NPC_FROM': 5, '_MSG_STATUS_WARNING': 21, '_MSG_HEALED': 12, '_MSG_STATUS_CONSOLE_BLUE': 27, 'SKULL_ORANGE': 0, '_MSG_LOOT': 25, '_MSG_SPEAK_WHISPER': 2, '_MSG_SPEAK_SAY': 1}
skills(player)
skull(creatureId, skull)
status(player)
tileDescription(tile, player)
violation(flag)
class game.protocols.860.Protocol

Bases: game.protocols.base.BaseProtocol

class Packet(header=None)

Bases: game.protocols.base.BasePacket

cooldownGroup(group, cooldown)
cooldownIcon(icon, cooldown)
creature(creature, known, removeKnown=0, player=None)
enum(key)
item(item, count=None)
maxKnownCreatures = 250
maxMounts = 0
maxOutfits = 25
message(player, message, msgType='_MSG_STATUS_DEFAULT ', color=0, value=0, pos=None)
outfit(look, addon=0, mount=0)
protocolEnums = {'_MSG_DAMAGE_RECEIVED': 23, '_MSG_EVENT_ADVANCE': 22, '_MSG_STATUS_CONSOLE_RED': 18, '_MSG_EXPERIENCE': 22, '_MSG_STATUS_DEFAULT': 24, '_MSG_DAMAGE_DEALT': 23, '_MSG_STATUS_SMALL': 26, '_MSG_SPEAK_YELL': 3, '_MSG_STATUS_CONSOLE_ORANGE': 20, '_MSG_EVENT_DEFAULT': 23, '_MSG_INFO_DESCR': 25, '_MSG_EVENT_ORANGE': 19, '_MSG_SPEAK_MONSTER_SAY': 19, '_MSG_NPC_TO': 4, '_MSG_NONE': 0, '_MSG_SPEAK_MONSTER_YELL': 20, '_MSG_NPC_FROM': 5, '_MSG_STATUS_WARNING': 21, '_MSG_HEALED': 12, '_MSG_STATUS_CONSOLE_BLUE': 27, 'SKULL_ORANGE': 0, '_MSG_LOOT': 25, '_MSG_SPEAK_WHISPER': 2, '_MSG_SPEAK_SAY': 1}
skills(player)
skull(creatureId, skull)
status(player)
tileDescription(tile, player)
violation(flag)
game.protocols.860.verify()

if config.allowMounts: log.msg(“Protocol 860 doesn’t allow mounts”) return False

910 Module

class game.protocols.910.Packet(header=None)

Bases: game.protocols.base.BasePacket

class game.protocols.910.Protocol

Bases: game.protocols.base.BaseProtocol

game.protocols.910.verify()

base Module

class game.protocols.base.BasePacket(header=None)

Bases: packet.TibiaPacket

addContainerItem(openId, item)
addInventoryItem(pos, item)
addTileCreature(pos, stackpos, creature, player=None, resend=False)
addTileItem(pos, stackpos, item)
cooldownGroup(group, cooldown)
cooldownIcon(icon, cooldown)
creature(creature, known, removeKnown=0, player=None)
creaturelight(cid, level, color)
delayWalk(delay)
dialog(player, dialogId, title, message, buttons=['Ok', 'Exit'], defaultEnter=0, defaultExit=1)
enum(key)
exit(message)
floorDescription(_x, _y, _z, width, height, offset, skip, player)
icons(icons)
item(item, count=None)
magicEffect(pos, type)
mapDescription(position, width, height, player)
maxKnownCreatures = 1300
maxMounts = 25
maxOutfits = 29
message(player, message, msgType='_MSG_STATUS_DEFAULT ', color=0, value=0, pos=None)
moveDownPlayer(player, oldPos)
moveUpPlayer(player, oldPos)
openChannel(channel)
openChannels(channels)
outfit(look, addon=0, mount=0)
playerInfo(player)
position(position)
protocolEnums = {}
removeContainerItem(openId, slot)
removeInventoryItem(pos)
removeTileItem(pos, stackpos)
say(player, message, msgType='_MSG_STATUS_DEFAULT ', color=0, value=0, pos=None)
shield(creatureId, shield)
shoot(fromPos, toPos, type)
skills(player)
skull(creatureId, skull)
status(player)
tileDescription(tile, player)
updateContainerItem(openId, slot, item)
updateTileItem(pos, stackpos, item)
violation(flag)
vip(playerId, playerName, online=False)
vipLogin(playerId)
vipLogout(playerId)
worldlight(level, color)
class game.protocols.base.BaseProtocol

Bases: object

Packet

alias of BasePacket

enum(key)
handle(player, packet)
handleAcceptOffer(player, packet)
handleAcceptTrade(player, packet)
handleAddVip(player, packet)
handleArrowUpContainer(player, packet)
handleAttack(player, packet)
handleAutoWalk(player, packet)
handleBrowseMarket(player, packet)
handleCancelOffer(player, packet)
handleCloseChannel(player, packet)
handleCloseContainer(player, packet)
handleCloseMarket(player, packet)
handleCloseTrade(player, packet, c=False)
handleCloseTradeNPC(player, packet)
handleCreateMarketOffer(player, packet)
handleDebugAssert(player, packet)
handleDialog(player, packet)
handleFollow(player, packet)
handleInviteToParty(player, packet)
handleJoinParty(player, packet)
handleKeepAlive(player, packet)
handleLeaveParty(player, packet)
handleLogout(player, packet)
handleLookAt(player, packet)
handleLookAtInTrade(player, packet)
handleLookAtTrade(player, packet)
handleMoveItem(*args, **kwargs)
handleOpenChannel(player, packet)
handleOpenPrivateChannel(player, packeet)
handleOpenQuestLog(player, packet)
handlePassPartyLeadership(player, packet)
handlePing(player, packet)
handlePlayerBuy(player, packet)
handlePlayerSale(player, packet)
handleQuestLine(player, packet)
handleRemoveVip(player, packet)
handleRequestChannels(player, packet)
handleRequestOutfit(player, packet)
handleRequestTrade(player, packet)
handleRevokePartyInvite(player, packet)
handleRotateItem(player, packet)
handleSay(player, packet)
handleSetModes(player, packet)
handleSetMounted(player, packet)
handleSetOutfit(player, packet)
handleShareExperience(player, packet)
handleStop(player, packet)
handleStopAutoWalk(player, packet)
handleThanks(*args, **kwargs)
handleTurn0(player, packet)
handleTurn1(player, packet)
handleTurn2(player, packet)
handleTurn3(player, packet)
handleUpdateContainer(player, packet)
handleUpdateTile(player, packet)
handleUse(*args, **kwargs)
handleUseBattleWindow(*args, **kwargs)
handleUseWith(*args, **kwargs)
handleWalk(player, direction)
handleWalkEast(player, packet)
handleWalkNorth(player, packet)
handleWalkNorthEast(player, packet)
handleWalkNorthWest(player, packet)
handleWalkSouth(player, packet)
handleWalkSouthEast(player, packet)
handleWalkSouthWest(player, packet)
handleWalkWest(player, packet)
handleWriteBack(player, packet)
handleWriteBackForHouses(player, packet)
game.protocols.base.packet(opcode)