I got these values using the various tutorials I found in the treasure map, they are probably not the same as those used in prophet or mhs, but if you are programming your bot or something, they can help you.
Code:
Sendpacket: 0x009919B0 RealBaseAddress: 0x0128DB9C Offsets: PlayerStruct: 1C PlayerBase: 30 PlayerBase2: 9C PlayerName: A54 PlayerCurrentHealth: 6F4 PlayerTotalHealth: 74C Pos X: 3C Pos Y: 44 Pos Z: 40 PlayerID: 6E0 TargetID: 864 PlayerStruct2: 5DC PlayerCount: 18 NPCArrayBase: 1C + 1C + 20 + 6C (Offset Sequence) NPCCount: 1C + 1C + 20 + 18 NPCName: 26C NPCID: 114 NPCCurrentHP: 128 NPCTotalHP: 180
[[[RealBaseAddress]+PlayerStruct]+PlayerBase]+(Info offset)
Example find your ID:
[[[RealBaseAdress]+1C]+30]+6E0]
Player Count:
[[[[RealBaseAddress]+PlayerStruct]+PlayerBase]+PlayerStruct2]+PlayerCount
Using player array:
[[[[[[RealBaseAddress]+PlayerStruct]+PlayerBase]+PlayerStruct2]+PlayerBase2]+x*4(x = player number)]+(info offset)
Using NPC Count:
[[[[RealBaseAddress]+1C]+1C]+20]+18
Using NPC array:
[[[[[[RealBaseAddress]+1C]+1C]+20]+6C]+x*4(Npc number)]+(NPC info offset, position is the same offset)
Accept quest function, I updated interest07's accept mission function, if you use the sendpacket he made:
Code:
Func acceptQuest($questId, $pid) ;ACEITA QUEST NOVO
;//Accept a new quest
local $packet, $packetSize
$packet = '2500'
$packet &= '07000000'
$packet &= '10000000'
$packet &= _hex($questId)
$packetSize = 26
sendPacket($packet, $packetSize, $pid)
EndFunc






