Register for your free account! | Forgot your password?

Go Back   elitepvpers > General Gaming > General Gaming Discussion
You last visited: Today at 16:16

  • Please register to post and access all features, it's quick, easy and FREE!

 

Resource Offsets for wood/herbs coordinates

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2006
Posts: 169
Received Thanks: 58
Resource Offsets for wood/herbs coordinates

hey just want to know how to get the offsets of coords of the resources like wood/ore and herbs. or does anyone know them? Trying to make a new Gatherer bot.



Pain1234 is offline  
Old   #2
 
elite*gold: 0
Join Date: Nov 2008
Posts: 161
Received Thanks: 38
Code:
GetCoordinates proc near

arg_0= dword ptr  4

mov     eax, [esp+arg_0]
fld     dword ptr [ecx+2Ch]
fstp    dword ptr [eax]
fld     dword ptr [ecx+30h]
fstp    dword ptr [eax+4]
fld     dword ptr [ecx+34h]
fstp    dword ptr [eax+8]
retn    4
GetCoordinates endp


flo8464 is offline  
Old   #3
 
elite*gold: 0
Join Date: Aug 2006
Posts: 169
Received Thanks: 58
hm soweit sogut, aber was bedeuted ecx+2Ch?
und kannste mir die funktion von fld + fstp bzw retn erklären?
kennste die pffsets normaler weise nur mit baseadress + offset = variable
und was steht in der variable esp? esp +4 = eax?
Sorry bin neu in dem ptr gebiet.
Pain1234 is offline  
Old   #4
 
elite*gold: 0
Join Date: Nov 2008
Posts: 161
Received Thanks: 38
Na gut, hatte gehofft dass dir das so etwas nützt. Also...

Ich gehe mal davon aus, das du grundlegend C++ verstehst.
GetCoordinates (so nenne ich es) ist eine Memberfunktion der Klasse, welche ein Spielobjekt in RoM darstellt.

Diese Funktion nimmt zusätzlich noch einen Zeiger auf eine Struktur entgegen, in die die Koordinaten gespeichert werden, aber relativ uninteressant für uns.

ecx ist in diesem Zusammenhang logischerweise das momentane Objekt, C++ schaufelt bei Aufrufen von Memberfunktionen immer das momentane Objekt nach ecx.

Die Funktion macht nichts weiter als eine Gleitkommazahl vom Objekt zu laden

Quote:
fld dword ptr [ecx+2Ch]
und in die Struktur zu speichern

Quote:
fstp dword ptr [eax]
Und das für 3 Zahlen, die x/y/z-Koordinaten.

Aaaaalso:
float x = objectbase + 0x2C;
float y = objectbase + 0x30;
float z = objectbase + 0x34;

Es würde sich anbieten, sich mit x86-Assembler, einem Disassambler sowie Grundlagen von C/C++ vertraut zu machen, sollte man einen Bot schreiben wollen


flo8464 is offline  
Old   #5
 
elite*gold: 0
Join Date: Jul 2005
Posts: 16
Received Thanks: 40
How do you find the beginning of the object list? I know how to find particular object base pointers, but I do not know how to figure out where the list actually starts.
Zonte is offline  
Old   #6
 
elite*gold: 0
Join Date: Nov 2008
Posts: 161
Received Thanks: 38
Quote:
Originally Posted by Zonte View Post
How do you find the beginning of the object list? I know how to find particular object base pointers, but I do not know how to figure out where the list actually starts.
I never found it out, instead of that I just hooked a function which gets called for every object every frame and saved the objects in my own list.

I am not up-to-date with RoM as I quitted writing stuff for this game, but I got an old pattern to find that function after an update:

Code:
<Pattern desc="itFunc" pattern="\x83\xEC\x14\x56\x8B\xF1\x8B\x06\x8B\x50\x24\xFF\xD2\x85\xC0\x75\x06\x89\x86\xA4\x00\x00\x00\x8B\x8E\xA4\x00\x00\x00" mask="xxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
Of course you have to be in-process to do that.
flo8464 is offline  
Old   #7
 
elite*gold: 0
Join Date: Aug 2006
Posts: 169
Received Thanks: 58
hm flo... i have knowledge of c# just not knowing anythin about Disassambler
the things that i know for example:

i read out baseadress of the dll and fund out the offset for the HealthPoints via Cheat Engine:
Client.exe+55CBF0

for me it would be the adress:

Baseadress + Offset in dezimal
4194304 + 5622768 = 9817072 = hex(95CBF0);

would i would get the healpoints at this adress. So to get the coords of the ore/woods etc i would need to read out the pointer values?


Pain1234 is offline  
Reply



« Previous Thread | Next Thread »

Similar Threads
Mines / Herbs
hi epvpers, ich suche etwas, was mir Erze & Kräuter direkt auf der Map anzeigt! Also ähnlich wie Gatherer, nur ohne das ich die Erze & Kräuter...
10 Replies - WoW Main - Discussions / Questions
DUn sa wood and stone
pag ikaw ba pinaka maraming na donate my reward??
4 Replies - Grand Chase Philippines
Wood Cutting Bot
hi , i bot on runescape and yes i know u get banned but i dont have a wood cutting auto bot so can anyone give me one i dont care if it doesnt go to...
22 Replies - Runescape



All times are GMT +1. The time now is 16:16.


Powered by vBulletin®
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Abuse
Copyright ©2018 elitepvpers All Rights Reserved.