Documentation
¶
Overview ¶
Package network encodes and decodes Ragnarok Online packets and manages socket I/O. It should expose parsed protocol facts without making UI or gameplay policy decisions.
Index ¶
- Constants
- Variables
- func BuildAccountLoginPacket(login AccountLogin) []byte
- func BuildAckFriendRequestPacket(accountID, charID uint32, accepted bool) []byte
- func BuildActionRequestPacket(targetGID uint32, action uint8) []byte
- func BuildActionRequestPacketForClientDate(targetGID uint32, action uint8, clientDate int) []byte
- func BuildAddFriendPacket(name string) []byte
- func BuildAdoptionReplyPacket(fatherAccountID, motherAccountID uint32, accepted bool) []byte
- func BuildAdoptionRequestPacket(targetAccountID uint32) []byte
- func BuildAgreeStarPlacePacket(place uint8) []byte
- func BuildAutoRevivePacket() []byte
- func BuildBuyItemListPacket(items []BuyRequestItem) []byte
- func BuildCancelVendingStoreOpenPacket() []byte
- func BuildChangeCartPacket(cartNum uint16) []byte
- func BuildChangeDirectionPacket(headDir, dir uint8) []byte
- func BuildChangeDirectionPacketForClientDate(headDir, dir uint8, clientDate int) []byte
- func BuildChangeGuildMemberPositionPacket(members []GuildMemberPosition) []byte
- func BuildCharServerEnterPacket(enter CharServerEnter) []byte
- func BuildCloseStoragePacketForClientDate(clientDate int) []byte
- func BuildCloseVendingStorePacket() []byte
- func BuildCommandPetPacket(command uint8) []byte
- func BuildCompanionAttackPacket(gid, targetGID uint32, action uint8) []byte
- func BuildCompanionMovePacket(gid uint32, x, y int) ([]byte, bool)
- func BuildCompanionMoveToOwnerPacket(gid uint32) []byte
- func BuildCreateChatRoomPacket(room ChatRoomCreate) []byte
- func BuildCreateGuildPacket(charID uint32, name string) []byte
- func BuildDeleteCharacterPacket(clientDate int, charID uint32, key string) []byte
- func BuildDeleteFriendPacket(accountID, charID uint32) []byte
- func BuildDeleteGuildRelationPacket(guildID, relation uint32) []byte
- func BuildDisbandGuildPacket(name string) []byte
- func BuildDoriDoriPacket() []byte
- func BuildDropInventoryItemPacket(index, amount uint16) []byte
- func BuildDropInventoryItemPacketForClientDate(index, amount uint16, clientDate int) []byte
- func BuildEmotionPacket(emotionType uint8) []byte
- func BuildEnterChatRoomPacket(roomID uint32, password string) []byte
- func BuildExitChatRoomPacket() []byte
- func BuildExpelGuildMemberPacket(guildID, accountID, charID uint32, reason string) []byte
- func BuildExpelPartyMemberPacket(accountID uint32, name string) []byte
- func BuildFameRankingRequestPacket(kind FameRankingKind) ([]byte, error)
- func BuildGlobalChatPacket(name, message string) []byte
- func BuildGlobalChatPacketForClientDate(name, message string, clientDate int) []byte
- func BuildGuildAllianceReplyPacket(accountID uint32, accept bool) []byte
- func BuildGuildAllianceRequestPacket(targetAID, accountID, charID uint32) []byte
- func BuildGuildEmblemRequestPacket(guildID uint32) []byte
- func BuildGuildHostilityRequestPacket(targetAID uint32) []byte
- func BuildGuildInviteReplyPacket(guildID uint32, accept bool) []byte
- func BuildGuildMenuInterfaceRequestPacket() []byte
- func BuildGuildMenuRequestPacket(tab uint32) []byte
- func BuildGuildMessagePacket(message string) []byte
- func BuildGuildNoticePacket(guildID uint32, subject, notice string) []byte
- func BuildHomunculusCommandPacket(command uint8) []byte
- func BuildHomunculusCommandPacketWithType(commandType uint16, command uint8) []byte
- func BuildHomunculusRenamePacket(name string) []byte
- func BuildHotkeyPacket(index uint16, slot HotkeySlot) []byte
- func BuildItemCompositionListPacket(cardIndex uint16) []byte
- func BuildItemCompositionPacket(cardIndex, equipIndex uint16) []byte
- func BuildItemIdentifyPacket(index uint16) []byte
- func BuildItemPickupPacket(gid uint32) []byte
- func BuildItemPickupPacketForClientDate(gid uint32, clientDate int) []byte
- func BuildLeaveGuildPacket(guildID, accountID, charID uint32, reason string) []byte
- func BuildLeavePartyPacket() []byte
- func BuildLessEffectPacket(enabled bool) []byte
- func BuildLoadEndAckPacket() []byte
- func BuildLoginServerKeepalivePacket(username string) []byte
- func BuildMailAddAttachmentPacket(index uint16, amount uint32) []byte
- func BuildMailDeletePacket(id uint32) []byte
- func BuildMailGetAttachmentPacket(id uint32) []byte
- func BuildMailReadPacket(id uint32) []byte
- func BuildMailRefreshPacket() []byte
- func BuildMailResetPacket(kind MailResetType) []byte
- func BuildMailReturnPacket(id uint32, sender string) []byte
- func BuildMailSendPacket(recipient, title, body string) ([]byte, error)
- func BuildMakeCharacterPacket(character MakeCharacter) []byte
- func BuildMakeParty2Packet(name string, itemPickupRule, itemDivisionRule uint8) []byte
- func BuildMakePartyPacket(name string) []byte
- func BuildMakingArrowPacket(itemID uint16) []byte
- func BuildMakingItemPacket(itemID uint16, material [3]uint16) []byte
- func BuildMapServerEnterPacket(enter MapServerEnter) []byte
- func BuildMapServerEnterPacketForClientDate(enter MapServerEnter, clientDate int) []byte
- func BuildMercenaryCommandPacket(command uint8) []byte
- func BuildMoveCartToStoragePacket(index uint16, amount uint32) []byte
- func BuildMoveFromCartPacket(index uint16, amount uint32) []byte
- func BuildMoveFromStoragePacketForClientDate(index uint16, amount uint32, clientDate int) []byte
- func BuildMoveStorageToCartPacket(index uint16, amount uint32) []byte
- func BuildMoveToCartPacket(index uint16, amount uint32) []byte
- func BuildMoveToStoragePacketForClientDate(index uint16, amount uint32, clientDate int) []byte
- func BuildNPCClosePacket(npcID uint32) []byte
- func BuildNPCContactPacket(npcID uint32, contactType uint8) []byte
- func BuildNPCMenuChoicePacket(npcID uint32, choice uint8) []byte
- func BuildNPCNextPacket(npcID uint32) []byte
- func BuildNPCNumberInputPacket(npcID uint32, value int32) []byte
- func BuildNPCStringInputPacket(npcID uint32, value string) []byte
- func BuildNameRequestPacket(gid uint32) []byte
- func BuildNameRequestPacketForClientDate(gid uint32, clientDate int) ([]byte, bool)
- func BuildOpenVendingStorePacket(name string, items []VendingOpenItem) []byte
- func BuildPartyInviteAckPacket(requestID uint32, accepted bool) []byte
- func BuildPartyInviteConfigPacket(refuseInvites bool) []byte
- func BuildPartyInvitePacket(accountID uint32, name string) []byte
- func BuildPartyMessagePacket(message string) []byte
- func BuildPartyOptionPacket(expOption uint32) []byte
- func BuildPetActPacket(data uint32) []byte
- func BuildPingPacket(accountID uint32) []byte
- func BuildProgressBarDonePacket() []byte
- func BuildPvPInfoRequestPacket(charID, accountID uint32) []byte
- func BuildQuitGamePacket() []byte
- func BuildRegisterGuildEmblemPacket(bmp []byte) ([]byte, error)
- func BuildRegisterGuildPositionsPacket(positions []GuildPosition) []byte
- func BuildRememberWarpPointPacket() []byte
- func BuildRemoveOptionPacket() []byte
- func BuildRenamePetPacket(name string) []byte
- func BuildRepairItemPacket(item RepairItem) []byte
- func BuildRequestGuildInvitePacket(targetAID, inviterAID, inviterCharID uint32) []byte
- func BuildRestartPacket(restartType uint8) []byte
- func BuildSelectAutoSpellPacket(skillID uint16) []byte
- func BuildSelectCharacterPacket(slot uint8) []byte
- func BuildSelectPetEggPacket(index uint16) []byte
- func BuildSelectWarpPointPacket(skillID uint16, mapName string) []byte
- func BuildSellItemListPacket(items []SellRequestItem) []byte
- func BuildShopDealSelectionPacket(npcID uint32, dealType uint8) []byte
- func BuildShowEquipConfigPacket(enabled bool) []byte
- func BuildSkillLevelUpPacket(skillID uint16) []byte
- func BuildStatusIncreasePacket(statusID uint16) []byte
- func BuildStoragePasswordReplyPacket(replyType StoragePasswordReplyType, password, newPassword string) []byte
- func BuildTakeoffEquipPacket(index uint16) []byte
- func BuildTickSendPacket(clientTick uint32) []byte
- func BuildTickSendPacketForClientDate(clientTick uint32, clientDate int) []byte
- func BuildTradeAckPacket(accept bool) []byte
- func BuildTradeAddItemPacket(index uint16, amount uint32) []byte
- func BuildTradeCancelPacket() []byte
- func BuildTradeCommitPacket() []byte
- func BuildTradeConcludePacket() []byte
- func BuildTradeRequestPacket(targetID uint32) []byte
- func BuildTryCaptureMonsterPacket(targetID uint32) []byte
- func BuildUseInventoryItemPacketForClientDate(index uint16, targetAID uint32, clientDate int) []byte
- func BuildUseSkillToGroundPacketForClientDate(skillID, level uint16, x, y int, clientDate int) []byte
- func BuildUseSkillToGroundWithTextPacketForClientDate(skillID, level uint16, x, y int, text string, clientDate int) []byte
- func BuildUseSkillToIDPacketForClientDate(skillID, level uint16, targetID uint32, clientDate int) []byte
- func BuildVendingListRequestPacket(ownerAID uint32) []byte
- func BuildVendingPurchasePacket(ownerAID uint32, items []VendingPurchaseItem) []byte
- func BuildViewPlayerEquipmentPacket(targetID uint32) []byte
- func BuildWalkToXYPacket(x, y int) ([]byte, bool)
- func BuildWalkToXYPacketForClientDate(x, y, clientDate int) ([]byte, bool)
- func BuildWeaponRefinePacket(index uint32) []byte
- func BuildWearEquipPacket(index, location uint16) []byte
- func BuildWhisperIgnoreAllPacket(allow bool) []byte
- func BuildWhisperIgnorePacket(name string, allow bool) []byte
- func BuildWhisperPacket(receiver, message string) []byte
- func EncodeMoveDestination(x, y int) ([3]byte, bool)
- func ID(data []byte) uint16
- func IsInterServerDisconnect(packet Packet) bool
- func ParseAdoptionStarted(packet Packet) bool
- func ParseCartClosed(packet Packet) bool
- func ParseDeleteCharacterAccept(packet Packet) error
- func ParseDeleteCharacterRefuse(packet Packet) (uint8, error)
- func ParseLessEffect(packet Packet) (bool, bool, error)
- func ParseMailWindow(packet Packet) (bool, bool, error)
- func ParseMakeCharacterRefuse(packet Packet) (uint8, error)
- func ParseProgressBarCancel(packet Packet) (bool, error)
- func ParseShowEquipConfig(packet Packet) (bool, bool, error)
- func ParseStorageClosed(packet Packet) bool
- func ParseTradeCanceled(packet Packet) bool
- func ParseTradeUndo(packet Packet) bool
- type AccountAcceptLogin
- type AccountLogin
- type AccountRefuseLogin
- type ActorActionNotify
- type ActorBladeStop
- type ActorDirectionChange
- type ActorEntry
- type ActorHPUpdate
- type ActorJumpPosition
- type ActorLookChange
- type ActorNameAck
- type ActorResurrection
- type ActorSetPosition
- type ActorStateChange
- type ActorVanish
- type AdoptionMessage
- type AdoptionRequest
- type AttackFailureForDistance
- type AutoRunSkill
- type AutoSpellList
- type BossInfo
- type BossInfoKind
- type BuyRequestItem
- type CartAddAck
- type CartAmount
- type CartItemRemoved
- type CharList
- type CharServer
- type CharServerEnter
- type Character
- type ChatMessage
- type ChatRoomBoard
- type ChatRoomChange
- type ChatRoomCreate
- type ChatRoomCreateAck
- type ChatRoomDestroy
- type ChatRoomEnter
- type ChatRoomMember
- type ChatRoomMemberJoin
- type ChatRoomMemberLeave
- type ChatRoomRoleChange
- type Client
- func (c *Client) Close()
- func (c *Client) Connect(ctx context.Context, address string, port int) error
- func (c *Client) DrainErrors() []error
- func (c *Client) DrainPackets() []Packet
- func (c *Client) Pump()
- func (c *Client) Send(data []byte) error
- func (c *Client) SendAccountLogin(username, password string, version uint32, clientType uint8) error
- func (c *Client) SendActionRequest(targetGID uint32, action uint8) error
- func (c *Client) SendAddFriend(name string) error
- func (c *Client) SendAdoptionReply(fatherAccountID, motherAccountID uint32, accepted bool) error
- func (c *Client) SendAdoptionRequest(targetAccountID uint32) error
- func (c *Client) SendAgreeStarPlace(place uint8) error
- func (c *Client) SendAutoRevive() error
- func (c *Client) SendCancelVendingStoreOpen() error
- func (c *Client) SendChangeCart(cartNum uint16) error
- func (c *Client) SendChangeDirection(headDir, dir uint8) error
- func (c *Client) SendCharServerEnter(accountID, authCode, userLevel uint32, sex uint8) error
- func (c *Client) SendCloseStorage() error
- func (c *Client) SendCloseVendingStore() error
- func (c *Client) SendCompanionAttack(gid, targetGID uint32) error
- func (c *Client) SendCompanionMove(gid uint32, x, y int) error
- func (c *Client) SendCompanionMoveToOwner(gid uint32) error
- func (c *Client) SendCreateChatRoom(room ChatRoomCreate) error
- func (c *Client) SendCreateGuild(charID uint32, name string) error
- func (c *Client) SendDeleteCharacter(charID uint32, key string) error
- func (c *Client) SendDeleteFriend(accountID, charID uint32) error
- func (c *Client) SendDeleteGuildRelation(guildID, relation uint32) error
- func (c *Client) SendDisbandGuild(name string) error
- func (c *Client) SendDoriDori() error
- func (c *Client) SendDropInventoryItem(index, amount uint16) error
- func (c *Client) SendEmotion(emotionType uint8) error
- func (c *Client) SendEnterChatRoom(roomID uint32, password string) error
- func (c *Client) SendExitChatRoom() error
- func (c *Client) SendExpelGuildMember(guildID, accountID, charID uint32, reason string) error
- func (c *Client) SendExpelPartyMember(accountID uint32, name string) error
- func (c *Client) SendFameRankingRequest(kind FameRankingKind) error
- func (c *Client) SendFriendRequestAck(accountID, charID uint32, accepted bool) error
- func (c *Client) SendGlobalChat(name, message string) error
- func (c *Client) SendGuildAllianceReply(accountID uint32, accept bool) error
- func (c *Client) SendGuildAllianceRequest(targetAID, accountID, charID uint32) error
- func (c *Client) SendGuildEmblem(bmp []byte) error
- func (c *Client) SendGuildEmblemRequest(guildID uint32) error
- func (c *Client) SendGuildHostilityRequest(targetAID uint32) error
- func (c *Client) SendGuildInvite(targetAID, inviterAID, inviterCharID uint32) error
- func (c *Client) SendGuildInviteReply(guildID uint32, accept bool) error
- func (c *Client) SendGuildMemberPositions(members []GuildMemberPosition) error
- func (c *Client) SendGuildMenuInterfaceRequest() error
- func (c *Client) SendGuildMenuRequest(tab uint32) error
- func (c *Client) SendGuildMessage(message string) error
- func (c *Client) SendGuildNotice(guildID uint32, subject, notice string) error
- func (c *Client) SendGuildPositions(positions []GuildPosition) error
- func (c *Client) SendHomunculusCommand(command uint8) error
- func (c *Client) SendHomunculusDelete() error
- func (c *Client) SendHomunculusFeed() error
- func (c *Client) SendHomunculusRename(name string) error
- func (c *Client) SendHotkey(index uint16, slot HotkeySlot) error
- func (c *Client) SendItemComposition(cardIndex, equipIndex uint16) error
- func (c *Client) SendItemCompositionList(cardIndex uint16) error
- func (c *Client) SendItemIdentify(index uint16) error
- func (c *Client) SendItemPickup(gid uint32) error
- func (c *Client) SendLeaveGuild(guildID, accountID, charID uint32, reason string) error
- func (c *Client) SendLeaveParty() error
- func (c *Client) SendLessEffect(enabled bool) error
- func (c *Client) SendLoadEndAck() error
- func (c *Client) SendLoginServerKeepalive(username string) error
- func (c *Client) SendMail(recipient, title, body string) error
- func (c *Client) SendMailAddAttachment(index uint16, amount uint32) error
- func (c *Client) SendMailDelete(id uint32) error
- func (c *Client) SendMailGetAttachment(id uint32) error
- func (c *Client) SendMailRead(id uint32) error
- func (c *Client) SendMailRefresh() error
- func (c *Client) SendMailReset(kind MailResetType) error
- func (c *Client) SendMailReturn(id uint32, sender string) error
- func (c *Client) SendMakeCharacter(character MakeCharacter) error
- func (c *Client) SendMakeParty(name string) error
- func (c *Client) SendMakeParty2(name string, itemPickupRule, itemDivisionRule uint8) error
- func (c *Client) SendMakingArrow(itemID uint16) error
- func (c *Client) SendMakingItem(itemID uint16, material [3]uint16) error
- func (c *Client) SendMapServerEnter(accountID, charID, authCode, clientTick uint32, sex uint8) error
- func (c *Client) SendMercenaryCommand(command uint8) error
- func (c *Client) SendMoveCartToStorage(index uint16, amount uint32) error
- func (c *Client) SendMoveFromCart(index uint16, amount uint32) error
- func (c *Client) SendMoveFromStorage(index uint16, amount uint32) error
- func (c *Client) SendMoveStorageToCart(index uint16, amount uint32) error
- func (c *Client) SendMoveToCart(index uint16, amount uint32) error
- func (c *Client) SendMoveToStorage(index uint16, amount uint32) error
- func (c *Client) SendNPCClose(npcID uint32) error
- func (c *Client) SendNPCContact(npcID uint32) error
- func (c *Client) SendNPCMenuChoice(npcID uint32, choice uint8) error
- func (c *Client) SendNPCNext(npcID uint32) error
- func (c *Client) SendNPCNumberInput(npcID uint32, value int32) error
- func (c *Client) SendNPCStringInput(npcID uint32, value string) error
- func (c *Client) SendNameRequest(gid uint32) error
- func (c *Client) SendOpenVendingStore(name string, items []VendingOpenItem) error
- func (c *Client) SendPartyInvite(accountID uint32, name string) error
- func (c *Client) SendPartyInviteAck(requestID uint32, accepted bool) error
- func (c *Client) SendPartyInviteConfig(refuseInvites bool) error
- func (c *Client) SendPartyMessage(message string) error
- func (c *Client) SendPartyOption(expOption uint32) error
- func (c *Client) SendPetAct(data uint32) error
- func (c *Client) SendPetCommand(command uint8) error
- func (c *Client) SendPing(accountID uint32) error
- func (c *Client) SendProgressBarDone() error
- func (c *Client) SendPvPInfoRequest(charID, accountID uint32) error
- func (c *Client) SendQuitGame() error
- func (c *Client) SendRememberWarpPoint() error
- func (c *Client) SendRemoveOption() error
- func (c *Client) SendRenamePet(name string) error
- func (c *Client) SendRepairItem(item RepairItem) error
- func (c *Client) SendRestart(restartType uint8) error
- func (c *Client) SendSelectAutoSpell(skillID uint16) error
- func (c *Client) SendSelectCharacter(slot uint8) error
- func (c *Client) SendSelectPetEgg(index uint16) error
- func (c *Client) SendSelectWarpPoint(skillID uint16, mapName string) error
- func (c *Client) SendShopBuyItems(items []BuyRequestItem) error
- func (c *Client) SendShopDealSelection(npcID uint32, dealType uint8) error
- func (c *Client) SendShopSellItems(items []SellRequestItem) error
- func (c *Client) SendShowEquipConfig(enabled bool) error
- func (c *Client) SendSkillLevelUp(skillID uint16) error
- func (c *Client) SendStatusIncrease(statusID uint16) error
- func (c *Client) SendStoragePasswordReply(replyType StoragePasswordReplyType, password, newPassword string) error
- func (c *Client) SendTakeoffEquip(index uint16) error
- func (c *Client) SendTradeAck(accept bool) error
- func (c *Client) SendTradeAddItem(index uint16, amount uint32) error
- func (c *Client) SendTradeCancel() error
- func (c *Client) SendTradeCommit() error
- func (c *Client) SendTradeConclude() error
- func (c *Client) SendTradeRequest(targetID uint32) error
- func (c *Client) SendTryCaptureMonster(targetID uint32) error
- func (c *Client) SendUseInventoryItem(index uint16, targetAID uint32) error
- func (c *Client) SendUseSkillToGround(skillID, level uint16, x, y int) error
- func (c *Client) SendUseSkillToGroundWithText(skillID, level uint16, x, y int, text string) error
- func (c *Client) SendUseSkillToID(skillID, level uint16, targetID uint32) error
- func (c *Client) SendVendingListRequest(ownerAID uint32) error
- func (c *Client) SendVendingPurchase(ownerAID uint32, items []VendingPurchaseItem) error
- func (c *Client) SendViewPlayerEquipment(targetID uint32) error
- func (c *Client) SendWalkToXY(x, y int) error
- func (c *Client) SendWeaponRefine(index uint32) error
- func (c *Client) SendWearEquip(index, location uint16) error
- func (c *Client) SendWhisper(receiver, message string) error
- func (c *Client) SendWhisperIgnore(name string, allow bool) error
- func (c *Client) SendWhisperIgnoreAll(allow bool) error
- func (c *Client) Status() string
- type EmotionNotify
- type EquippedArrow
- type ExpNotify
- type FamePointUpdate
- type FameRanking
- type FameRankingEntry
- type FameRankingKind
- type FloorItemDisappear
- type FloorItemEntry
- type FrameError
- type Framer
- type Friend
- type FriendAddResult
- type FriendDelete
- type FriendRequest
- type FriendState
- type GroundSkillNotify
- type GuildAllianceRequest
- type GuildAllianceResult
- type GuildBelonging
- type GuildChat
- type GuildCreationResult
- type GuildDisbandResult
- type GuildEmblemChange
- type GuildEmblemImage
- type GuildExpelHistory
- type GuildHostilityResult
- type GuildInfo
- type GuildInviteAck
- type GuildInviteRequest
- type GuildMember
- type GuildMemberDeparture
- type GuildMemberExpulsion
- type GuildMemberLocation
- type GuildMemberPosition
- type GuildMemberState
- type GuildMenuAccess
- type GuildNotice
- type GuildPosition
- type GuildRelation
- type GuildRelationDeleted
- type GuildSkillInfo
- type HomunculusFeedResult
- type HomunculusParamChange
- type HomunculusProperty
- type HomunculusSkillInfoList
- type HomunculusSkillInfoUpdate
- type HomunculusStateChange
- type HotkeyList
- type HotkeySlot
- type InventoryEquipAck
- type InventoryItem
- func ParseCartItemAdded(packet Packet) (InventoryItem, bool, error)
- func ParseCartItemList(packet Packet) ([]InventoryItem, bool, error)
- func ParseInventoryItemList(packet Packet) ([]InventoryItem, bool, error)
- func ParseStorageItemAdded(packet Packet) (InventoryItem, bool, error)
- func ParseStorageItemList(packet Packet) ([]InventoryItem, bool, error)
- type InventoryItemDelete
- type ItemCompositionAck
- type ItemCompositionList
- type ItemIdentifyAck
- type ItemIdentifyList
- type ItemPickupAck
- type LengthTable
- type MVPNotify
- type MailAttachment
- type MailEntry
- type MailMessage
- type MailResetType
- type MailResult
- type MakeCharacter
- type MakingArrowList
- type MakingItemAck
- type MakingItemList
- type MakingItemOption
- type MapAcceptEnter
- type MapCellUpdate
- type MapChange
- type MapInfoNotify
- type MapPropertyNotify
- type MapServerEnter
- type MercenaryParamChange
- type MercenaryProperty
- type MercenarySkillInfoList
- type MercenarySkillInfoUpdate
- type MinimapCompass
- type MonsterElementRates
- type MonsterInfo
- type NPCCutin
- type NPCDialog
- type NPCDialogKind
- type NotifyBan
- type Packet
- type ParameterChange
- type PartyChat
- type PartyCreateResult
- type PartyInviteAnswer
- type PartyInviteConfig
- type PartyInviteRequest
- type PartyList
- type PartyMember
- type PartyMemberHP
- type PartyMemberLeave
- type PartyMemberPosition
- type PartyOption
- type PetAction
- type PetCaptureResult
- type PetCaptureStart
- type PetEggList
- type PetFeedResult
- type PetProperty
- type PetStateChange
- type ProgressBar
- type PvPInfo
- type PvPRanking
- type QuitGameAck
- type Recovery
- type RememberWarpPointAck
- type RepairItem
- type RepairItemAck
- type RepairItemList
- type RestartAck
- type SelfMoveAck
- type SellRequestItem
- type ShopBuyItem
- type ShopDealSelection
- type ShopResult
- type ShopSellItem
- type ShowDigit
- type ShowDigitMode
- type SkillCastNotify
- type SkillFailAck
- type SkillInfo
- type SkillInfoList
- type SkillInfoUpdate
- type SkillMessage
- type SkillNoDamageNotify
- type SkillUnitDisappear
- type SkillUnitEntry
- type SkillUnitUpdate
- type SpecialEffectNotify
- type StarPlace
- type StatusChangeAck
- type StatusEffectChange
- type StatusSnapshot
- type StorageAmount
- type StorageItemRemoved
- type StoragePasswordPrompt
- type StoragePasswordPromptState
- type StoragePasswordReplyType
- type StoragePasswordResult
- type StoragePasswordResultCode
- type TaekwonMission
- type TradeAddItemAck
- type TradeConclude
- type TradeExec
- type TradeItem
- type TradeRequest
- type TradeResponse
- type UseItemAck
- type VendingBoard
- type VendingBoardDisappear
- type VendingItem
- type VendingItemList
- type VendingOpenItem
- type VendingOpenRequest
- type VendingPurchaseItem
- type VendingPurchaseResult
- type VendingSoldItem
- type ViewedEquipment
- type WarpPointList
- type WeaponRefineAck
- type WeaponRefineItem
- type WeaponRefineList
- type WhisperAck
- type WhisperIgnoreAck
- type WhisperMessage
- type Writer
- type ZoneServerNotify
Constants ¶
View Source
const ( ActorActionPickupItem uint8 = 1 ActorActionSkill uint8 = 6 )
View Source
const ( PacketZCReqBaby uint16 = 0x01F6 PacketCZJoinBaby uint16 = 0x01F7 PacketZCStartBaby uint16 = 0x01F8 PacketCZReqBaby uint16 = 0x01F9 PacketZCBabyMsg uint16 = 0x0216 )
View Source
const ( PacketCZRequestChatLegacy uint16 = 0x008C PacketCZRequestChat uint16 = 0x00F3 PacketCZWhisper uint16 = 0x0096 PacketCZWhisperIgnore uint16 = 0x00CF PacketCZWhisperIgnoreAll uint16 = 0x00D0 PacketCZCreateChatRoom uint16 = 0x00D5 PacketCZEnterChatRoom uint16 = 0x00D9 PacketCZExitChatRoom uint16 = 0x00E3 PacketZCNotifyChat uint16 = 0x008D PacketZCNotifyPlayerChat uint16 = 0x008E PacketZCWhisper uint16 = 0x0097 PacketZCAckWhisper uint16 = 0x0098 PacketZCWhisperIgnoreAck uint16 = 0x00D1 PacketZCWhisperAllAck uint16 = 0x00D2 PacketZCAckCreateChatRoom uint16 = 0x00D6 PacketZCChatRoomBoard uint16 = 0x00D7 PacketZCDestroyChatRoom uint16 = 0x00D8 PacketZCChatRoomChanged uint16 = 0x00DF PacketZCChatRoomEnter uint16 = 0x00DB PacketZCChatRoomJoin uint16 = 0x00DC PacketZCChatRoomLeave uint16 = 0x00DD PacketZCChatRoomRole uint16 = 0x00E1 PacketZCBroadcast uint16 = 0x009A PacketZCBroadcast2 uint16 = 0x01C3 PacketZCNPCChat uint16 = 0x02C1 PacketZCMsg uint16 = 0x0291 PacketZCMsgValue uint16 = 0x07E2 PacketZCMsgSkill uint16 = 0x07E6 PacketZCMsgColor uint16 = 0x09CD )
View Source
const ( PacketCZCommandMercenary uint16 = 0x022D PacketZCPropertyHomunculus uint16 = 0x022E PacketZCFeedMercenary uint16 = 0x022F PacketZCChangeStateMercenary uint16 = 0x0230 PacketCZRenameMercenary uint16 = 0x0231 PacketCZRequestMoveNPC uint16 = 0x0232 PacketCZRequestActNPC uint16 = 0x0233 PacketCZRequestMoveToOwner uint16 = 0x0234 PacketZCHomunculusSkillList uint16 = 0x0235 PacketZCHomunculusSkillUpdate uint16 = 0x0239 PacketZCPropertyMercenaryOld uint16 = 0x027D PacketZCMercenaryInit uint16 = 0x029B PacketZCMercenaryProperty uint16 = 0x029C PacketZCMercenarySkillList uint16 = 0x029D PacketZCMercenarySkillUpdate uint16 = 0x029E PacketCZMercenaryCommand uint16 = 0x029F PacketZCMercenaryParamChange uint16 = 0x02A2 PacketZCHomunculusParamChange uint16 = 0x07DB PacketZCPropertyHomunculus2 uint16 = 0x09F7 PacketZCPropertyHomunculus3 uint16 = 0x0B2F PacketZCPropertyHomunculus4 uint16 = 0x0B76 PacketZCPropertyHomunculus5 uint16 = 0x0BA4 PacketZCHomunculusParamChange2 uint16 = 0x0BA5 )
View Source
const ( HomunculusCommandInfo uint8 = 0 HomunculusCommandFeed uint8 = 1 HomunculusCommandDelete uint8 = 2 MercenaryCommandInfo uint8 = 1 MercenaryCommandDelete uint8 = 2 )
View Source
const ( PacketSCNotifyBan uint16 = 0x0081 PacketZCISVRDisconnect uint16 = 0x02D5 )
View Source
const ( PacketCZLessEffect uint16 = 0x021D PacketZCLessEffect uint16 = 0x021E PacketZCNotifyEffect uint16 = 0x019B PacketZCNotifyEffect2 uint16 = 0x01F3 PacketZCMVP uint16 = 0x010C SpecialEffectBaseLevelUp = 0 SpecialEffectJobLevelUp = 1 SpecialEffectRefineFailure = 2 SpecialEffectRefineSuccess = 3 SpecialEffectGameOver = 4 SpecialEffectPharmacySuccess = 5 SpecialEffectPharmacyFailure = 6 SpecialEffectSuperNoviceBaseLevelUp = 7 SpecialEffectSuperNoviceJobLevelUp = 8 SpecialEffectTaekwonBaseLevelUp = 9 )
View Source
const ( PacketCZReqEmotion uint16 = 0x00BF PacketZCEmotion uint16 = 0x00C0 )
View Source
const ( PacketCZReqCartOff uint16 = 0x012A PacketCZEquipWinMicroscope uint16 = 0x02D6 PacketZCEquipWinMicroscope uint16 = 0x02D7 PacketCZConfig uint16 = 0x02D8 PacketZCConfigNotify uint16 = 0x02DA ConfigOpenEquipmentWindow uint32 = 0 )
View Source
const ( PacketCZAddFriends uint16 = 0x0202 PacketCZDeleteFriends uint16 = 0x0203 PacketCZAckReqAddFriends uint16 = 0x0208 PacketZCFriendsList uint16 = 0x0201 PacketZCFriendsState uint16 = 0x0206 PacketZCReqAddFriends uint16 = 0x0207 PacketZCAddFriendsList uint16 = 0x0209 PacketZCDeleteFriends uint16 = 0x020A )
View Source
const ( PacketCZReqMakeGuild uint16 = 0x0165 PacketZCResultMakeGuild uint16 = 0x0167 PacketCZReqJoinGuild uint16 = 0x0168 PacketZCAckReqJoinGuild uint16 = 0x0169 PacketZCReqJoinGuild uint16 = 0x016A PacketCZJoinGuild uint16 = 0x016B PacketCZGuildNotice uint16 = 0x016E PacketZCGuildInfo uint16 = 0x0150 PacketZCGuildInfo2 uint16 = 0x01B6 PacketZCGuildMembers uint16 = 0x0154 PacketCZReqChangeMember uint16 = 0x0155 PacketZCAckChangeMember uint16 = 0x0156 PacketCZReqOpenMember uint16 = 0x0157 PacketZCAckOpenMember uint16 = 0x0158 PacketCZReqLeaveGuild uint16 = 0x0159 PacketZCAckLeaveGuild uint16 = 0x015A PacketCZReqExpelGuildMember uint16 = 0x015B PacketZCAckExpelGuildMember uint16 = 0x015C PacketCZReqDisbandGuild uint16 = 0x015D PacketZCAckDisbandGuild uint16 = 0x015E PacketZCGuildPositions uint16 = 0x0160 PacketCZRegGuildPosInfo uint16 = 0x0161 PacketZCGuildSkillInfo uint16 = 0x0162 PacketZCGuildBanList uint16 = 0x0163 PacketZCGuildPosNames uint16 = 0x0166 PacketZCGuildNotice uint16 = 0x016F PacketZCAckGuildPosInfo uint16 = 0x0174 PacketCZReqGuildMember uint16 = 0x0175 PacketZCGuildMemberInfo uint16 = 0x0176 PacketCZGuildMessage uint16 = 0x017E PacketZCGuildChat uint16 = 0x017F PacketZCUpdateGuildID uint16 = 0x016C PacketCZReqGuildMenuInterface uint16 = 0x014D PacketZCAckGuildMenuInterface uint16 = 0x014E PacketCZReqGuildMenu uint16 = 0x014F PacketCZReqGuildEmblem uint16 = 0x0151 PacketZCGuildEmblem uint16 = 0x0152 PacketCZRegGuildEmblem uint16 = 0x0153 PacketZCChangeGuild uint16 = 0x01B4 PacketZCGuildRelations uint16 = 0x014C PacketZCGuildMemberState uint16 = 0x016D PacketZCGuildMemberState2 uint16 = 0x01F2 PacketCZReqGuildAlliance uint16 = 0x0170 PacketZCGuildAllianceRequest uint16 = 0x0171 PacketCZGuildAllianceReply uint16 = 0x0172 PacketZCGuildAllianceResult uint16 = 0x0173 PacketCZReqGuildHostility uint16 = 0x0180 PacketZCGuildHostilityResult uint16 = 0x0181 PacketZCGuildMemberAdded uint16 = 0x0182 PacketCZDeleteGuildRelation uint16 = 0x0183 PacketZCGuildRelationDeleted uint16 = 0x0184 PacketZCGuildRelationAdded uint16 = 0x0185 PacketZCGuildMemberLocation uint16 = 0x01EB )
View Source
const ( PacketZCShortcutKeyList uint16 = 0x02B9 PacketCZShortcutKeyChange uint16 = 0x02BA HotkeyTypeItem uint8 = 0 HotkeyTypeSkill uint8 = 1 HotkeyListSlots2008 = 27 )
View Source
const ( PacketCZACKSelectDealType uint16 = 0x00C5 PacketCZItemThrow uint16 = 0x00A2 PacketCZReqItemIdentify uint16 = 0x0178 PacketCZReqItemCompositionList uint16 = 0x017A PacketCZReqItemComposition uint16 = 0x017C PacketCZReqMakingItem uint16 = 0x018E PacketCZReqItemRepair uint16 = 0x01FD PacketCZReqMakingArrow uint16 = 0x01AE PacketCZReqWeaponRefine uint16 = 0x0222 PacketCZUseItem2 uint16 = 0x0439 PacketCZUseItemLegacy uint16 = 0x00A7 PacketCZReqWearEquip uint16 = 0x00A9 PacketCZReqTakeoffEquip uint16 = 0x00AB PacketCZPCPurchaseItemList uint16 = 0x00C8 PacketCZPCSellItemList uint16 = 0x00C9 PacketCZMoveToStorage uint16 = 0x0094 PacketCZMoveFromStorage uint16 = 0x00F7 PacketCZCloseStorage uint16 = 0x0193 PacketCZMoveToCart uint16 = 0x0126 PacketCZMoveFromCart uint16 = 0x0127 PacketCZMoveStorageToCart uint16 = 0x0128 PacketCZMoveCartToStorage uint16 = 0x0129 )
View Source
const ( PacketZCMakableItemList uint16 = 0x018D PacketZCAckReqMakingItem uint16 = 0x018F PacketZCRepairItemList uint16 = 0x01FC PacketZCAckItemRepair uint16 = 0x01FE PacketZCWeaponRefineList uint16 = 0x0221 PacketZCAckWeaponRefine uint16 = 0x0223 PacketZCMakingItemList uint16 = 0x025A )
View Source
const ( PacketCAPlainLogin uint16 = 0x0064 PacketCAEnter uint16 = 0x0065 PacketCZSelectChar uint16 = 0x0066 PacketCHMakeChar uint16 = 0x0067 PacketCHDeleteCharOld uint16 = 0x0068 PacketCHDeleteChar uint16 = 0x01FB PacketCZLoadEndAck uint16 = 0x007D PacketCZTickSend uint16 = 0x0089 PacketCZTickSendRE uint16 = 0x0360 PacketCZReqName uint16 = 0x0094 PacketCZReqNameRE uint16 = 0x0368 PacketCZWalkToXY uint16 = 0x00A7 PacketCZWalkToXYRE uint16 = 0x035F PacketCZChangeDir uint16 = 0x009B PacketCZChangeDirRE uint16 = 0x0361 PacketCZRestart uint16 = 0x00B2 PacketPing uint16 = 0x0187 PacketCZQuitGame uint16 = 0x018A PacketCZRequestAct uint16 = 0x0190 PacketCZRequestAct2 uint16 = 0x0437 PacketCZRequestAct2012 uint16 = 0x0369 PacketCZEnter2 uint16 = 0x0436 )
View Source
const ( ActionSitDown uint8 = 2 ActionStandUp uint8 = 3 ActionAttack uint8 = 7 )
View Source
const ( RestartTypeRespawn uint8 = 0 RestartTypeCharSelect uint8 = 1 )
View Source
const ( PacketCZMailRefresh uint16 = 0x023F PacketZCMailList uint16 = 0x0240 PacketCZMailRead uint16 = 0x0241 PacketZCMailRead uint16 = 0x0242 PacketCZMailDelete uint16 = 0x0243 PacketCZMailGetAttachment uint16 = 0x0244 PacketZCMailGetAttachment uint16 = 0x0245 PacketCZMailReset uint16 = 0x0246 PacketCZMailAddAttachment uint16 = 0x0247 PacketCZMailSend uint16 = 0x0248 PacketZCMailSend uint16 = 0x0249 PacketZCMailNew uint16 = 0x024A PacketZCMailAddAttachment uint16 = 0x0255 PacketZCMailDelete uint16 = 0x0257 PacketZCMailWindow uint16 = 0x0260 PacketCZMailReturn uint16 = 0x0273 PacketZCMailReturn uint16 = 0x0274 MailInboxCapacity = 30 MailRecipientMax = 23 MailTitleMax = 39 MailBodyMax = 199 )
These are the pre-RODEX packets used by the 2008 client. Legacy mail has one item-stack attachment and Zeny, and a single-byte body length.
View Source
const ( PacketZCShowImage2 uint16 = 0x01B3 NPCCutinLeft uint8 = 0 NPCCutinCenter uint8 = 1 NPCCutinRight uint8 = 2 NPCCutinWindow uint8 = 3 NPCCutinWindowless uint8 = 4 NPCCutinClear uint8 = 255 )
View Source
const ( PacketCZMakeGroup uint16 = 0x00F9 PacketCZReqJoinGroup uint16 = 0x00FC PacketCZJoinGroup uint16 = 0x00FF PacketCZReqLeaveGroup uint16 = 0x0100 PacketCZChangeGroupExp uint16 = 0x0102 PacketCZReqExpelGroupMember uint16 = 0x0103 PacketCZPartyMessage uint16 = 0x0108 PacketCZMakeGroup2 uint16 = 0x01E8 PacketCZPartyJoinReq uint16 = 0x02C4 PacketCZPartyJoinReqAck uint16 = 0x02C7 PacketCZPartyConfig uint16 = 0x02C8 PacketZCAckMakeGroup uint16 = 0x00FA PacketZCGroupList uint16 = 0x00FB PacketZCAckReqJoinGroup uint16 = 0x00FD PacketZCReqJoinGroup uint16 = 0x00FE PacketZCGroupInfoChange uint16 = 0x0101 PacketZCAddMemberToGroup uint16 = 0x0104 PacketZCAddMemberToGroup2 uint16 = 0x01E9 PacketZCDeleteMemberFromGrp uint16 = 0x0105 PacketZCNotifyHPToGroup uint16 = 0x0106 PacketZCNotifyPositionToGrp uint16 = 0x0107 PacketZCNotifyChatParty uint16 = 0x0109 PacketZCPartyJoinReqAck uint16 = 0x02C5 PacketZCPartyJoinReq uint16 = 0x02C6 PacketZCPartyConfig uint16 = 0x02C9 PacketZCNotifyHPToGroupR2 uint16 = 0x080E )
View Source
const ( PacketZCStartCapture uint16 = 0x019E PacketCZTryCaptureMonster uint16 = 0x019F PacketZCTryCaptureMonster uint16 = 0x01A0 PacketCZCommandPet uint16 = 0x01A1 PacketZCPropertyPet uint16 = 0x01A2 PacketZCFeedPet uint16 = 0x01A3 PacketZCChangeStatePet uint16 = 0x01A4 PacketCZRenamePet uint16 = 0x01A5 PacketZCPetEggList uint16 = 0x01A6 PacketCZSelectPetEgg uint16 = 0x01A7 PacketCZPetAct uint16 = 0x01A9 PacketZCPetAct uint16 = 0x01AA )
View Source
const ( PetCommandInfo uint8 = iota PetCommandFeed PetCommandPerformance PetCommandBackToEgg PetCommandUnequipAccessory )
View Source
const ( PacketZCNotifyMapProperty uint16 = 0x0199 PacketZCNotifyRanking uint16 = 0x019A PacketCZRequestPvPInfo uint16 = 0x020F PacketZCAckPvPInfo uint16 = 0x0210 )
View Source
const ( PacketCZBlacksmithRank uint16 = 0x0217 PacketCZAlchemistRank uint16 = 0x0218 PacketZCBlacksmithRank uint16 = 0x0219 PacketZCAlchemistRank uint16 = 0x021A PacketZCBlacksmithPoint uint16 = 0x021B PacketZCAlchemistPoint uint16 = 0x021C PacketZCTaekwonPoint uint16 = 0x0224 PacketCZTaekwonRank uint16 = 0x0225 PacketZCTaekwonRank uint16 = 0x0226 )
View Source
const ( PacketZCShowDigit uint16 = 0x01B1 PacketZCSkillMessage uint16 = 0x0215 PacketZCBossInfo uint16 = 0x0293 PacketZCProgress uint16 = 0x02F0 PacketCZProgress uint16 = 0x02F1 PacketZCProgressCancel uint16 = 0x02F2 )
View Source
const ( PacketZCMonsterInfo uint16 = 0x018C PacketZCAutoSpellList uint16 = 0x01CD PacketCZSelectAutoSpell uint16 = 0x01CE )
View Source
const ( PacketZCNotifyExp uint16 = 0x07F6 StatusSpeed uint16 = 0 StatusBaseExp uint16 = 1 StatusJobExp uint16 = 2 StatusHP uint16 = 5 StatusMaxHP uint16 = 6 StatusSP uint16 = 7 StatusMaxSP uint16 = 8 StatusPoint uint16 = 9 StatusBaseLevel uint16 = 11 StatusSkillPoint uint16 = 12 StatusStr uint16 = 13 StatusAgi uint16 = 14 StatusVit uint16 = 15 StatusInt uint16 = 16 StatusDex uint16 = 17 StatusLuk uint16 = 18 StatusZeny uint16 = 20 StatusNextBaseExp uint16 = 22 StatusNextJobExp uint16 = 23 StatusWeight uint16 = 24 StatusMaxWeight uint16 = 25 StatusUStr uint16 = 32 StatusUAgi uint16 = 33 StatusUVit uint16 = 34 StatusUInt uint16 = 35 StatusUDex uint16 = 36 StatusULuk uint16 = 37 StatusJobLevel uint16 = 55 StatusMercFlee uint16 = 165 StatusMercKills uint16 = 189 StatusMercFaith uint16 = 190 )
View Source
const ( PacketZCStoragePasswordPrompt uint16 = 0x023A PacketCZStoragePasswordReply uint16 = 0x023B PacketZCStoragePasswordResult uint16 = 0x023C )
View Source
const ( PacketZCStarSkill uint16 = 0x020E PacketZCStarPlace uint16 = 0x0253 PacketCZAgreeStarPlace uint16 = 0x0254 )
View Source
const ( PacketCZReqExchangeItem uint16 = 0x00E4 PacketCZAckExchangeItem uint16 = 0x00E6 PacketCZAddExchangeItem uint16 = 0x00E8 PacketCZConcludeExchangeItem uint16 = 0x00EB PacketCZCancelExchangeItem uint16 = 0x00ED PacketCZExecExchangeItem uint16 = 0x00EF PacketZCReqExchangeItem uint16 = 0x00E5 PacketZCAckExchangeItem uint16 = 0x00E7 PacketZCAddExchangeItem uint16 = 0x00E9 PacketZCAckAddExchangeItem uint16 = 0x00EA PacketZCConcludeExchangeItem uint16 = 0x00EC PacketZCCancelExchangeItem uint16 = 0x00EE PacketZCExecExchangeItem uint16 = 0x00F0 PacketZCExchangeItemUndo uint16 = 0x00F1 PacketZCReqExchangeItem2 uint16 = 0x01F4 PacketZCAckExchangeItem2 uint16 = 0x01F5 )
View Source
const ( TradeAckAccept uint8 = 3 TradeAckCancel uint8 = 4 )
View Source
const ( PacketCZReqCloseStore uint16 = 0x012E PacketCZReqOpenStore uint16 = 0x012F PacketCZReqBuyFromMC uint16 = 0x0130 PacketCZPCPurchaseItemListFromMC uint16 = 0x0134 PacketCZReqOpenStore2 uint16 = 0x01B2 PacketZCOpenStore uint16 = 0x012D PacketZCStoreEntry uint16 = 0x0131 PacketZCDisappearEntry uint16 = 0x0132 PacketZCPCPurchaseItemListFromMC uint16 = 0x0133 PacketZCPCPurchaseResultFromMC uint16 = 0x0135 PacketZCPCPurchaseMyItemList uint16 = 0x0136 PacketZCDeleteItemFromMCStore uint16 = 0x0137 )
View Source
const PacketCAConnectInfoChanged uint16 = 0x0200
View Source
const PacketCZAutoRevive uint16 = 0x0292
View Source
const PacketCZDoriDori uint16 = 0x01E7
View Source
const PacketCZItemPickup uint16 = 0x009F
View Source
const PacketZCCompass uint16 = 0x0144
View Source
const PacketZCNotifyMapInfo uint16 = 0x0189
View Source
const PacketZCQuitGameAck uint16 = 0x018B
View Source
const PacketZCRestartAck uint16 = 0x00B3
Variables ¶
View Source
var ErrDisconnected = errors.New("disconnected from server")
Functions ¶
func BuildAccountLoginPacket ¶
func BuildAccountLoginPacket(login AccountLogin) []byte
func BuildAddFriendPacket ¶
func BuildAdoptionReplyPacket ¶ added in v0.8.0
func BuildAdoptionRequestPacket ¶ added in v0.8.0
func BuildAgreeStarPlacePacket ¶ added in v0.9.0
func BuildAutoRevivePacket ¶ added in v0.10.0
func BuildAutoRevivePacket() []byte
func BuildBuyItemListPacket ¶
func BuildBuyItemListPacket(items []BuyRequestItem) []byte
func BuildCancelVendingStoreOpenPacket ¶
func BuildCancelVendingStoreOpenPacket() []byte
func BuildChangeCartPacket ¶
func BuildChangeGuildMemberPositionPacket ¶
func BuildChangeGuildMemberPositionPacket(members []GuildMemberPosition) []byte
func BuildCharServerEnterPacket ¶
func BuildCharServerEnterPacket(enter CharServerEnter) []byte
func BuildCloseVendingStorePacket ¶
func BuildCloseVendingStorePacket() []byte
func BuildCommandPetPacket ¶
func BuildCreateChatRoomPacket ¶
func BuildCreateChatRoomPacket(room ChatRoomCreate) []byte
func BuildCreateGuildPacket ¶
func BuildDeleteFriendPacket ¶
func BuildDeleteGuildRelationPacket ¶ added in v0.8.0
func BuildDisbandGuildPacket ¶ added in v0.8.1
func BuildDoriDoriPacket ¶ added in v0.10.0
func BuildDoriDoriPacket() []byte
func BuildEmotionPacket ¶
func BuildExitChatRoomPacket ¶
func BuildExitChatRoomPacket() []byte
func BuildExpelGuildMemberPacket ¶ added in v0.8.1
func BuildFameRankingRequestPacket ¶ added in v0.10.0
func BuildFameRankingRequestPacket(kind FameRankingKind) ([]byte, error)
func BuildGlobalChatPacket ¶
func BuildGuildAllianceReplyPacket ¶ added in v0.8.0
func BuildGuildAllianceRequestPacket ¶ added in v0.8.0
func BuildGuildHostilityRequestPacket ¶ added in v0.8.0
func BuildGuildMenuInterfaceRequestPacket ¶ added in v0.8.1
func BuildGuildMenuInterfaceRequestPacket() []byte
func BuildGuildMessagePacket ¶ added in v0.7.0
func BuildGuildNoticePacket ¶
func BuildHotkeyPacket ¶
func BuildHotkeyPacket(index uint16, slot HotkeySlot) []byte
func BuildItemIdentifyPacket ¶
func BuildItemPickupPacket ¶
func BuildLeaveGuildPacket ¶ added in v0.8.1
func BuildLeavePartyPacket ¶
func BuildLeavePartyPacket() []byte
func BuildLessEffectPacket ¶
func BuildLoadEndAckPacket ¶
func BuildLoadEndAckPacket() []byte
func BuildLoginServerKeepalivePacket ¶ added in v0.8.1
func BuildMailAddAttachmentPacket ¶ added in v0.11.0
func BuildMailDeletePacket ¶ added in v0.11.0
func BuildMailGetAttachmentPacket ¶ added in v0.11.0
func BuildMailReadPacket ¶ added in v0.11.0
func BuildMailRefreshPacket ¶ added in v0.11.0
func BuildMailRefreshPacket() []byte
func BuildMailResetPacket ¶ added in v0.11.0
func BuildMailResetPacket(kind MailResetType) []byte
func BuildMailReturnPacket ¶ added in v0.11.0
func BuildMailSendPacket ¶ added in v0.11.0
func BuildMakeCharacterPacket ¶
func BuildMakeCharacterPacket(character MakeCharacter) []byte
func BuildMakeParty2Packet ¶
func BuildMakePartyPacket ¶
func BuildMakingArrowPacket ¶
func BuildMakingItemPacket ¶
func BuildMapServerEnterPacket ¶
func BuildMapServerEnterPacket(enter MapServerEnter) []byte
func BuildMapServerEnterPacketForClientDate ¶
func BuildMapServerEnterPacketForClientDate(enter MapServerEnter, clientDate int) []byte
func BuildMoveFromCartPacket ¶
func BuildMoveToCartPacket ¶
func BuildNPCClosePacket ¶
func BuildNPCContactPacket ¶
func BuildNPCNextPacket ¶
func BuildNameRequestPacket ¶
func BuildOpenVendingStorePacket ¶
func BuildOpenVendingStorePacket(name string, items []VendingOpenItem) []byte
func BuildPartyInvitePacket ¶
func BuildPartyMessagePacket ¶
func BuildPartyOptionPacket ¶
func BuildPetActPacket ¶
func BuildPingPacket ¶
func BuildProgressBarDonePacket ¶ added in v0.10.0
func BuildProgressBarDonePacket() []byte
func BuildPvPInfoRequestPacket ¶ added in v0.7.0
func BuildQuitGamePacket ¶
func BuildQuitGamePacket() []byte
func BuildRegisterGuildPositionsPacket ¶
func BuildRegisterGuildPositionsPacket(positions []GuildPosition) []byte
func BuildRememberWarpPointPacket ¶
func BuildRememberWarpPointPacket() []byte
func BuildRemoveOptionPacket ¶
func BuildRemoveOptionPacket() []byte
func BuildRenamePetPacket ¶
func BuildRepairItemPacket ¶
func BuildRepairItemPacket(item RepairItem) []byte
func BuildRestartPacket ¶
func BuildSelectAutoSpellPacket ¶ added in v0.9.0
func BuildSelectPetEggPacket ¶
func BuildSellItemListPacket ¶
func BuildSellItemListPacket(items []SellRequestItem) []byte
func BuildSkillLevelUpPacket ¶
func BuildStoragePasswordReplyPacket ¶ added in v0.10.0
func BuildStoragePasswordReplyPacket(replyType StoragePasswordReplyType, password, newPassword string) []byte
BuildStoragePasswordReplyPacket builds the 36-byte CZ_ACK_STORE_PASSWORD layout used by the 2008 client. The active password occupies bytes 4..19; a replacement password occupies bytes 20..35.
func BuildTakeoffEquipPacket ¶
func BuildTickSendPacket ¶
func BuildTradeAckPacket ¶
func BuildTradeAddItemPacket ¶
func BuildTradeCancelPacket ¶
func BuildTradeCancelPacket() []byte
func BuildTradeCommitPacket ¶
func BuildTradeCommitPacket() []byte
func BuildTradeConcludePacket ¶
func BuildTradeConcludePacket() []byte
func BuildTradeRequestPacket ¶
func BuildVendingPurchasePacket ¶
func BuildVendingPurchasePacket(ownerAID uint32, items []VendingPurchaseItem) []byte
func BuildWalkToXYPacket ¶
func BuildWeaponRefinePacket ¶
func BuildWearEquipPacket ¶
func BuildWhisperPacket ¶
func EncodeMoveDestination ¶
func IsInterServerDisconnect ¶
func ParseAdoptionStarted ¶ added in v0.8.0
func ParseCartClosed ¶
func ParseProgressBarCancel ¶ added in v0.10.0
func ParseStorageClosed ¶
func ParseTradeCanceled ¶
func ParseTradeUndo ¶
Types ¶
type AccountAcceptLogin ¶
type AccountAcceptLogin struct {
AuthCode uint32
AccountID uint32
UserLevel uint32
LastLogin string
Sex uint8
CharServer []CharServer
}
func ParseAccountAcceptLogin ¶
func ParseAccountAcceptLogin(packet Packet) (AccountAcceptLogin, error)
type AccountLogin ¶
type AccountRefuseLogin ¶ added in v0.8.1
func ParseAccountRefuseLogin ¶ added in v0.8.1
func ParseAccountRefuseLogin(packet Packet) (AccountRefuseLogin, error)
type ActorActionNotify ¶
type ActorActionNotify struct {
SourceID uint32
TargetID uint32
ServerTick uint32
SourceSpeed int32
TargetSpeed int32
Damage int32
HitCount uint16
Action uint8
LeftDamage int32
SkillID uint16
SkillLevel uint16
}
func ParseActorActionNotify ¶
func ParseActorActionNotify(packet Packet) (ActorActionNotify, bool, error)
type ActorBladeStop ¶
func ParseActorBladeStop ¶
func ParseActorBladeStop(packet Packet) (ActorBladeStop, bool, error)
type ActorDirectionChange ¶
func ParseActorDirectionChange ¶
func ParseActorDirectionChange(packet Packet) (ActorDirectionChange, bool, error)
type ActorEntry ¶
type ActorEntry struct {
ID uint32
GuildID uint32
EmblemVersion uint32
Job int16
Head int16
Weapon int16
Shield int16
HeadTop int16
HeadMid int16
HeadLow int16
HeadPal int16
BodyPal int16
Sex uint8
HeadDir uint8
Appearance bool
X int
Y int
Dir int
Moving bool
FromX int
FromY int
ToX int
ToY int
MoveStartTick uint32
HasMoveStartTick bool
ObjectType uint8
HasObjectType bool
Speed int
BodyState uint16
HealthState uint16
EffectState uint32
HasState bool
Level int
HasLevel bool
}
func ParseActorEntry ¶
func ParseActorEntry(packet Packet) (ActorEntry, bool, error)
type ActorHPUpdate ¶
func ParseActorHPUpdate ¶
func ParseActorHPUpdate(packet Packet) (ActorHPUpdate, bool, error)
type ActorJumpPosition ¶
func ParseActorJumpPosition ¶
func ParseActorJumpPosition(packet Packet) (ActorJumpPosition, bool, error)
type ActorLookChange ¶
func ParseActorLookChange ¶
func ParseActorLookChange(packet Packet) (ActorLookChange, bool, error)
type ActorNameAck ¶
type ActorNameAck struct {
ID uint32
Name string
PartyName string
GuildName string
Title string
HasGuildName bool
}
func ParseActorNameAck ¶
func ParseActorNameAck(packet Packet) (ActorNameAck, bool, error)
type ActorResurrection ¶ added in v0.7.0
func ParseActorResurrection ¶ added in v0.7.0
func ParseActorResurrection(packet Packet) (ActorResurrection, bool, error)
type ActorSetPosition ¶
func ParseActorSetPosition ¶
func ParseActorSetPosition(packet Packet) (ActorSetPosition, bool, error)
type ActorStateChange ¶
func ParseActorStateChange ¶
func ParseActorStateChange(packet Packet) (ActorStateChange, bool, error)
type ActorVanish ¶
func ParseActorVanish ¶
func ParseActorVanish(packet Packet) (ActorVanish, bool, error)
type AdoptionMessage ¶ added in v0.8.0
type AdoptionMessage struct {
Code uint32
}
func ParseAdoptionMessage ¶ added in v0.8.0
func ParseAdoptionMessage(packet Packet) (AdoptionMessage, bool, error)
type AdoptionRequest ¶ added in v0.8.0
func ParseAdoptionRequest ¶ added in v0.8.0
func ParseAdoptionRequest(packet Packet) (AdoptionRequest, bool, error)
type AttackFailureForDistance ¶
type AttackFailureForDistance struct {
TargetID uint32
TargetX int
TargetY int
SourceX int
SourceY int
AttackRange int
}
func ParseAttackFailureForDistance ¶
func ParseAttackFailureForDistance(packet Packet) (AttackFailureForDistance, bool, error)
type AutoRunSkill ¶
type AutoRunSkill struct {
Skill SkillInfo
}
func ParseAutoRunSkill ¶
func ParseAutoRunSkill(packet Packet) (AutoRunSkill, bool, error)
type AutoSpellList ¶ added in v0.9.0
type AutoSpellList struct {
SkillIDs []uint16
}
func ParseAutoSpellList ¶ added in v0.9.0
func ParseAutoSpellList(packet Packet) (AutoSpellList, bool, error)
type BossInfo ¶ added in v0.10.0
type BossInfoKind ¶ added in v0.10.0
type BossInfoKind uint8
const ( BossInfoNotOnMap BossInfoKind = iota BossInfoAlive BossInfoAliveAnnounced BossInfoDead )
type BuyRequestItem ¶
type CartAddAck ¶
type CartAddAck struct {
Result uint8
}
func ParseCartAddAck ¶
func ParseCartAddAck(packet Packet) (CartAddAck, bool, error)
type CartAmount ¶
func ParseCartAmount ¶
func ParseCartAmount(packet Packet) (CartAmount, bool, error)
type CartItemRemoved ¶
func ParseCartItemRemoved ¶
func ParseCartItemRemoved(packet Packet) (CartItemRemoved, bool, error)
type CharList ¶
func ParseCharList ¶
type CharServer ¶
type CharServerEnter ¶
type Character ¶
type Character struct {
ID uint32
Exp int64
Money int64
Name string
Slot uint8
Level int16
JobLevel int16
Job int16
HP int16
MaxHP int16
SP int16
MaxSP int16
Str uint8
Agi uint8
Vit uint8
Int uint8
Dex uint8
Luk uint8
Hair int16
HairColor uint8
HeadPal int16
BodyPal int16
Weapon int16
Shield int16
HeadTop int16
HeadMid int16
HeadLow int16
Option uint32
}
type ChatMessage ¶
type ChatMessage struct {
GID uint32
Text string
MessageID int
Value int32
SkillID uint16
Color uint32
HasColor bool
Announcement bool
FontType int16
FontSize int16
FontAlign int16
FontY int16
}
func ParseChatMessage ¶
func ParseChatMessage(packet Packet) (ChatMessage, bool, error)
type ChatRoomBoard ¶
type ChatRoomBoard struct {
OwnerID uint32
RoomID uint32
Limit uint16
Count uint16
Public bool
Title string
}
func ParseChatRoomBoard ¶
func ParseChatRoomBoard(packet Packet) (ChatRoomBoard, bool, error)
type ChatRoomChange ¶
type ChatRoomChange struct {
OwnerID uint32
RoomID uint32
Limit uint16
Count uint16
Public bool
Title string
}
func ParseChatRoomChange ¶
func ParseChatRoomChange(packet Packet) (ChatRoomChange, bool, error)
type ChatRoomCreate ¶
type ChatRoomCreateAck ¶
type ChatRoomCreateAck struct {
Result uint8
}
func ParseChatRoomCreateAck ¶
func ParseChatRoomCreateAck(packet Packet) (ChatRoomCreateAck, bool, error)
type ChatRoomDestroy ¶
type ChatRoomDestroy struct {
RoomID uint32
}
func ParseChatRoomDestroy ¶
func ParseChatRoomDestroy(packet Packet) (ChatRoomDestroy, bool, error)
type ChatRoomEnter ¶
type ChatRoomEnter struct {
RoomID uint32
Members []ChatRoomMember
}
func ParseChatRoomEnter ¶
func ParseChatRoomEnter(packet Packet) (ChatRoomEnter, bool, error)
type ChatRoomMember ¶
type ChatRoomMemberJoin ¶
func ParseChatRoomMemberJoin ¶
func ParseChatRoomMemberJoin(packet Packet) (ChatRoomMemberJoin, bool, error)
type ChatRoomMemberLeave ¶
func ParseChatRoomMemberLeave ¶
func ParseChatRoomMemberLeave(packet Packet) (ChatRoomMemberLeave, bool, error)
type ChatRoomRoleChange ¶
func ParseChatRoomRoleChange ¶
func ParseChatRoomRoleChange(packet Packet) (ChatRoomRoleChange, bool, error)
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DrainErrors ¶
func (*Client) DrainPackets ¶
func (*Client) SendAccountLogin ¶
func (*Client) SendActionRequest ¶
func (*Client) SendAddFriend ¶
func (*Client) SendAdoptionReply ¶ added in v0.8.0
func (*Client) SendAdoptionRequest ¶ added in v0.8.0
func (*Client) SendAgreeStarPlace ¶ added in v0.9.0
func (*Client) SendAutoRevive ¶ added in v0.10.0
func (*Client) SendCancelVendingStoreOpen ¶
func (*Client) SendChangeCart ¶
func (*Client) SendChangeDirection ¶
func (*Client) SendCharServerEnter ¶
func (*Client) SendCloseStorage ¶
func (*Client) SendCloseVendingStore ¶
func (*Client) SendCompanionAttack ¶
func (*Client) SendCompanionMoveToOwner ¶
func (*Client) SendCreateChatRoom ¶
func (c *Client) SendCreateChatRoom(room ChatRoomCreate) error
func (*Client) SendDeleteCharacter ¶
func (*Client) SendDeleteFriend ¶
func (*Client) SendDeleteGuildRelation ¶ added in v0.8.0
func (*Client) SendDisbandGuild ¶ added in v0.8.1
func (*Client) SendDoriDori ¶ added in v0.10.0
func (*Client) SendDropInventoryItem ¶
func (*Client) SendEmotion ¶
func (*Client) SendEnterChatRoom ¶
func (*Client) SendExitChatRoom ¶
func (*Client) SendExpelGuildMember ¶ added in v0.8.1
func (*Client) SendExpelPartyMember ¶
func (*Client) SendFameRankingRequest ¶ added in v0.10.0
func (c *Client) SendFameRankingRequest(kind FameRankingKind) error
func (*Client) SendFriendRequestAck ¶
func (*Client) SendGlobalChat ¶
func (*Client) SendGuildAllianceReply ¶ added in v0.8.0
func (*Client) SendGuildAllianceRequest ¶ added in v0.8.0
func (*Client) SendGuildEmblem ¶
func (*Client) SendGuildEmblemRequest ¶
func (*Client) SendGuildHostilityRequest ¶ added in v0.8.0
func (*Client) SendGuildInvite ¶
func (*Client) SendGuildInviteReply ¶
func (*Client) SendGuildMemberPositions ¶
func (c *Client) SendGuildMemberPositions(members []GuildMemberPosition) error
func (*Client) SendGuildMenuInterfaceRequest ¶ added in v0.8.1
func (*Client) SendGuildMenuRequest ¶
func (*Client) SendGuildMessage ¶ added in v0.7.0
func (*Client) SendGuildNotice ¶
func (*Client) SendGuildPositions ¶
func (c *Client) SendGuildPositions(positions []GuildPosition) error
func (*Client) SendHomunculusCommand ¶
func (*Client) SendHomunculusDelete ¶
func (*Client) SendHomunculusFeed ¶
func (*Client) SendHomunculusRename ¶
func (*Client) SendHotkey ¶
func (c *Client) SendHotkey(index uint16, slot HotkeySlot) error
func (*Client) SendItemComposition ¶
func (*Client) SendItemCompositionList ¶
func (*Client) SendItemIdentify ¶
func (*Client) SendItemPickup ¶
func (*Client) SendLeaveGuild ¶ added in v0.8.1
func (*Client) SendLeaveParty ¶
func (*Client) SendLessEffect ¶
func (*Client) SendLoadEndAck ¶
func (*Client) SendLoginServerKeepalive ¶ added in v0.8.1
func (*Client) SendMailAddAttachment ¶ added in v0.11.0
func (*Client) SendMailDelete ¶ added in v0.11.0
func (*Client) SendMailGetAttachment ¶ added in v0.11.0
func (*Client) SendMailRead ¶ added in v0.11.0
func (*Client) SendMailRefresh ¶ added in v0.11.0
func (*Client) SendMailReset ¶ added in v0.11.0
func (c *Client) SendMailReset(kind MailResetType) error
func (*Client) SendMailReturn ¶ added in v0.11.0
func (*Client) SendMakeCharacter ¶
func (c *Client) SendMakeCharacter(character MakeCharacter) error
func (*Client) SendMakeParty ¶
func (*Client) SendMakeParty2 ¶
func (*Client) SendMakingArrow ¶
func (*Client) SendMakingItem ¶
func (*Client) SendMapServerEnter ¶
func (*Client) SendMercenaryCommand ¶
func (*Client) SendMoveCartToStorage ¶
func (*Client) SendMoveFromCart ¶
func (*Client) SendMoveFromStorage ¶
func (*Client) SendMoveStorageToCart ¶
func (*Client) SendMoveToStorage ¶
func (*Client) SendNPCClose ¶
func (*Client) SendNPCContact ¶
func (*Client) SendNPCMenuChoice ¶
func (*Client) SendNPCNext ¶
func (*Client) SendNPCNumberInput ¶
func (*Client) SendNPCStringInput ¶
func (*Client) SendNameRequest ¶
func (*Client) SendOpenVendingStore ¶
func (c *Client) SendOpenVendingStore(name string, items []VendingOpenItem) error
func (*Client) SendPartyInvite ¶
func (*Client) SendPartyInviteAck ¶
func (*Client) SendPartyInviteConfig ¶
func (*Client) SendPartyMessage ¶
func (*Client) SendPartyOption ¶
func (*Client) SendPetAct ¶
func (*Client) SendPetCommand ¶
func (*Client) SendProgressBarDone ¶ added in v0.10.0
func (*Client) SendPvPInfoRequest ¶ added in v0.7.0
func (*Client) SendQuitGame ¶
func (*Client) SendRememberWarpPoint ¶
func (*Client) SendRemoveOption ¶
func (*Client) SendRenamePet ¶
func (*Client) SendRepairItem ¶
func (c *Client) SendRepairItem(item RepairItem) error
func (*Client) SendRestart ¶
func (*Client) SendSelectAutoSpell ¶ added in v0.9.0
func (*Client) SendSelectCharacter ¶
func (*Client) SendSelectPetEgg ¶
func (*Client) SendSelectWarpPoint ¶
func (*Client) SendShopBuyItems ¶
func (c *Client) SendShopBuyItems(items []BuyRequestItem) error
func (*Client) SendShopDealSelection ¶
func (*Client) SendShopSellItems ¶
func (c *Client) SendShopSellItems(items []SellRequestItem) error
func (*Client) SendShowEquipConfig ¶
func (*Client) SendSkillLevelUp ¶
func (*Client) SendStatusIncrease ¶
func (*Client) SendStoragePasswordReply ¶ added in v0.10.0
func (c *Client) SendStoragePasswordReply(replyType StoragePasswordReplyType, password, newPassword string) error
func (*Client) SendTakeoffEquip ¶
func (*Client) SendTradeAck ¶
func (*Client) SendTradeAddItem ¶
func (*Client) SendTradeCancel ¶
func (*Client) SendTradeCommit ¶
func (*Client) SendTradeConclude ¶
func (*Client) SendTradeRequest ¶
func (*Client) SendTryCaptureMonster ¶
func (*Client) SendUseInventoryItem ¶
func (*Client) SendUseSkillToGround ¶
func (*Client) SendUseSkillToGroundWithText ¶
func (*Client) SendUseSkillToID ¶
func (*Client) SendVendingListRequest ¶
func (*Client) SendVendingPurchase ¶
func (c *Client) SendVendingPurchase(ownerAID uint32, items []VendingPurchaseItem) error
func (*Client) SendViewPlayerEquipment ¶
func (*Client) SendWalkToXY ¶
func (*Client) SendWeaponRefine ¶
func (*Client) SendWearEquip ¶
func (*Client) SendWhisper ¶
func (*Client) SendWhisperIgnore ¶
func (*Client) SendWhisperIgnoreAll ¶
type EmotionNotify ¶
func ParseEmotionNotify ¶
func ParseEmotionNotify(packet Packet) (EmotionNotify, bool, error)
type EquippedArrow ¶
type EquippedArrow struct {
Index uint16
}
func ParseEquippedArrow ¶
func ParseEquippedArrow(packet Packet) (EquippedArrow, bool, error)
type FamePointUpdate ¶ added in v0.10.0
type FamePointUpdate struct {
Kind FameRankingKind
GainedPoints uint32
TotalPoints uint32
}
func ParseFamePointUpdate ¶ added in v0.10.0
func ParseFamePointUpdate(packet Packet) (FamePointUpdate, bool, error)
type FameRanking ¶ added in v0.10.0
type FameRanking struct {
Kind FameRankingKind
Entries []FameRankingEntry
}
func ParseFameRanking ¶ added in v0.10.0
func ParseFameRanking(packet Packet) (FameRanking, bool, error)
type FameRankingEntry ¶ added in v0.10.0
type FameRankingKind ¶ added in v0.10.0
type FameRankingKind uint8
const ( FameRankingUnknown FameRankingKind = iota FameRankingBlacksmith FameRankingAlchemist FameRankingTaekwon )
type FloorItemDisappear ¶
type FloorItemDisappear struct {
ID uint32
}
func ParseFloorItemDisappear ¶
func ParseFloorItemDisappear(packet Packet) (FloorItemDisappear, bool, error)
type FloorItemEntry ¶
type FloorItemEntry struct {
ID uint32
ItemID uint16
Identified bool
X int
Y int
SubX uint8
SubY uint8
Amount uint16
Falling bool
}
func ParseFloorItemEntry ¶
func ParseFloorItemEntry(packet Packet) (FloorItemEntry, bool, error)
type FrameError ¶
type FrameError struct {
Err error
}
func (FrameError) Error ¶
func (e FrameError) Error() string
func (FrameError) Unwrap ¶
func (e FrameError) Unwrap() error
type Framer ¶
type Framer struct {
// contains filtered or unexported fields
}
func NewFramer ¶
func NewFramer(lengths LengthTable) *Framer
type FriendAddResult ¶
func ParseFriendAddResult ¶
func ParseFriendAddResult(packet Packet) (FriendAddResult, bool, error)
type FriendDelete ¶
func ParseFriendDelete ¶
func ParseFriendDelete(packet Packet) (FriendDelete, bool, error)
type FriendRequest ¶
func ParseFriendRequest ¶
func ParseFriendRequest(packet Packet) (FriendRequest, bool, error)
type FriendState ¶
func ParseFriendState ¶
func ParseFriendState(packet Packet) (FriendState, bool, error)
type GroundSkillNotify ¶
func ParseGroundSkillNotify ¶
func ParseGroundSkillNotify(packet Packet) (GroundSkillNotify, bool, error)
type GuildAllianceRequest ¶ added in v0.8.0
func ParseGuildAllianceRequest ¶ added in v0.8.0
func ParseGuildAllianceRequest(packet Packet) (GuildAllianceRequest, bool, error)
type GuildAllianceResult ¶ added in v0.8.0
type GuildAllianceResult struct {
Result uint8
}
func ParseGuildAllianceResult ¶ added in v0.8.0
func ParseGuildAllianceResult(packet Packet) (GuildAllianceResult, bool, error)
type GuildBelonging ¶
type GuildBelonging struct {
GuildID uint32
EmblemVersion uint32
Mode uint32
IsMaster bool
GuildName string
}
func ParseGuildBelonging ¶
func ParseGuildBelonging(packet Packet) (GuildBelonging, bool, error)
type GuildCreationResult ¶
type GuildCreationResult struct {
Result uint8
}
func ParseGuildCreationResult ¶
func ParseGuildCreationResult(packet Packet) (GuildCreationResult, bool, error)
type GuildDisbandResult ¶ added in v0.8.1
type GuildDisbandResult struct {
Result uint32
}
func ParseGuildDisbandResult ¶ added in v0.8.1
func ParseGuildDisbandResult(packet Packet) (GuildDisbandResult, bool, error)
type GuildEmblemChange ¶
func ParseGuildEmblemChange ¶
func ParseGuildEmblemChange(packet Packet) (GuildEmblemChange, bool, error)
type GuildEmblemImage ¶
func ParseGuildEmblemImage ¶
func ParseGuildEmblemImage(packet Packet) (GuildEmblemImage, bool, error)
type GuildExpelHistory ¶
func ParseGuildExpelHistory ¶
func ParseGuildExpelHistory(packet Packet) ([]GuildExpelHistory, bool, error)
type GuildHostilityResult ¶ added in v0.8.0
type GuildHostilityResult struct {
Result uint8
}
func ParseGuildHostilityResult ¶ added in v0.8.0
func ParseGuildHostilityResult(packet Packet) (GuildHostilityResult, bool, error)
type GuildInfo ¶
type GuildInviteAck ¶
type GuildInviteAck struct {
Result uint8
}
func ParseGuildInviteAck ¶
func ParseGuildInviteAck(packet Packet) (GuildInviteAck, bool, error)
type GuildInviteRequest ¶
func ParseGuildInviteRequest ¶
func ParseGuildInviteRequest(packet Packet) (GuildInviteRequest, bool, error)
type GuildMember ¶
type GuildMember struct {
AccountID uint32
CharID uint32
HeadType uint16
HeadPalette uint16
Sex uint16
Job uint16
Level uint16
MemberExp uint32
CurrentState uint32
PositionID uint32
Memo string
CharName string
}
func ParseGuildMemberInfo ¶
func ParseGuildMemberInfo(packet Packet) (GuildMember, bool, error)
func ParseGuildMembers ¶
func ParseGuildMembers(packet Packet) ([]GuildMember, bool, error)
type GuildMemberDeparture ¶ added in v0.8.1
func ParseGuildMemberDeparture ¶ added in v0.8.1
func ParseGuildMemberDeparture(packet Packet) (GuildMemberDeparture, bool, error)
type GuildMemberExpulsion ¶ added in v0.8.1
func ParseGuildMemberExpulsion ¶ added in v0.8.1
func ParseGuildMemberExpulsion(packet Packet) (GuildMemberExpulsion, bool, error)
type GuildMemberLocation ¶ added in v0.8.0
func ParseGuildMemberLocation ¶ added in v0.8.0
func ParseGuildMemberLocation(packet Packet) (GuildMemberLocation, bool, error)
type GuildMemberPosition ¶
func ParseGuildMemberPositions ¶
func ParseGuildMemberPositions(packet Packet) ([]GuildMemberPosition, bool, error)
type GuildMemberState ¶ added in v0.8.0
type GuildMemberState struct {
AccountID uint32
CharID uint32
State uint32
HasAppearance bool
Sex uint16
HeadType uint16
HeadPalette uint16
}
func ParseGuildMemberState ¶ added in v0.8.0
func ParseGuildMemberState(packet Packet) (GuildMemberState, bool, error)
type GuildMenuAccess ¶ added in v0.8.1
type GuildMenuAccess struct {
Mask uint32
}
func ParseGuildMenuAccess ¶ added in v0.8.1
func ParseGuildMenuAccess(packet Packet) (GuildMenuAccess, bool, error)
type GuildNotice ¶
func ParseGuildNotice ¶
func ParseGuildNotice(packet Packet) (GuildNotice, bool, error)
type GuildPosition ¶
type GuildPosition struct {
PositionID uint32
Right uint32
Ranking uint32
PayRate uint32
PosName string
}
func ParseGuildPositionNames ¶
func ParseGuildPositionNames(packet Packet) ([]GuildPosition, bool, error)
func ParseGuildPositions ¶
func ParseGuildPositions(packet Packet) ([]GuildPosition, bool, error)
type GuildRelation ¶ added in v0.8.0
func ParseGuildRelationAdded ¶ added in v0.8.0
func ParseGuildRelationAdded(packet Packet) (GuildRelation, bool, error)
func ParseGuildRelations ¶ added in v0.8.0
func ParseGuildRelations(packet Packet) ([]GuildRelation, bool, error)
type GuildRelationDeleted ¶ added in v0.8.0
func ParseGuildRelationDeleted ¶ added in v0.8.0
func ParseGuildRelationDeleted(packet Packet) (GuildRelationDeleted, bool, error)
type GuildSkillInfo ¶
func ParseGuildSkillInfo ¶
func ParseGuildSkillInfo(packet Packet) (GuildSkillInfo, bool, error)
type HomunculusFeedResult ¶
func ParseHomunculusFeedResult ¶
func ParseHomunculusFeedResult(packet Packet) (HomunculusFeedResult, bool, error)
type HomunculusParamChange ¶
func ParseHomunculusParamChange ¶
func ParseHomunculusParamChange(packet Packet) (HomunculusParamChange, bool, error)
type HomunculusProperty ¶
type HomunculusProperty struct {
Name string
Flags uint8
Level int
Hunger int
Intimacy int
ItemID uint32
Attack int
MagicAttack int
Hit int
Critical int
Defense int
MagicDefense int
Flee int
ASPD int
HP int
MaxHP int
SP int
MaxSP int
Exp uint64
MaxExp uint64
SkillPoints int
AttackRange int
}
func ParseHomunculusProperty ¶
func ParseHomunculusProperty(packet Packet) (HomunculusProperty, bool, error)
type HomunculusSkillInfoList ¶
type HomunculusSkillInfoList struct {
Skills []SkillInfo
}
func ParseHomunculusSkillInfoList ¶
func ParseHomunculusSkillInfoList(packet Packet) (HomunculusSkillInfoList, bool, error)
type HomunculusSkillInfoUpdate ¶
type HomunculusSkillInfoUpdate struct {
Skill SkillInfo
}
func ParseHomunculusSkillInfoUpdate ¶
func ParseHomunculusSkillInfoUpdate(packet Packet) (HomunculusSkillInfoUpdate, bool, error)
type HomunculusStateChange ¶
func ParseHomunculusStateChange ¶
func ParseHomunculusStateChange(packet Packet) (HomunculusStateChange, bool, error)
type HotkeyList ¶
type HotkeyList struct {
Slots []HotkeySlot
}
func ParseHotkeyList ¶
func ParseHotkeyList(packet Packet) (HotkeyList, bool, error)
type HotkeySlot ¶
type InventoryEquipAck ¶
func ParseInventoryEquipAck ¶
func ParseInventoryEquipAck(packet Packet) (InventoryEquipAck, bool, error)
type InventoryItem ¶
type InventoryItem struct {
Index uint16
ItemID uint16
Type uint8
Location uint16
Identified bool
Amount uint16
Equip bool
Equipped bool
Damaged bool
Refine uint8
Cards [4]uint16
}
func ParseCartItemAdded ¶
func ParseCartItemAdded(packet Packet) (InventoryItem, bool, error)
func ParseCartItemList ¶
func ParseCartItemList(packet Packet) ([]InventoryItem, bool, error)
func ParseInventoryItemList ¶
func ParseInventoryItemList(packet Packet) ([]InventoryItem, bool, error)
func ParseStorageItemAdded ¶
func ParseStorageItemAdded(packet Packet) (InventoryItem, bool, error)
func ParseStorageItemList ¶
func ParseStorageItemList(packet Packet) ([]InventoryItem, bool, error)
type InventoryItemDelete ¶
func ParseInventoryItemDelete ¶
func ParseInventoryItemDelete(packet Packet) (InventoryItemDelete, bool, error)
type ItemCompositionAck ¶
func ParseItemCompositionAck ¶
func ParseItemCompositionAck(packet Packet) (ItemCompositionAck, bool, error)
type ItemCompositionList ¶
type ItemCompositionList struct {
Indexes []uint16
}
func ParseItemCompositionList ¶
func ParseItemCompositionList(packet Packet) (ItemCompositionList, bool, error)
type ItemIdentifyAck ¶
func ParseItemIdentifyAck ¶
func ParseItemIdentifyAck(packet Packet) (ItemIdentifyAck, bool, error)
type ItemIdentifyList ¶
type ItemIdentifyList struct {
Indexes []uint16
}
func ParseItemIdentifyList ¶
func ParseItemIdentifyList(packet Packet) (ItemIdentifyList, bool, error)
type ItemPickupAck ¶
type ItemPickupAck struct {
Index uint16
Amount uint16
ItemID uint16
Location uint16
Identified bool
Type uint8
Damaged bool
Refine uint8
Result uint8
}
func ParseItemPickupAck ¶
func ParseItemPickupAck(packet Packet) (ItemPickupAck, bool, error)
type LengthTable ¶
func PacketLengths2008 ¶
func PacketLengths2008() LengthTable
type MailAttachment ¶ added in v0.11.0
type MailMessage ¶ added in v0.11.0
type MailMessage struct {
ID uint32
Title string
Sender string
Body string
Zeny uint32
Attachment MailAttachment
}
func ParseMailRead ¶ added in v0.11.0
func ParseMailRead(packet Packet) (MailMessage, bool, error)
func (MailMessage) HasAttachment ¶ added in v0.11.0
func (m MailMessage) HasAttachment() bool
type MailResetType ¶ added in v0.11.0
type MailResetType uint16
const ( MailResetAll MailResetType = iota MailResetItem MailResetZeny )
type MailResult ¶ added in v0.11.0
MailResult covers the legacy acknowledgements. Get-attachment and send acknowledgements carry no ID; the caller must correlate outstanding work.
func ParseMailResult ¶ added in v0.11.0
func ParseMailResult(packet Packet) (MailResult, bool, error)
type MakeCharacter ¶
type MakingArrowList ¶
type MakingArrowList struct {
ItemIDs []uint16
}
func ParseMakingArrowList ¶
func ParseMakingArrowList(packet Packet) (MakingArrowList, bool, error)
type MakingItemAck ¶
func ParseMakingItemAck ¶
func ParseMakingItemAck(packet Packet) (MakingItemAck, bool, error)
func (MakingItemAck) Alchemist ¶
func (a MakingItemAck) Alchemist() bool
func (MakingItemAck) Success ¶
func (a MakingItemAck) Success() bool
type MakingItemList ¶
type MakingItemList struct {
Type uint16
Items []MakingItemOption
}
func ParseMakableItemList ¶
func ParseMakableItemList(packet Packet) (MakingItemList, bool, error)
func ParseMakingItemList ¶
func ParseMakingItemList(packet Packet) (MakingItemList, bool, error)
type MakingItemOption ¶
type MapAcceptEnter ¶
func ParseMapAcceptEnter ¶
func ParseMapAcceptEnter(packet Packet) (MapAcceptEnter, error)
type MapCellUpdate ¶
func ParseMapCellUpdate ¶
func ParseMapCellUpdate(packet Packet) (MapCellUpdate, bool, error)
type MapInfoNotify ¶ added in v0.8.0
type MapInfoNotify struct {
Result uint16
}
func ParseMapInfoNotify ¶ added in v0.8.0
func ParseMapInfoNotify(packet Packet) (MapInfoNotify, bool, error)
type MapPropertyNotify ¶ added in v0.7.0
type MapPropertyNotify struct {
Property uint16
}
func ParseMapPropertyNotify ¶ added in v0.7.0
func ParseMapPropertyNotify(packet Packet) (MapPropertyNotify, bool, error)
type MapServerEnter ¶
type MercenaryParamChange ¶
func ParseMercenaryParamChange ¶
func ParseMercenaryParamChange(packet Packet) (MercenaryParamChange, bool, error)
type MercenaryProperty ¶
type MercenaryProperty struct {
ID uint32
Name string
Level int
Faith int
SummonCount int
Calls uint32
Kills uint32
ExpireTick uint32
Attack int
MagicAttack int
Hit int
Critical int
Defense int
MagicDefense int
Flee int
ASPD int
HP int
MaxHP int
SP int
MaxSP int
Exp uint32
AttackRange int
}
func ParseMercenaryProperty ¶
func ParseMercenaryProperty(packet Packet) (MercenaryProperty, bool, error)
type MercenarySkillInfoList ¶
type MercenarySkillInfoList struct {
Skills []SkillInfo
}
func ParseMercenarySkillInfoList ¶
func ParseMercenarySkillInfoList(packet Packet) (MercenarySkillInfoList, bool, error)
type MercenarySkillInfoUpdate ¶
type MercenarySkillInfoUpdate struct {
Skill SkillInfo
}
func ParseMercenarySkillInfoUpdate ¶
func ParseMercenarySkillInfoUpdate(packet Packet) (MercenarySkillInfoUpdate, bool, error)
type MinimapCompass ¶
func ParseMinimapCompass ¶
func ParseMinimapCompass(packet Packet) (MinimapCompass, bool, error)
type MonsterElementRates ¶ added in v0.10.0
type MonsterInfo ¶ added in v0.10.0
type MonsterInfo struct {
Class uint16
Level uint16
Size uint16
HP uint32
Defense int16
Race uint16
MagicDefense int16
Property uint16
Elements MonsterElementRates
}
func ParseMonsterInfo ¶ added in v0.10.0
func ParseMonsterInfo(packet Packet) (MonsterInfo, bool, error)
type NPCDialog ¶
type NPCDialog struct {
Kind NPCDialogKind
NPCID uint32
Message string
Options []string
}
type NPCDialogKind ¶
type NPCDialogKind int
const ( NPCDialogSay NPCDialogKind = iota NPCDialogNext NPCDialogClose NPCDialogMenu NPCDialogClear NPCDialogNumberInput NPCDialogStringInput )
type ParameterChange ¶
func ParseParameterChange ¶
func ParseParameterChange(packet Packet) (ParameterChange, bool, error)
type PartyCreateResult ¶
type PartyCreateResult struct {
Result uint8
}
func ParsePartyCreateResult ¶
func ParsePartyCreateResult(packet Packet) (PartyCreateResult, bool, error)
type PartyInviteAnswer ¶
func ParsePartyInviteAnswer ¶
func ParsePartyInviteAnswer(packet Packet) (PartyInviteAnswer, bool, error)
type PartyInviteConfig ¶
type PartyInviteConfig struct {
RefuseInvites bool
}
func ParsePartyInviteConfig ¶
func ParsePartyInviteConfig(packet Packet) (PartyInviteConfig, bool, error)
type PartyInviteRequest ¶
func ParsePartyInviteRequest ¶
func ParsePartyInviteRequest(packet Packet) (PartyInviteRequest, bool, error)
type PartyList ¶
type PartyList struct {
Name string
Members []PartyMember
}
type PartyMember ¶
type PartyMember struct {
AccountID uint32
GroupName string
Name string
MapName string
Role uint32
State uint8
X int
Y int
}
func ParsePartyMemberJoin ¶
func ParsePartyMemberJoin(packet Packet) (PartyMember, bool, error)
type PartyMemberHP ¶
func ParsePartyMemberHP ¶
func ParsePartyMemberHP(packet Packet) (PartyMemberHP, bool, error)
type PartyMemberLeave ¶
func ParsePartyMemberLeave ¶
func ParsePartyMemberLeave(packet Packet) (PartyMemberLeave, bool, error)
type PartyMemberPosition ¶
func ParsePartyMemberPosition ¶
func ParsePartyMemberPosition(packet Packet) (PartyMemberPosition, bool, error)
type PartyOption ¶
type PartyOption struct {
ExpOption uint32
}
func ParsePartyOption ¶
func ParsePartyOption(packet Packet) (PartyOption, bool, error)
type PetCaptureResult ¶
type PetCaptureResult struct {
Success bool
}
func ParsePetCaptureResult ¶
func ParsePetCaptureResult(packet Packet) (PetCaptureResult, bool, error)
type PetCaptureStart ¶
type PetCaptureStart struct{}
func ParsePetCaptureStart ¶
func ParsePetCaptureStart(packet Packet) (PetCaptureStart, bool, error)
type PetEggList ¶
type PetEggList struct {
Indexes []uint16
}
func ParsePetEggList ¶
func ParsePetEggList(packet Packet) (PetEggList, bool, error)
type PetFeedResult ¶
func ParsePetFeedResult ¶
func ParsePetFeedResult(packet Packet) (PetFeedResult, bool, error)
type PetProperty ¶
type PetProperty struct {
Name string
Modified bool
Level uint16
Fullness uint16
Relationship uint16
AccessoryID uint16
Job uint16
}
func ParsePetProperty ¶
func ParsePetProperty(packet Packet) (PetProperty, bool, error)
type PetStateChange ¶
func ParsePetStateChange ¶
func ParsePetStateChange(packet Packet) (PetStateChange, bool, error)
type ProgressBar ¶ added in v0.10.0
func ParseProgressBar ¶ added in v0.10.0
func ParseProgressBar(packet Packet) (ProgressBar, bool, error)
type PvPRanking ¶ added in v0.7.0
func ParsePvPRanking ¶ added in v0.7.0
func ParsePvPRanking(packet Packet) (PvPRanking, bool, error)
type QuitGameAck ¶
func ParseQuitGameAck ¶
func ParseQuitGameAck(packet Packet) (QuitGameAck, bool, error)
type RememberWarpPointAck ¶
type RememberWarpPointAck struct {
Result byte
}
func ParseRememberWarpPointAck ¶
func ParseRememberWarpPointAck(packet Packet) (RememberWarpPointAck, bool, error)
type RepairItem ¶
type RepairItemAck ¶
func ParseRepairItemAck ¶
func ParseRepairItemAck(packet Packet) (RepairItemAck, bool, error)
func (RepairItemAck) Success ¶
func (a RepairItemAck) Success() bool
type RepairItemList ¶
type RepairItemList struct {
Items []RepairItem
}
func ParseRepairItemList ¶
func ParseRepairItemList(packet Packet) (RepairItemList, bool, error)
type RestartAck ¶
type RestartAck struct {
Allowed bool
}
func ParseRestartAck ¶
func ParseRestartAck(packet Packet) (RestartAck, bool, error)
type SelfMoveAck ¶
func ParseSelfMoveAck ¶
func ParseSelfMoveAck(packet Packet) (SelfMoveAck, bool, error)
type SellRequestItem ¶
type ShopBuyItem ¶
func ParseShopBuyList ¶
func ParseShopBuyList(packet Packet) ([]ShopBuyItem, bool, error)
type ShopDealSelection ¶
type ShopDealSelection struct {
NPCID uint32
}
func ParseShopDealSelection ¶
func ParseShopDealSelection(packet Packet) (ShopDealSelection, bool, error)
type ShopResult ¶
func ParseShopResult ¶
func ParseShopResult(packet Packet) (ShopResult, bool, error)
type ShopSellItem ¶
func ParseShopSellList ¶
func ParseShopSellList(packet Packet) ([]ShopSellItem, bool, error)
type ShowDigit ¶ added in v0.10.0
type ShowDigit struct {
Mode ShowDigitMode
Value int32
}
type ShowDigitMode ¶ added in v0.10.0
type ShowDigitMode uint8
const ( ShowDigitStatic ShowDigitMode = iota ShowDigitCountUp ShowDigitCountDown ShowDigitFastCountDown )
type SkillCastNotify ¶
type SkillCastNotify struct {
SourceID uint32
TargetID uint32
X uint16
Y uint16
SkillID uint16
Property uint32
DelayTime uint32
}
func ParseSkillCastNotify ¶
func ParseSkillCastNotify(packet Packet) (SkillCastNotify, bool, error)
type SkillFailAck ¶
func ParseSkillFailAck ¶
func ParseSkillFailAck(packet Packet) (SkillFailAck, bool, error)
type SkillInfoList ¶
type SkillInfoList struct {
Skills []SkillInfo
}
func ParseSkillInfoList ¶
func ParseSkillInfoList(packet Packet) (SkillInfoList, bool, error)
type SkillInfoUpdate ¶
type SkillInfoUpdate struct {
Skill SkillInfo
}
func ParseSkillInfoUpdate ¶
func ParseSkillInfoUpdate(packet Packet) (SkillInfoUpdate, bool, error)
type SkillMessage ¶ added in v0.10.0
type SkillMessage struct {
ID int32
}
func ParseSkillMessage ¶ added in v0.10.0
func ParseSkillMessage(packet Packet) (SkillMessage, bool, error)
type SkillNoDamageNotify ¶
type SkillNoDamageNotify struct {
SkillID uint16
Amount uint32
TargetID uint32
SourceID uint32
Result byte
}
func ParseSkillNoDamageNotify ¶
func ParseSkillNoDamageNotify(packet Packet) (SkillNoDamageNotify, bool, error)
type SkillUnitDisappear ¶
type SkillUnitDisappear struct {
ID uint32
}
func ParseSkillUnitDisappear ¶
func ParseSkillUnitDisappear(packet Packet) (SkillUnitDisappear, bool, error)
type SkillUnitEntry ¶
type SkillUnitEntry struct {
ID uint32
CreatorID uint32
X uint16
Y uint16
UnitID uint16
Visible bool
}
func ParseSkillUnitEntry ¶
func ParseSkillUnitEntry(packet Packet) (SkillUnitEntry, bool, error)
type SkillUnitUpdate ¶
type SkillUnitUpdate struct {
ID uint32
}
func ParseSkillUnitUpdate ¶
func ParseSkillUnitUpdate(packet Packet) (SkillUnitUpdate, bool, error)
type SpecialEffectNotify ¶
func ParseSpecialEffectNotify ¶
func ParseSpecialEffectNotify(packet Packet) (SpecialEffectNotify, bool, error)
type StatusChangeAck ¶
func ParseStatusChangeAck ¶
func ParseStatusChangeAck(packet Packet) (StatusChangeAck, bool, error)
type StatusEffectChange ¶
type StatusEffectChange struct {
StatusID uint16
ActorID uint32
Active bool
HasDuration bool
Duration time.Duration
HasValues bool
Values [3]int32
}
func ParseStatusEffectChange ¶
func ParseStatusEffectChange(packet Packet) (StatusEffectChange, bool, error)
type StatusSnapshot ¶
type StatusSnapshot struct {
Points int
Str int
Agi int
Vit int
Int int
Dex int
Luk int
StrBonus int
AgiBonus int
VitBonus int
IntBonus int
DexBonus int
LukBonus int
StrCost int
AgiCost int
VitCost int
IntCost int
DexCost int
LukCost int
Attack int
AttackBonus int
MatkMax int
MatkMin int
Defense int
DefenseBonus int
MDefense int
MDefenseBonus int
Hit int
Flee int
FleeBonus int
Critical int
ASPD int
ASPDBonus int
}
func ParseStatusSnapshot ¶
func ParseStatusSnapshot(packet Packet) (StatusSnapshot, bool, error)
type StorageAmount ¶
func ParseStorageAmount ¶
func ParseStorageAmount(packet Packet) (StorageAmount, bool, error)
type StorageItemRemoved ¶
func ParseStorageItemRemoved ¶
func ParseStorageItemRemoved(packet Packet) (StorageItemRemoved, bool, error)
type StoragePasswordPrompt ¶ added in v0.10.0
type StoragePasswordPrompt struct {
State StoragePasswordPromptState
}
func ParseStoragePasswordPrompt ¶ added in v0.10.0
func ParseStoragePasswordPrompt(packet Packet) (StoragePasswordPrompt, bool, error)
type StoragePasswordPromptState ¶ added in v0.10.0
type StoragePasswordPromptState uint16
const ( StoragePasswordNotSet StoragePasswordPromptState = 0 StoragePasswordSet StoragePasswordPromptState = 1 StoragePasswordLocked StoragePasswordPromptState = 8 )
type StoragePasswordReplyType ¶ added in v0.10.0
type StoragePasswordReplyType uint16
const ( StoragePasswordChange StoragePasswordReplyType = 2 StoragePasswordCheck StoragePasswordReplyType = 3 )
type StoragePasswordResult ¶ added in v0.10.0
type StoragePasswordResult struct {
Code StoragePasswordResultCode
ErrorCount uint16
}
func ParseStoragePasswordResult ¶ added in v0.10.0
func ParseStoragePasswordResult(packet Packet) (StoragePasswordResult, bool, error)
type StoragePasswordResultCode ¶ added in v0.10.0
type StoragePasswordResultCode uint16
const ( StoragePasswordChangeSucceeded StoragePasswordResultCode = 4 StoragePasswordChangeFailed StoragePasswordResultCode = 5 StoragePasswordCheckSucceeded StoragePasswordResultCode = 6 StoragePasswordCheckFailed StoragePasswordResultCode = 7 StoragePasswordTooManyFailures StoragePasswordResultCode = 8 )
type TaekwonMission ¶ added in v0.6.0
func ParseTaekwonMission ¶ added in v0.6.0
func ParseTaekwonMission(packet Packet) (TaekwonMission, bool, error)
type TradeAddItemAck ¶
func ParseTradeAddItemAck ¶
func ParseTradeAddItemAck(packet Packet) (TradeAddItemAck, bool, error)
type TradeConclude ¶
type TradeConclude struct {
Other bool
}
func ParseTradeConclude ¶
func ParseTradeConclude(packet Packet) (TradeConclude, bool, error)
type TradeItem ¶
type TradeRequest ¶
func ParseTradeRequest ¶
func ParseTradeRequest(packet Packet) (TradeRequest, bool, error)
type TradeResponse ¶
func ParseTradeResponse ¶
func ParseTradeResponse(packet Packet) (TradeResponse, bool, error)
type UseItemAck ¶
func ParseUseItemAck ¶
func ParseUseItemAck(packet Packet) (UseItemAck, bool, error)
type VendingBoard ¶
func ParseVendingBoard ¶
func ParseVendingBoard(packet Packet) (VendingBoard, bool, error)
type VendingBoardDisappear ¶
type VendingBoardDisappear struct {
OwnerAID uint32
}
func ParseVendingBoardDisappear ¶
func ParseVendingBoardDisappear(packet Packet) (VendingBoardDisappear, bool, error)
type VendingItem ¶
type VendingItemList ¶
type VendingItemList struct {
OwnerAID uint32
Items []VendingItem
Own bool
}
func ParseVendingItemList ¶
func ParseVendingItemList(packet Packet) (VendingItemList, bool, error)
type VendingOpenItem ¶
type VendingOpenRequest ¶
type VendingOpenRequest struct {
MaxItems uint16
}
func ParseVendingOpenRequest ¶
func ParseVendingOpenRequest(packet Packet) (VendingOpenRequest, bool, error)
type VendingPurchaseItem ¶
type VendingPurchaseResult ¶
func ParseVendingPurchaseResult ¶
func ParseVendingPurchaseResult(packet Packet) (VendingPurchaseResult, bool, error)
type VendingSoldItem ¶
func ParseVendingSoldItem ¶
func ParseVendingSoldItem(packet Packet) (VendingSoldItem, bool, error)
type ViewedEquipment ¶
type ViewedEquipment struct {
Name string
Job uint16
Head uint16
HeadTop uint16
HeadMid uint16
HeadLow uint16
HeadPalette uint16
BodyPalette uint16
Sex byte
Items []InventoryItem
}
func ParseViewedEquipment ¶
func ParseViewedEquipment(packet Packet) (ViewedEquipment, bool, error)
type WarpPointList ¶
func ParseWarpPointList ¶
func ParseWarpPointList(packet Packet) (WarpPointList, bool, error)
type WeaponRefineAck ¶
func ParseWeaponRefineAck ¶
func ParseWeaponRefineAck(packet Packet) (WeaponRefineAck, bool, error)
func (WeaponRefineAck) Success ¶
func (a WeaponRefineAck) Success() bool
type WeaponRefineItem ¶
type WeaponRefineList ¶
type WeaponRefineList struct {
Items []WeaponRefineItem
}
func ParseWeaponRefineList ¶
func ParseWeaponRefineList(packet Packet) (WeaponRefineList, bool, error)
type WhisperAck ¶
type WhisperAck struct {
Result uint8
}
func ParseWhisperAck ¶
func ParseWhisperAck(packet Packet) (WhisperAck, bool, error)
type WhisperIgnoreAck ¶
func ParseWhisperIgnoreAck ¶
func ParseWhisperIgnoreAck(packet Packet) (WhisperIgnoreAck, bool, error)
type WhisperMessage ¶
func ParseWhisperMessage ¶
func ParseWhisperMessage(packet Packet) (WhisperMessage, bool, error)
type ZoneServerNotify ¶
func ParseZoneServerNotify ¶
func ParseZoneServerNotify(packet Packet) (ZoneServerNotify, error)
Source Files
¶
- actor_packets.go
- adoption_packets.go
- chat_packets.go
- client.go
- companion_packets.go
- disconnect_packets.go
- doc.go
- effect_packets.go
- emotion_packets.go
- equipment_packets.go
- fixed_string.go
- framer.go
- friend_packets.go
- guild_packets.go
- hotkey_packets.go
- item_packets.go
- login_packets.go
- login_responses.go
- mail_packets.go
- map_keepalive.go
- map_packets.go
- minimap_packets.go
- name_packets.go
- novice_packets.go
- npc_packets.go
- packet.go
- party_packets.go
- pet_packets.go
- pvp_packets.go
- ranking_packets.go
- restart_packets.go
- revive_packets.go
- server_info_packets.go
- skill_packets.go
- status_packets.go
- storage_password_packets.go
- taekwon_packets.go
- trade_packets.go
- vending_packets.go
- writer.go
Click to show internal directories.
Click to hide internal directories.