Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 21:07

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

Advertisement



Detecting object ID's (NPC, items, etc.)

Discussion on Detecting object ID's (NPC, items, etc.) within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
FxwFran's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 42
Received Thanks: 4
Detecting object ID's (NPC, items, etc.)

Hello, I've been reading a little about ASM and AutoIt, but there's something I want to know and I can't find it anywhere (Maybe because I don't even know which words to use in order to google it).

Basically I want to code a mmo bot that can make your character move to a specific location, talk to the npc's and buy/sell things to them.

I can make a bot that changes memory addresses and perform certain tasks (Attack, rest) until an address changes, but I just don't know how to even start with things like selling items or talking to npc's.

What kind of language/program/something should I start learning in order to achieve it?
FxwFran is offline  
Old 04/16/2015, 22:48   #2
 
elite*gold: 0
Join Date: Dec 2014
Posts: 442
Received Thanks: 211
Okay first of all AutoIT is a scripting language and despite the Memory / Inline Assembly 3rd-party classes that work fine with AutoIT, it's still not suitable!

I highly recommend you to learn the basics of Assembly language (Intel x86, maybe also Reverse Engineering) and search the coordinates using Cheat Engine -> Find a Pointer (There are a lot of tutorials try Google). After you've successfully managed to obtain the Pointer to the X,Y,Z coordinates and able to change them, head over to C++ (Visual Studio, Code Blocks, Qt... for the program).

Write a function pointer in order to change the X,Y,Z coords like that:

Code:
void set_position(std::float_t x_pos, std::float_t y_pos)
{
    *(std::float_t*)(*(DWORD*)(*(DWORD*)this->m_classptr + 0xC) + 0x638) = x_pos;
    *(std::float_t*)(*(DWORD*)(*(DWORD*)this->m_classptr + 0xC) + 0x63C) = -y_pos;
}

Or simply use WriteProcessMemory, memcpy... Of course you could also use Inline Assembly to change the coordinates of the instance :)
_asm is offline  
Thanks
1 User
Old 04/17/2015, 02:00   #3
 
FxwFran's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 42
Received Thanks: 4
Edit: I found the X/Y coords and made the character step in the same exact position the npc is standing on, how can I make the character talk with the npc or choose a specific option from the npc?
Are there addresses for open dialogues as well?
FxwFran is offline  
Old 04/17/2015, 08:45   #4
 
elite*gold: 0
Join Date: Dec 2014
Posts: 442
Received Thanks: 211
Attach your game with a Debugger such as OllyDbg and try to reverse the function by searching for referenced strings or intermodular calls and reverse the Send function until you find the "TalkWithNPC" function.
Like I told you, reverse engineering is important for finding the functions you need.
_asm is offline  
Thanks
1 User
Old 04/17/2015, 09:21   #5
 
FxwFran's Avatar
 
elite*gold: 0
Join Date: Mar 2014
Posts: 42
Received Thanks: 4
Thanks a lot! I'll give it a try! If I need something else I'll tell you
FxwFran is offline  
Reply


Similar Threads Similar Threads
Detecting Cheaters
05/25/2012 - Shaiya - 0 Replies
I did not know where to post this thread but It seems that cheats are wide spead among the shaiya community and it is really hurting servers. Is there any threads out there started to detect cheaters. A good start would be to find people using pot hacks in pvp. I know this thread might seem useless to most but for fair players small hacks such as this is very annoying.
Detecting Gm
09/10/2011 - Dekaron - 8 Replies
is there anyway to detect the gm before he detect us and then bann us if there is a way please help all of us so we dont get banned and also we are here to help each other and thanks for u respond D:handsdown::handsdown::handsdown:
Hackshield Detecting
02/05/2011 - Metin2 - 1 Replies
Yow nur ne kurze Frage wenn man nen Hack zB benutzt und der detected wird, wird man dann reported oder so? Also gebannt? Gibts hier schon öfter diese Frage aber ne klare Antwort kenn ich noch nicht.. Die einen sagen ja die anderen nein.
BOT detecting???
06/15/2009 - Silkroad Online - 7 Replies
today in the morning i watching my working bot, in this moment in the guide info screen appears a never seen message "you are now connected to GM (and his name)" i stoped bot and sit down in save zone for 1 hour, i hope the GM stoped watching me and dont banned me..
Detecting +1's without having to pick them up.
02/06/2009 - CO2 Exploits, Hacks & Tools - 52 Replies
Alright. Well, title basically says it. I also have a question at the end :) Okay, well, it's simple really. Mentor yourself on another char, then open the claim menu, after ever 1 - 2 scatters or so, look at the +1 stone claim menu, when it goes up by .01, pick up all the items around you. Done. :) Anyways, wouldn't that mean it's not determined on the PICK UP, it's already a +1 when it's on the ground? Explain :)



All times are GMT +2. The time now is 21:07.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.