Danke xD
Jaja ich find das mit dem Rechnen sowieso bekloppt.
Ich wusste ja nicht was die Addresse zurückgibt :)
Jaja ich find das mit dem Rechnen sowieso bekloppt.
Ich wusste ja nicht was die Addresse zurückgibt :)
#include "tt6.au3" ;-Base Pointer Health Const $PTR_HEALTH = 0xd28c08 ;-Base Pointer Health Offset Const $PTR_GLOBAL_OFFSET = 0x104 ;-Base Pointer Health Offset -> Current HP Offset Const $PTR_HEALTH_CUR_HP = 0x28 ;-Base Pointer Health Offset -> Max HP Offset Const $PTR_HEALTH_MAX_HP = 0x2c ;-Base Pointer Health Offset -> Current Energy Offset Const $PTR_HEALTH_CUR_E = 0x14 ;-Base Pointer Health Offset -> Max E Offset Const $PTR_HEALTH_MAX_E = 0x18 ;-Base Pointer Health Offset -> Hero1 Const $PTR_HEALTH_HERO1 = 0xc ;-Base Pointer Health Offset -> Hero2 Const $PTR_HEALTH_HERO2 = 0x40 ;-Base Pointer Health Offset -> Hero3 Const $PTR_HEALTH_HERO3 = 0x74 ;-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') ;-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') ;-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')
;-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
;-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
;-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
Func TravelTo($ID) While True _MemoryWrite($TRAVEL_ID, $hprocess, $ID) WEnd EndFunc ;==>TravelTo TravelTo(15)