öhm warum bekomm ich mit autoit immer nur 546 o_O
;-Memorie Liste für update.ini
;==============================
#include "tt6.au3"
#include <Array.au3>
;-Base Pointer Health
Const $PTR_HEALTH = IniRead("update.ini", "SECTION D", "PTR_HP_E", "Not Found")
;-Base Pointer Health Offset
Const $PTR_GLOBAL_OFFSET = 0x104
;Cur & Max HP
Const $PTR_HEALTH_CUR_HP = 0x28
Const $PTR_HEALTH_MAX_HP = 0x2c
;Cur & Max Energy
Const $PTR_HEALTH_CUR_E = 0x14
Const $PTR_HEALTH_MAX_E = 0x18
;-Hero Hp offsets
Const $PTR_HEALTH_HERO1 = 0xc
Const $PTR_HEALTH_HERO2 = 0x40
Const $PTR_HEALTH_HERO3 = 0x74
;-Base Pointer A + Offset 1/2 for points
Const $PTR_BASE_A = IniRead("update.ini", "SECTION D", "PTR_BASEA", "Not Found")
Const $PTR_BASE_A_OFFSET1 = 0x18
Const $PTR_BASE_A_OFFSET2 = 0x2c
;Cur & Max Balthazar
Const $PTR_BASE_A_MAXBALTHAZAR_OS = 0x748
Const $PTR_BASE_A_CURBALTHAZAR_OS = 0x724
;-Gold @chest & @inventory
Const $PTR_BASE_A_OFFSET1_GOLD = 0x18
Const $PTR_BASE_A_OFFSET2_GOLD = 0x40
Const $PTR_BASE_A_OFFSET3_GOLD = 0xf8
Const $PTR_BASE_A_OFFSET_GOLD_SELF = 0x64
;-Travel
Const $PTR_BASE_A_OFFSET1_TRAVEL = 0x18
Const $PTR_BASE_A_OFFSET2_TRAVEL = 0x44
Const $PTR_BASE_A_OFFSET_TRAVELID = 0x1bc
;-Travel
;
$1_TravelID = _MemoryRead($PTR_BASE_A, $hprocess, 'dword')
$2_TravelID = _MemoryRead($1_TravelID + $PTR_BASE_A_OFFSET1_TRAVEL, $hprocess, 'dword')
$3_TravelID = _MemoryRead($2_TravelID + $PTR_BASE_A_OFFSET2_TRAVEL, $hprocess, 'dword')
$4_TravelID = _MemoryRead($3_TravelID + $PTR_BASE_A_OFFSET_TRAVELID, $hprocess, 'dword')
$TRAVEL_ID = $4_TravelID
;-Points
;Max Balthazar
$1_MaxBalthazar = _MemoryRead($PTR_BASE_A, $hprocess, 'dword')
$2_MaxBalthazar = _MemoryRead($1_MaxBalthazar + $PTR_BASE_A_OFFSET1, $hprocess, 'dword')
$3_MaxBalthazar = _MemoryRead($2_MaxBalthazar + $PTR_BASE_A_OFFSET2, $hprocess, 'dword')
$4_MaxBalthazar = _MemoryRead($3_MaxBalthazar + $PTR_BASE_A_MAXBALTHAZAR_OS, $hprocess, 'int')
$MAX_BALTHAZAR = $4_MaxBalthazar
;Cur Balthazar
$1_CurBalthazar = _MemoryRead($PTR_BASE_A, $hprocess, 'dword')
$2_CurBalthazar = _MemoryRead($1_CurBalthazar + $PTR_BASE_A_OFFSET1, $hprocess, 'dword')
$3_CurBalthazar = _MemoryRead($2_CurBalthazar + $PTR_BASE_A_OFFSET2, $hprocess, 'dword')
$4_CurBalthazar = _MemoryRead($3_CurBalthazar + $PTR_BASE_A_CURBALTHAZAR_OS, $hprocess, 'int')
$CUR_BALTHAZAR = $4_CurBalthazar
;Gold
;-Gold in inventory
$1_InventoryGold = _MemoryRead($PTR_BASE_A, $hprocess, 'dword')
$2_InventoryGold = _MemoryRead($1_InventoryGold + $PTR_BASE_A_OFFSET1_GOLD, $hprocess, 'dword')
$3_InventoryGold = _MemoryRead($2_InventoryGold + $PTR_BASE_A_OFFSET2_GOLD, $hprocess, 'dword')
$4_InventoryGold = _MemoryRead($3_InventoryGold + $PTR_BASE_A_OFFSET3_GOLD, $hprocess, 'dword')
$5_InventoryGold = _MemoryRead($4_InventoryGold + $PTR_BASE_A_OFFSET_GOLD_SELF, $hprocess, 'int')
$INVENTORY_GOLD = $5_InventoryGold
;-PlayerSelf
;-Current Energystack
$1_OwnEnergy = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_OwnEnergy = _MemoryRead($1_OwnEnergy + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_OwnEnergy = _MemoryRead($2_OwnEnergy + $PTR_HEALTH_CUR_E, $hprocess, 'float')
;-Max Energystack
$1_OwnEnergyMAX = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_OwnEnergyMAX = _MemoryRead($1_OwnEnergy + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_OwnEnergyMAX = _MemoryRead($2_OwnEnergy + $PTR_HEALTH_MAX_E, $hprocess, 'int')
$MAX_E = $3_OwnEnergyMAX
;-Healthstack
$1_OwnHealth = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_OwnHealth = _MemoryRead($1_OwnHealth + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_OwnHealth = _MemoryRead($2_OwnHealth + $PTR_HEALTH_CUR_HP, $hprocess, 'int')
;-Max Healthstack
$1_OwnHealthMAX = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_OwnHealthMAX = _MemoryRead($1_OwnHealth + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_OwnHealthMAX = _MemoryRead($2_OwnHealth + $PTR_HEALTH_MAX_HP, $hprocess, 'int')
$MAX_HP = $3_OwnHealthMAX
;-Hero1 Healthstack
$1_Hero1Health = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_Hero1Health = _MemoryRead($1_Hero1Health + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_Hero1Health = _MemoryRead($2_Hero1Health - $PTR_HEALTH_HERO1, $hprocess, 'float')
$CUR_HP_HERO1 = $3_Hero1Health
;-Hero2 Healthstack
$1_Hero2Health = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_Hero2Health = _MemoryRead($1_Hero2Health + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_Hero2Health = _MemoryRead($2_Hero2Health - $PTR_HEALTH_HERO2, $hprocess, 'float')
$CUR_HP_HERO2 = $3_Hero2Health
;-Hero3 Healthstack
$1_Hero3Health = _MemoryRead($PTR_HEALTH, $hprocess, 'dword')
$2_Hero3Health = _MemoryRead($1_Hero3Health + $PTR_GLOBAL_OFFSET, $hprocess, 'dword')
$3_Hero3Health = _MemoryRead($2_Hero3Health - $PTR_HEALTH_HERO3, $hprocess, 'float')
$CUR_HP_HERO3 = $3_Hero3Health
;-=============================================
$READ = _MemoryRead($TRAVEL_ID, $hprocess)
MsgBox(0x40, "ID", "Travel ID: " & $READ)
#include "tt6.au3" _MemoryOpen($hprocess) Const $base = 0xa00768 Const $off1 = 0x18 Const $off2 = 0x2c Const $exp = 0x6dc $1 = _MemoryRead($base, $hprocess) $2 = _MemoryRead($1 + $off1, $hprocess) $3 = _MemoryRead($2 + $off2, $hprocess) _memorywrite($3,$hprocess,50) $start = _MemoryRead($3 + $exp , $hprocess) MsgBox(0,"",$start)
#include "tt6.au3" Const $base = 0xa00768 Const $off1 = 0x18 Const $off2 = 0x2c Const $exp = 0x6dc $1 = _MemoryRead($base, $hprocess) $2 = _MemoryRead($1 + $off1, $hprocess) $3 = _MemoryRead($2 + $off2, $hprocess) $4 = _MemoryRead($3 + $exp, $hprocess, 'int') MsgBox(0x40, "EXP1", $4) ;-Hier bekomme ich "128113829" raus $Write = _MemoryWrite($4, $hprocess, "10000") $READ = _MemoryRead($4, $hprocess) ;-Hier bekomme ich "10000" raus MsgBox(0x40, "EXP2", $4)
Quote:
Heute, 03:48
Well it was working, but then the adresses changed I think and I'm having difficulties finding the new ones tho. Doesnt work anymore dammit :o