Code:
; 1.0.3.100485
func offsetlist()
;//OBJECT MANAGER
global $ofs_ObjectManager = 0x15A0BEC
global $ofs__ObjmanagerActorOffsetA = 0x8b0
global $ofs__ObjmanagerActorCount = 0x108
global $ofs__ObjmanagerActorOffsetB = 0x148
global $ofs__ObjmanagerActorLinkToCTM = 0x380
global $_ObjmanagerStrucSize = 0x428
d ca
global $_itrObjectManagerA = _MemoryRead($ofs_ObjectManager, $d3, 'ptr')
global $_itrObjectManagerB = _MemoryRead($_itrObjectManagerA+$ofs__ObjmanagerActorOffsetA, $d3, 'ptr')
global $_itrObjectManagerCount = $_itrObjectManagerB+$ofs__ObjmanagerActorCount
global $_itrObjectManagerC = _MemoryRead($_itrObjectManagerB+$ofs__ObjmanagerActorOffsetB, $d3, 'ptr')
global $_itrObjectManagerD = _MemoryRead($_itrObjectManagerC, $d3, 'ptr')
global $_itrObjectManagerE = _MemoryRead($_itrObjectManagerD, $d3, 'ptr')
global $ofs_InteractBase = 0x015A1BD4 ;0x15A0BD4
global $ofs__InteractOffsetA = 0xA8
global $ofs__InteractOffsetB = 0x58
global $ofs__InteractOffsetUNK1 = 0x7F20 ;Set to 777c
global $ofs__InteractOffsetUNK2 = 0x7F44 ;Set to 1 for NPC interaction
global $ofs__InteractOffsetUNK3 = 0x7F7C ;Set to 7546 for NPC interaction, 7545 for loot interaction
global $ofs__InteractOffsetUNK4 = 0x7F80 ;Set to 7546 for NPC interaction, 7545 for loot interaction
global $ofs__InteractOffsetMousestate = 0x7F84 ;Mouse state 1 = clicked, 2 = mouse down
global $ofs__InteractOffsetGUID = 0x7F88 ;Set to the GUID of the actor you want to interact with
global $_itrInteractA = _MemoryRead($ofs_InteractBase, $d3, 'ptr')
global $_itrInteractB = _MemoryRead($_itrInteractA, $d3, 'ptr')
global $_itrInteractC = _MemoryRead($_itrInteractB, $d3, 'ptr')
global $_itrInteractD = _MemoryRead($_itrInteractC+$ofs__InteractOffsetA, $d3, 'ptr')
global $_itrInteractE = $_itrInteractD+$ofs__InteractOffsetB
$FixSpeed = 0x20 ;69736
$ToggleMove = 0x34
$MoveToXoffset = 0x40
$MoveToYoffset = 0x44
$MoveToZoffset = 0x48
$CurrentX = 0xA8
$CurrentY = 0xAc
$CurrentZ = 0xb0
$RotationOffset = 0x174
; récupération info personnage (permet de controler si le personnage est en partie )
Global $_Myoffset = -1
$_CurOffset = $_itrObjectManagerD
$_Count = _MemoryRead($_itrObjectManagerCount, $d3, 'int')
for $i = 0 to $_Count step +1
if _MemoryRead($_CurOffset+0x4, $d3, 'ptr') = 0x77BC0000 Then
$_Myoffset = $_CurOffset
ExitLoop
EndIf
$_CurOffset = $_CurOffset + $_ObjmanagerStrucSize
Next
If $_Myoffset == -1 Then return false
global $ClickToMoveMain = _MemoryRead($_Myoffset + $ofs__ObjmanagerActorLinkToCTM, $d3, 'ptr')
global $ClickToMoveRotation = $ClickToMoveMain + $RotationOffset
global $ClickToMoveCurX = $ClickToMoveMain + $CurrentX
global $ClickToMoveCurY = $ClickToMoveMain + $CurrentY
global $ClickToMoveCurZ = $ClickToMoveMain + $CurrentZ
global $ClickToMoveToX = $ClickToMoveMain + $MoveToXoffset
global $ClickToMoveToY = $ClickToMoveMain + $MoveToYoffset
global $ClickToMoveToZ = $ClickToMoveMain + $MoveToZoffset
global $ClickToMoveToggle = $ClickToMoveMain + $ToggleMove
global $ClickToMoveFix= $ClickToMoveMain + $FixSpeed
;//CameraDef
Global $VIewStatic = 0x015A0BEC
Global $DebugFlags = $VIewStatic + 0x20
Global $vftableSubA = _MemoryRead($VIewStatic, $d3, 'ptr')
Global $vftableSubA = _MemoryRead($vftableSubA + 0x928, $d3, 'ptr')
Global $ViewOffset = $vftableSubA
Global $Ofs_CameraRotationA = $ViewOffset + 0x4
Global $Ofs_CameraRotationB = $ViewOffset + 0x8
Global $Ofs_CameraRotationC = $ViewOffset + 0xC
Global $Ofs_CameraRotationD = $ViewOffset + 0x10
Global $Ofs_CameraPosX = $ViewOffset + 0x14
Global $Ofs_CameraPosY = $ViewOffset + 0x18
Global $Ofs_CameraPosZ = $ViewOffset + 0x1C
Global $Ofs_CameraFOV = $ViewOffset + 0x30
Global $Ofs_CameraFOVB = $ViewOffset + 0x30
return true
EndFunc
Func OffsetListInParty()
;//FILE DEFS
global $ofs_MonsterDef = 0x015DBE00 ;0x015DCE00
global $ofs_StringListDef = 0x015E8808 ;0x015E9808
global $ofs_ActorDef = 0x015Ec108 ;0x015ED108
global $_defptr = 0x3c
global $_defcount = 0x10C
global $_deflink = 0x148
global $_ofs_FileMonster_StrucSize = 0x50
global $_ofs_FileActor_LinkToMonster = 0x6C
global $_ofs_FileMonster_MonsterType = 0x18
global $_ofs_FileMonster_MonsterRace = 0x1C
global $_ofs_FileMonster_LevelNormal = 0x44
global $_ofs_FileMonster_LevelNightmare = 0x48
global $_ofs_FileMonster_LevelHell = 0x4c
global $_ofs_FileMonster_LevelInferno = 0x50
;//GET ACTORATRIB
global $ofs_ActorAtrib_Base = 0x015A2EA4 ;0x015A1EA4
global $ofs_ActorAtrib_ofs1 = 0x390
global $ofs_ActorAtrib_ofs2 = 0x2E8
global $ofs_ActorAtrib_ofs3 = 0x148
global $ofs_ActorAtrib_Count = 0x108 ;0x0 0x0
global $ofs_ActorAtrib_Indexing_ofs1 = 0x10
global $ofs_ActorAtrib_Indexing_ofs2 = 0x8
global $ofs_ActorAtrib_Indexing_ofs3 = 0x250
global $ofs_ActorAtrib_StrucSize = 0x180
global $ofs_LocalPlayer_HPBARB = 0x34
global $ofs_LocalPlayer_HPWIZ = 0x38
;//GET LOCAL ACTOR STRUC
global $ofs_LocalActor_ofs1 = 0x378 ;instead of $ofs_ActorAtrib_ofs2
global $ofs_LocalActor_ofs2 = 0x148
global $ofs_LocalActor_Count = 0x108
global $ofs_LocalActor_atribGUID = 0x120
global $ofs_LocalActor_StrucSize = 0x2D0 ;0x0 0x0
global $_ActorAtrib_Base = _MemoryRead($ofs_ActorAtrib_Base, $d3, 'ptr')
global $_ActorAtrib_1 = _MemoryRead($_ActorAtrib_Base+$ofs_ActorAtrib_ofs1, $d3, 'ptr')
global $_ActorAtrib_2 = _MemoryRead($_ActorAtrib_1+$ofs_ActorAtrib_ofs2, $d3, 'ptr')
global $_ActorAtrib_3 = _MemoryRead($_ActorAtrib_2+$ofs_ActorAtrib_ofs3, $d3, 'ptr')
global $_ActorAtrib_4 = _MemoryRead($_ActorAtrib_3, $d3, 'ptr')
global $_ActorAtrib_Count = $_ActorAtrib_2+$ofs_ActorAtrib_Count
global $_LocalActor_1 = _MemoryRead($_ActorAtrib_1+$ofs_LocalActor_ofs1, $d3, 'ptr')
global $_LocalActor_2 = _MemoryRead($_LocalActor_1+$ofs_LocalActor_ofs2, $d3, 'ptr')
global $_LocalActor_3 = _MemoryRead($_LocalActor_2, $d3, 'ptr')
global $_LocalActor_Count = $_LocalActor_1+$ofs_LocalActor_Count
global $Object_File_StringList = IndexSNO($ofs_StringListDef,0) ;//THIS LIST IS HUGE, NO NEED TO DO IT MORE OFTEN THAN ONCE =)
$index = _ArraySearch($Object_File_StringList, hex($_MonsterNameStringListID), 0 , 0 , 0 , 1 , 1 , 1)
global $StringListDB = IndexStringList($Object_File_StringList[$index][0]) ;$StringListDB is debricated in this code
$index = _ArraySearch($Object_File_StringList,hex($_GizmoNameStringListID), 0 , 0 , 0 , 1 , 1 , 1)
IndexStringList($Object_File_StringList[$index][0])
EndFunc
So is what I'm having trouble in my variables or is it the only solution?