Quote:
Originally Posted by Coaxx123
Lucky for me I've left my vaettir bot running so hasnt updated yet on my second account, how do we know what to update headers too?
|
There are some bot developer tools that let you see the headers when doing tasks in game. One of the tools is called CtoS (Client to Server). Once you start the tool you then have your char do simple tasks like drop an item on the ground. You then read the code from the tool and update. Then you move on to the next task like pick up an item. It takes some time because you need to go down a list of common functions that are used in the header and find all the ones that have changed.
Here is a lost of the common headers that need to be checked and updated:
Code:
;=QUEST=
Global Const $HEADER_QUEST_ACCEPT = 0x41 ;Accepts a quest from the NPC
Global Const $HEADER_QUEST_REWARD = 0x41 ;Retrieves Quest reward from NPC
Global Const $HEADER_QUEST_ABANDON = 0x12 ;Abandons the quest
;=HERO=
Global Const $HEADER_HERO_AGGRESSION = 0x17 ;Sets the heroes aggression level
Global Const $HEADER_HERO_LOCK = 0x18 ;Locks the heroes target
Global Const $HEADER_HERO_TOGGLE_SKILL = 0x1C ;Enables or disables the heroes skill
Global Const $HEADER_HERO_CLEAR_FLAG = 0x1E ;Clears the heroes position flag
Global Const $HEADER_HERO_PLACE_FLAG = 0x1E ;Sets the heroes position flag, hero runs to position
Global Const $HEADER_HERO_ADD = 0x23 ;Adds hero to party
Global Const $HEADER_HERO_KICK = 0x24 ;Kicks hero from party
Global Const $HEADER_HEROES_KICK = 0x24 ;Kicks ALL heroes from party
;=PARTY=
Global Const $HEADER_PARTY_PLACE_FLAG = 0x1F ;Sets the party position flag, all party-npcs runs to position
Global Const $HEADER_PARTY_CLEAR_FLAG = 0x1F ;Clears the party position flag
Global Const $HEADER_HENCHMAN_ADD = 0xA5 ;Adds henchman to party
Global Const $HEADER_PARTY_LEAVE = 0xA8 ;Leaves the party
Global Const $HEADER_HENCHMAN_KICK = 0xAD ;Kicks a henchman from party
Global Const $HEADER_INVITE_TARGET = 0xA6 ;Invite target player to party
Global Const $HEADER_INVITE_CANCEL = 0xA3 ;Cancel invitation of player
Global Const $HEADER_INVITE_ACCEPT = 0xA2 ;Accept invitation to party
;=TARGET (Enemies or NPC)=
Global Const $HEADER_CALL_TARGET = 0x28 ;Calls the target without attacking (Ctrl+Shift+Space)
Global Const $HEADER_ATTACK_AGENT = 0x2C ;Attacks agent (Space IIRC)
Global Const $HEADER_CANCEL_ACTION = 0x2E ;Cancels the current action
Global Const $HEADER_AGENT_FOLLOW = 0x39 ;Follows the agent/npc. Ctrl+Click triggers "I am following Person" in chat
Global Const $HEADER_NPC_TALK = 0x3F ;talks/goes to npc
Global Const $HEADER_SIGNPOST_RUN = 0x57 ;Runs to signpost
;=DROP=
Global Const $HEADER_ITEM_DROP = 0x32 ;Drops item from inventory to ground
Global Const $HEADER_GOLD_DROP = 0x35 ;Drops gold from inventory to ground
;=BUFFS=
Global Const $HEADER_STOP_MAINTAIN_ENCH = 0x2F ;Drops buff, cancel enchantmant, whatever you call it
;=ITEMS=
Global Const $HEADER_ITEM_EQUIP = 0x36 ;Equips item from inventory/chest/no idea
Global Const $HEADER_ITEM_PICKUP = 0x45 ;Picks up an item from ground
Global Const $HEADER_ITEM_DESTROY = 0x6E ;Destroys the item
Global Const $HEADER_ITEM_ID = 0x71 ;Identifies item in inventory
Global Const $HEADER_ITEM_MOVE = 0x77 ;Moves item in inventory
Global Const $HEADER_ITEMS_ACCEPT_UNCLAIMED = 0x78 ;Accepts ITEMS not picked up in missions
Global Const $HEADER_ITEM_MOVE_EX = 0x7A ;Moves an item, with amount to be moved.
Global Const $HEADER_SALVAGE_MATS = 0x7F ;Salvages materials from item
Global Const $HEADER_SALVAGE_MODS = 0x80 ;Salvages mods from item
Global Const $HEADER_ITEM_USE = 0x83 ;Uses item from inventory/chest
Global Const $HEADER_ITEM_UNEQUIP = 0x55 ;Unequip item
Global Const $HEADER_UPGRADE = 0x87 ;used by gwapi. is it even useful? NOT TESTED
Global Const $HEADER_UPGRADE_ARMOR_1 = 0x84 ;used by gwapi. is it even useful? NOT TESTED
Global Const $HEADER_UPGRADE_ARMOR_2 = 0x87 ;used by gwapi. is it even useful? NOT TESTED
;=TRADE=
Global Const $HEADER_TRADE_PLAYER = 0x4F ;Send trade request to player
Global Const $HEADER_TRADE_OFFER_ITEM = 0x02 ;Add item to trade window
Global Const $HEADER_TRADE_SUBMIT_OFFER = 0x03 ;Submit offer
Global Const $HEADER_TRADE_CHANGE_OFFER = 0x06 ;Change offer
Global Const $HEADER_TRADE_CANCEL = 0x01 ;Cancel trade
Global Const $HEADER_TRADE_ACCEPT = 0x07 ;Accept trade
;=TRAVEL=
Global Const $HEADER_MAP_TRAVEL = 0xB7 ;Travels to outpost via worldmap
Global Const $HEADER_GUILDHALL_TRAVEL = 0xB6 ;Travels to guild hall
Global Const $HEADER_GUILDHALL_LEAVE = 0xB8 ;Leaves Guildhall
;=FACTION=
Global Const $HEADER_FACTION_DONATE = 0x3B ;Donates kurzick/luxon faction to ally
;=TITLE=
Global Const $HEADER_TITLE_DISPLAY = 0x5D ;Displays title (from Gigis Vaettir Bot)
Global Const $HEADER_TITLE_CLEAR = 0x5E ;Hides title (from Gigis Vaettir Bot)
;=DIALOG=
Global Const $HEADER_DIALOG = 0x41 ;Sends a dialog to NPC
Global Const $HEADER_CINEMATIC_SKIP = 0x68 ;Skips the cinematic
;=SKILL / BUILD=
Global Const $HEADER_SKILL_CHANGE = 0x61 ;Changes a skill on the skillbar
Global Const $HEADER_BUILD_LOAD = 0x62 ;Loads a complete build
Global Const $HEADER_CHANGE_SECONDARY = 0x47 ;Changes Secondary class (from Build window, not class changer)
Global Const $HEADER_SKILL_USE_ALLY = 0x4C ;used by gwapi. appears to have changed
Global Const $HEADER_SKILL_USE_FOE = 0x4C ;used by gwapi. appears to have changed
Global Const $HEADER_SKILL_USE_ID = 0x4C ;
Global Const $HEADER_SET_ATTRIBUTES = 0x10 ;hidden in init stuff like sendchat
;=CHEST=
Global Const $HEADER_CHEST_OPEN = 0x59 ;Opens a chest (with key AFAIK)
Global Const $HEADER_GOLD_MOVE = 0x81 ;Moves Gold (from chest to inventory, and otherway around IIRC)
;=MISSION=
Global Const $HEADER_MODE_SWITCH = 0xA1 ;Toggles hard- and normal mode
Global Const $HEADER_MISSION_ENTER = 0xAB ;Enter a mission/challenge
Global Const $HEADER_MISSION_FOREIGN_ENTER = 0xAB ;Enters a foreign mission/challenge (no idea honestly)
Global Const $HEADER_OUTPOST_RETURN = 0xAD ;Returns to outpost after /resign
;=CHAT=
Global Const $HEADER_SEND_CHAT = 0x69 ;Needed for sending messages in chat
;=OTHER CONSTANTS=
Global Const $HEADER_MAX_ATTRIBUTES_CONST_5 = 0x04 ;constant at word 5 of max attrib packet. Changed from 3 to four in most recent update
Global Const $HEADER_MAX_ATTRIBUTES_CONST_22 = 0x04 ;constant at word 22 of max attrib packet. Changed from 3 to four in most recent update
Sometimes other things change that require a little longer to fix. These are patterns and strings that are a little harder to identify. Currently, I noticed that something has changed for the render. This most likely is a change because of the recent graphics upgrades on 1 May, 2019. I am looking into it now.