Quote:
Originally Posted by sadusten
Yea i tried couple different ones like
Code:
SendPacket(0x10, 0x7D, 0x690, 2992, 819)
Code:
SendPacket(0x4, 0x7F, 0x690, 2992, 819)
1 gave me 007 error and the others just doesnt do anything :p
|
Its because 0x690 is an offset inside the WorldContext.
Lets say you have a big shelf called GameContext
The shelf 'GameContext' has some drawer.
there is like:
- AgentContext
- ItemContext
- MapContext
- GuildContext
- and more Contexts and non Contexts.
and there is the WorldContext.
each of the Contexts saves a bunch of information.
So the WorldContext stores for example the current active quest, the current mission states, your unlocked skills, your earned points like kurzick, balth etc
so a bunch of stuff related to the 'world'.
the world drawer starts at 0x0 when u start to pull it.
so u will need to pull the drawer until u see the offset 0x690. There is the session ID needed for your Salvaging.
You will need the read some layers of Memory.
This is the file i made for my own API months ago but i dont use autoit anymore. U can easily see what offsets u ll need to read out:
Code:
;File: Interface_GuildWarsBase.au3 //epvp edit: also called BasePointer
;{
Func _Gwen_GetGameContext()
If $_GameContext = 0 Then
$_GameContext = _Gwen_Read($_BasePointer)
$_GameContext = _Gwen_Read($_GameContext + 0x18)
EndIf
Return $_GameContext
EndFunc
;}
this is how u get the GameContext. U will need to fin out how to get the BasePointer by urself or look into ur GWA2.
Code:
;File: Interface_GameContext.au3
;{
Global Enum $CONTEXT_AGENT = 0x08, _
$CONTEXT_MAP = 0x14, _
$CONTEXT_WORLD = 0x2C, _
$CONTEXT_CINEMATIC = 0x30, _
$CONTEXT_GADGET = 0x38, _
$CONTEXT_GUILD = 0x3C, _
$CONTEXT_ITEM = 0x40, _
$CONTEXT_ACCOUNT = 0x44, _
$CONTEXT_PARTY = 0x4C, _
$CONTEXT_TRADE = 0x58
;}
So u see where to read the WorldContext from.
Code:
;File: Interface_WorldContext.au3
;{
Global Enum $WORLDCONTEXT_MERCHANT_ITEMS = 0x0024, _
$WORLDCONTEXT_MERCHANT_ROWS = 0x0028, _
$WORLDCONTEXT_MAP_AGENT_ARRAY = 0x007C, _
$WORLDCONTEXT_ALL_FLAG = 0x009C, _
$WORLDCONTEXT_PARTY_ATTRIBUTES_ARRAY = 0x00AC, _
$WORLDCONTEXT_PARTY_EFFECTS_ARRAY = 0x0508, _
$WORLDCONTEXT_ACTIVE_QUEST_ID = 0x0528, _
$WORLDCONTEXT_QUEST_LOG = 0x052C, _
$WORLDCONTEXT_MISSION_OBJECTIVES_ARRAY = 0x0564, _
$WORLDCONTEXT_HERO_FLAG_ARRAY = 0x0584, _
$WORLDCONTEXT_HERO_INFO_ARRAY = 0x0594, _
$WORLDCONTEXT_MISSION_BONUS_ARRAY = 0x05CC, _
$WORLDCONTEXT_MISSION_COMPLETED_ARRAY = 0x05DC, _
$WORLDCONTEXT_MISSION_BONUS_HM_ARRAY = 0x05EC, _
$WORLDCONTEXT_MISSION_COMPLETED_HM_ARRAY = 0x05FC, _
$WORLDCONTEXT_UNLOCKED_MAP_ARRAY = 0x060C, _
$WORLDCONTEXT_SALVAGE_SESSION_ID = 0x0690, _
$WORLDCONTEXT_SKILLBAR_ARRAY = 0x06F0, _
$WORLDCONTEXT_UNLOCKED_SKILLS_ARRAY = 0x0710, _ ;Bit Field
$WORLDCONTEXT_EXPERIENCE = 0x0740, _
$WORLDCONTEXT_CURRENT_KURZICK_POINTS = 0x0748, _
$WORLDCONTEXT_TOTAL_EARNED_KURZICK_POINTS = 0x0750, _ ;Number in the Tooltip of the Kurzick-Bar in the Hero-Panel
$WORLDCONTEXT_CURRENT_LUXON_POINTS = 0x0758, _
$WORLDCONTEXT_TOTAL_EARNED_LUXON_POINTS = 0x0760, _ ;Number in the Tooltip of the Luxon-Bar in the Hero-Panel
$WORLDCONTEXT_CURRENT_IMPERIAL_POINTS = 0x0768, _
$WORLDCONTEXT_TOTAL_EARNED_IMPERIAL_POINTS = 0x0770, _ ;Number in the Tooltip of the Imperial-Bar in the Hero-Panel
$WORLDCONTEXT_LEVEL = 0x0788, _
$WORLDCONTEXT_CURRENT_BALTHAZAR_POINTS = 0x0798, _
$WORLDCONTEXT_TOTAL_EARNED_BALTHAZAR_POINTS = 0x07A0, _ ;Number in the Tooltip of the Balthazar-Bar in the Hero-Panel
$WORLDCONTEXT_CURRENT_SKILL_POINTS = 0x07A8, _
$WORLDCONTEXT_TOTAL_EARNED_SKILL_POINTS = 0x07B0, _ ;Number in the Tooltip of the Skillpoint-Field in the Hero-Panel
$WORLDCONTEXT_MAX_KURZICK_POINTS = 0x07B8, _
$WORLDCONTEXT_MAX_LUXON_POINTS = 0x07BC, _
$WORLDCONTEXT_MAX_BALTHAZAR_POINTS = 0x07C0, _
$WORLDCONTEXT_MAX_IMPERIAL_POINTS = 0x07C4, _
$WORLDCONTEXT_AGENT_INFO_ARRAY = 0x07CC, _
$WORLDCONTEXT_NPC_ARRAY = 0x07FC, _
$WORLDCONTEXT_PLAYER_ARRAY = 0x080C, _
$WORLDCONTEXT_TITLE_ARRAY = 0x081C, _
$WORLDCONTEXT_FOES_KILLED = 0x084C, _
$WORLDCONTEXT_FOES_TO_KILL = 0x0850
;}
and heres the important stuff of the WorldContext. (Some Offset may changed, since the API is 4 Months old and didnt get updated yet.)
But 0x690 is still the offset u want.
TL-DR:
GameContext = Read(Read(BasePointer) + 0x18)
WorldContext = Read(GameContext + 0x2C)
SessionId = Read(WorldContext + 0x690)