crossr (12-03-2011),DaRk (11-04-2011),Fly3r (11-01-2011),HLBOT (11-02-2011),Royku (11-01-2011),Vincent Dominguez (02-25-2013),[[SeXergy]] (11-01-2011)
First you need to find the pointer to the weapon array:
Then you need to make a loop through the whole array:Code:0xA65EE8
You need the weapon name. So you need to find the weapon name offset:Code:for(int i = 0; i < 600; i++) { //You can see later how many weapons there are. Then you can lower the loop. }
Look at the content of the string:Code:Weaponpointer + 0x0008;
Get the id of the weapon:Code:char * weaponname = (char*)(Weapon + 0x0008);
Log it to a file:Code:Hex of the id
It looks like this:Code:file << "Item number: " << i << " ID: " << hex << i << " Name: " << (LPCTSTR)weaponname << ".\n";
Btw you need Fstream:Code:DWORD cshell = (DWORD)GetModuleHandleA( "CShell.dll" ); DWORD weapon = *(DWORD*)( cshell + 0xA65EE8); std::ofstream file; file.open("Logger.txt"); for(int i = 0; i < 600; i++) { //You can see later how many weapons there are. Then you can lower the loop. DWORD wapens = *(DWORD*)(weapon +(4*i)); char * weaponname = (char*)(wapens + 0x0008); file << "Item number: " << i << " ID: " << hex << i << " Name: " << (LPCTSTR)weaponname << ".\n"; } file.close();
This is just the way how to. Its very easyCode:#include <fstream>.
Did't test it.. So it is posable that I made some mistakes![]()
Last edited by Brimir; 11-01-2011 at 10:35 AM.
Thanks @~FALLEN~ for helping me
Thanks @Shakai for helping me
Other nice ppl:
@258456
@giniyat101
My usefull posts:
Byte scanner
How to make a logger
Hook example
How to make a memhack base
How to use classes with memhacking
Addie finder
crossr (12-03-2011),DaRk (11-04-2011),Fly3r (11-01-2011),HLBOT (11-02-2011),Royku (11-01-2011),Vincent Dominguez (02-25-2013),[[SeXergy]] (11-01-2011)
@Brimir
Error: hex
Undefine it !
How to ?
It's finally Over!
Thanks @~FALLEN~ for helping me
Thanks @Shakai for helping me
Other nice ppl:
@258456
@giniyat101
My usefull posts:
Byte scanner
How to make a logger
Hook example
How to make a memhack base
How to use classes with memhacking
Addie finder
HLBOT (11-02-2011)
@Brimir
Solved and Thank you for newest with me.
It's finally Over!
I use fstream for mine too, but it searches for the weapon pointer itself.
@Brimir
You should become a VIP coder for Crossfire! You help a lot on this section.
Thanks, the only problem is that I don't have mutch time. And I don't know enought to make advanced hacks. Mem hacks ar very easy. But there is a lot more.
Thanks @~FALLEN~ for helping me
Thanks @Shakai for helping me
Other nice ppl:
@258456
@giniyat101
My usefull posts:
Byte scanner
How to make a logger
Hook example
How to make a memhack base
How to use classes with memhacking
Addie finder
@Brimir
May I can teach you that...Anything if I can do..
It's finally Over!
Thanks @~FALLEN~ for helping me
Thanks @Shakai for helping me
Other nice ppl:
@258456
@giniyat101
My usefull posts:
Byte scanner
How to make a logger
Hook example
How to make a memhack base
How to use classes with memhacking
Addie finder
GjI also made a address logger. So easy
![]()
Thanks @~FALLEN~ for helping me
Thanks @Shakai for helping me
Other nice ppl:
@258456
@giniyat101
My usefull posts:
Byte scanner
How to make a logger
Hook example
How to make a memhack base
How to use classes with memhacking
Addie finder