Memory Bot Rom in Autoit Problem

01/23/2009 12:06 emtec22#1
Hi,

ich arbeite gerade an einem neuen Bot.
Leider bekomme ich keine richtige Ausgabe wenn ich das Offset addiere, oder ich mache etwas falsch.
$hp ist der aktuelle Wert in der Umgebung ohne Pointer
Wenn ich diesen auslese kommt mein richtiges Leben auch raus.

$pointer ist der pointer und $offset dazu war 31C habe ich mal zu 0x gemacht damit Autoit nicht meckert.

wenn ich $pointer + $offset mache dann gibts in der Msgbox eine 0.
$pointer+ 796(von hex in dez) auch ne 0.

Hat jemand eine Idee wie ich Pointer mit Offsets einbaue das dsa klappt ?

PHP Code:
#include<nomadmemory.au3>


Global $Currenthp$CurrentmaxHP $hp $hprocess $lol ,$maxHP $PID $pointer $offset$base $Hp1

$hp
0x315D3F1C
$maxHP
0x315D3F24

$pointer
=0x0117D768
$offset
=0x31C

$PID 
ProcessExists("Client.exe")
$hprocess _MemoryOpen($PID)

_Check()

Func _Check ()
    
 
$Currenthp _MemoryRead($hp$hprocess)
 
$CurrentmaxHP _MemoryRead($maxHP$hprocess)

  
$lol=_MemoryRead($hp,$hprocess)
  
MsgBox(0,"",$lol); das klappt

   $lol2
=_MemoryRead($pointer+$offset,$hprocess)
   
MsgBox(0,"",$lol2); klappt nicht

EndFunc 

so habe das was ich schon mal bisher verstadne habe geändert
01/25/2009 09:49 jacky090#2
Quote:
Originally Posted by emtec22 View Post
Code:
_MemoryWrite($gegner,$hpjetzt,$hprocess,$maxHP)
Wenn ich dich richtig verstehe, willst du den Wert HP Wert auslesen. MemoryWrite() klingt aber mehr nach schreiben. Sollte vermutlich MemoryRead() oder ähnlich sein. Kenne mich mit autoit nicht wirklich aus, aber wie es scheint hast du auch noch andere Probleme. Wollte auch einen Bot in Autoit schreiben, habe es aber aufgegeben und ihn in C gemacht.
01/26/2009 09:57 emtec22#3
Vielleicht hilft Atheuz ja da er meinte es gibt nen static pointer oder sowas ??
01/26/2009 15:20 Atheuz#4
Quote:
Originally Posted by emtec22 View Post
Vielleicht hilft Atheuz ja da er meinte es gibt nen static pointer oder sowas ??
Pointer
Adresse: (staticbase + cpawn/playerstruct/charakteroffset)
Offset: offset in der playerstruct.

Quote:
staticcharbase_address = 0x87BB78;
charPtr_offset = 0x568;
charX_offset = 0x2C;
charY_offset = 0x30;
charZ_offset = 0x34;
charDirection_offset = 0x40;
charHP_offset = 0x31C;
charMaxHP_offset = 0x324;
charMP_offset = 0x328;
charMaxMP_offset = 0x32C;
charMP2_offset = 0x330;
charMaxMP2_offset = 0x334;
charLevel_offset = 0x354;
charLevel2_offset = 0x35C;
charName_offset = 0x250;
charSpeed_offset = 0x560;
charTargetPtr_offset = 0x248;
charDirVectorPtr_offset = 0xCC;
inBattle_offset = 0x552;
camUVec1_offset = 0xF4;
camUVec2_offset = 0xFC;
castbar_staticbase = 0x8B16C8;
castbar_offset = 0x24;
Ob das die neusten Adressen sind weiß ich nicht, aber das ganze kann dann in etwa so aussehen:
MemoryRead(handle, (0x87BB78+0x568), 0x31C)

Ums grafisch darzustellen:
[Only registered and activated users can see links. Click Here To Register...]
Staticbase stimmt natürlich nicht.