Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Thu May 23, 2013 1:19 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 94 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next
Author Message
 Post subject:
PostPosted: Sat Apr 17, 2010 12:00 pm 
 
User
User
User avatar

Joined: Mon Sep 22, 2008 3:48 am
{JUMP, DLLOFFSET(D2CLIENT, 0xD252), (DWORD)OnGamePacketSentSTUB, 6}

FUNCPTR(D2NET, SendPacket, VOID FASTCALL, (DWORD Length, DWORD Argument, LPBYTE Packet), -10024)

BOOL FASTCALL OnGamePacketSent(LPBYTE Packet, DWORD Length);

VOID NAKED OnGamePacketSentSTUB()
{
   __asm
   {
      PUSHAD;
      MOV ECX, [ESP + 0x20 + 0xC];
      MOV EDX, [ESP + 0x20 + 0x4];
      CALL OnGamePacketSent;
      TEST EAX, EAX;
      POPAD;
      JNZ OldCode;
      MOV [ESP + 0x4], 0;

OldCode:
      JMP D2NET_SendPacket;
   }
}

_________________
Image


Last edited by ANdy. on Sat Apr 17, 2010 12:44 pm, edited 2 times in total.
Top
 Profile  
 Post subject:
PostPosted: Sat Apr 17, 2010 12:04 pm 
 
User
User
User avatar

Joined: Mon Sep 22, 2008 3:48 am
{CALL, DLLOFFSET(D2MULTI, 0x14A0B), (DWORD)NextGameName, 5},
{CALL, DLLOFFSET(D2MULTI, 0x14D29), (DWORD)NextGameName, 5},
{CALL, DLLOFFSET(D2MULTI, 0x14A46), (DWORD)NextGamePassword, 5},
{CALL, DLLOFFSET(D2MULTI, 0x14D64), (DWORD)NextGamePassword, 5}

BOOL FASTCALL NextGameName(LPCONTROL Box, BOOL (STDCALL * FunCallBack)(LPCONTROL, DWORD, DWORD));

BOOL FASTCALL NextGamePassword(LPCONTROL Box, BOOL (STDCALL * FunCallBack)(LPCONTROL, DWORD, DWORD));

_________________
Image

Top
 Profile  
 Post subject:
PostPosted: Tue Apr 20, 2010 5:00 am 
 
User
User
User avatar

Joined: Sun Jul 08, 2007 4:16 am
I feel like a fool asking this but here it goes...

How can I use this information? Where would I get started?

Please don't bash me for this lol. It's like this is a huge canyon for me and I can't see the bridge to get across. Telling me to take the bridge to the other side doesn't server much purpose if I can't find it. I taught myself AutoIt (I know...) now I've been looking for something else to do.

c++?

Top
 Profile  
 Post subject:
PostPosted: Tue Apr 20, 2010 5:12 am 
 
User
User

Joined: Mon Mar 29, 2010 10:38 pm
Jebus. wrote:
I feel like a fool asking this but here it goes...

How can I use this information? Where would I get started?

Please don't bash me for this lol. It's like this is a huge canyon for me and I can't see the bridge to get across. Telling me to take the bridge to the other side doesn't server much purpose if I can't find it. I taught myself AutoIt (I know...) now I've been looking for something else to do.

c++?

http://www.edgeofnowhere.cc/viewtopic.php?t=452481

Top
 Profile  
 Post subject:
PostPosted: Tue Apr 20, 2010 3:38 pm 
 
User
User
User avatar

Joined: Sun Jul 08, 2007 4:16 am
EoN032910 wrote:
Jebus. wrote:
I feel like a fool asking this but here it goes...

How can I use this information? Where would I get started?

Please don't bash me for this lol. It's like this is a huge canyon for me and I can't see the bridge to get across. Telling me to take the bridge to the other side doesn't server much purpose if I can't find it. I taught myself AutoIt (I know...) now I've been looking for something else to do.

c++?

http://www.edgeofnowhere.cc/viewtopic.php?t=452481


Yes I was reading that before I made the post here. Linking me to lines of code doesn't help much if I don't know what to do with them.

If you were to use them what would you copy/paste them into? I would assume you COULD use just a plain text file but I'm sure you understand that's not what I'm looking for.

For AutoIt I needed to download the AutoIt core and I downloaded the SciTe editor for additional ease in coding. Now to use this stuff what would I need to get?

I do appreciate your response and feel kind of bad spamming up what seems to be a rather epic thread. :)

Edit: I really don't want to be spoon fed here I just need a starting point. Something I can run with. The code examples are amazing but I really don't know what I would need to use them.

Edit: Edit: http://www.edgeofnowhere.cc/viewtopic.php?t=432481

Is this what I'm looking for? If so then it's good news because I already have Microsoft Visual C++ 2008 Express Edition installed on my computer and I've been going through the included tutorial in my spare time.

Top
 Profile  
 Post subject:
PostPosted: Wed Apr 21, 2010 9:02 pm 
 
User
User

Joined: Mon Nov 24, 2008 6:57 pm
ASMPTR(D2CLIENT, LoadAct_1, 0x62AA0) // Updated 1.13c

After banging my head against the table trying to generate some maps }:p , I realized this address was wrong, it's 0x62AA0 not 0x62AAE

Some pointers useful for generating maps:
FUNCPTR(D2CLIENT, InitGameMisc_I, VOID __stdcall, (DWORD Dummy1, DWORD Dummy2, DWORD Dummy3), 0x4454B) //1.13c
FUNCPTR(D2COMMON, InitDataTables, DWORD __stdcall, (DWORD _1, DWORD _2, DWORD _3), -10943) //1.13c
FUNCPTR(D2COMMON, LoadAct, Act* __stdcall, (DWORD ActNumber, DWORD MapId, DWORD Unk, DWORD Unk_2, DWORD Unk_3, DWORD Unk_4, DWORD TownLevelId, DWORD Func_1, DWORD Func_2), 0x3CB30) //1.13c
struct d2client_struct { //1.13c
      DWORD dwInit;
      BYTE _1[0x20D-4];
      DWORD fpInit;
   };

Top
 Profile  
 Post subject:
PostPosted: Thu Apr 22, 2010 2:44 pm 
 
Moderator
Moderator
User avatar

Joined: Mon Jun 18, 2007 4:02 pm
Location: /dev/kmem
l0kis wrote:
ASMPTR(D2CLIENT, LoadAct_1, 0x62AA0) // Updated 1.13c

After banging my head against the table trying to generate some maps }:p , I realized this address was wrong, it's 0x62AA0 not 0x62AAE

Some pointers useful for generating maps:
FUNCPTR(D2CLIENT, InitGameMisc_I, VOID __stdcall, (DWORD Dummy1, DWORD Dummy2, DWORD Dummy3), 0x4454B) //1.13c
FUNCPTR(D2COMMON, InitDataTables, DWORD __stdcall, (DWORD _1, DWORD _2, DWORD _3), -10943) //1.13c
FUNCPTR(D2COMMON, LoadAct, Act* __stdcall, (DWORD ActNumber, DWORD MapId, DWORD Unk, DWORD Unk_2, DWORD Unk_3, DWORD Unk_4, DWORD TownLevelId, DWORD Func_1, DWORD Func_2), 0x3CB30) //1.13c
struct d2client_struct { //1.13c
      DWORD dwInit;
      BYTE _1[0x20D-4];
      DWORD fpInit;
   };


D2COMMON_LoadAct: DWORD Unk_3 == difficulty
Func_1 being pfLoadAct_1, but you probably know this.
D2COMMON+0x3CB30 == ordinal 10951 fwiw.
D2COMMON_10316(0, dwMapSeed, _TownLevelNo, v12, v13, difficulty, _pfun1, _pfun2); would have to be LoadActMisc

_________________
Image

Top
 Profile  
 Post subject:
PostPosted: Sat May 01, 2010 8:33 am 
 
Moderator
Moderator
User avatar

Joined: Mon Jun 18, 2007 4:02 pm
Location: /dev/kmem
FUNCPTR(D2COMMON, GetUnitDistance, int __stdcall, (UnitAny* pUnit1, UnitAny* pUnit2), -10522) // Not sure how reliable this is seem to work all unit type but can be a bit fuzzy in the results(off by a few steps[compounded off by one errors?])


UnitAny* D2COMMON_GetUnitInBeltSlot(Inventory* pInventory, DWORD BeltSlot); // -10455
that could be useful to others, Unknown can you see any caveats of this?

EDIT[0] - Added another random pointer.

_________________
Image

Top
 Profile  
 Post subject:
PostPosted: Thu May 20, 2010 5:13 am 
 
User
User

Joined: Tue Sep 29, 2009 7:29 am
can anyone please post the ptr for GetUnitState2 and GetUnitState3 from D2COMMON?

I need it for exp stats lol

also is pUnitTable the same as 1.12?

Top
 Profile  
 Post subject:
PostPosted: Thu May 20, 2010 5:55 am 
 
User
User

Joined: Sun Mar 12, 2006 1:47 am
neo3 wrote:
can anyone please post the ptr for GetUnitState2 and GetUnitState3 from D2COMMON?

I need it for exp stats lol

also is pUnitTable the same as 1.12?


I've never used the other ones you mentioned, but I have this if it is what you were looking for.

VARIABLE(D2CLIENT, pUnitList, LPUNITANY, 0x10A608) // 6FBBA608

Top
 Profile  
 Post subject:
PostPosted: Mon May 31, 2010 4:44 pm 
 
User
User
User avatar

Joined: Tue Aug 29, 2006 4:02 am
Location: Ollydbg
Quick question; I had been using...
FUNCPTR(D2WIN, GetHwnd, HWND __stdcall, (), 0x1A80D0) //1.12


So the 1.13c updated...
FUNCPTR(D2GFX, GetHwnd, HWND __stdcall, (), -10048) // Updated 1.13c


confused me a little. Are these in fact equivalents? Or is there a seperate D2WIN GetHwnd that has not been found/posted as of yet?

_________________
PreludeOfDeath wrote:
Seven sixteenths of one inch... That's the distance you'd have to move your pinky in order to not sound like an idiot.

Image

Top
 Profile  
 Post subject:
PostPosted: Mon May 31, 2010 5:50 pm 
 
User
User

Joined: Wed Mar 24, 2010 11:19 am
They both give you the HWND of Diablo 2.

Top
 Profile  
 Post subject:
PostPosted: Mon May 31, 2010 6:59 pm 
 
Section Leader
Section Leader

Joined: Fri Jul 05, 2002 8:51 pm
Location: /sbin/
They're both identical.

_________________
D2BS
Programming motherfuckers... DO YOU SPEAK IT?!
I, for one, welcome our new black overlo... I mean, president!
  1. Create signature generator.
  2. ???
  3. Profit!

Top
 Profile  
 Post subject:
PostPosted: Tue Jun 01, 2010 1:31 pm 
 
User
User
User avatar

Joined: Thu Apr 09, 2009 4:31 pm
77920 wrote:
FUNCPTR(D2WIN, CreateEditBox, Control* __fastcall, (DWORD style, int ypos, int xpos, DWORD arg4, DWORD arg5, DWORD arg6, DWORD arg7, DWORD arg8, DWORD arg9, DWORD size, void* buf), 0x9C00)

its wrong. 0x9C00 = -10204 ordinal and it creates TextBox, also the args are incorrect.

FUNCPTR(D2WIN, CreateEditBox, Control* __fastcall,   (DWORD xPos, DWORD yPos, DWORD SizeX, DWORD SizeY, DWORD LeftOffset, DWORD TopOffset, CellFile *ptCellFile, BOOL (__stdcall *OnAccept)(Control*), BOOL (__stdcall *OnClick)(Control *), DWORD isCloaked, cStylePrefs * ptPrefs),-10057)

Top
 Profile  
 Post subject:
PostPosted: Thu Jun 17, 2010 5:47 pm 
 
User
User
User avatar

Joined: Sun Oct 11, 2009 10:19 pm
Location: Poland
I tried with AutoIT and works fine but...

$Acc = 0x6FA2AF28

$HP = 0x6FBCA795


   $MHP = _MemoryRead($HP, $Handle, 'ushort')
   $MACC = _MemoryRead($Acc, $Handle, 'char[16]')


It is cool but i still dont understand why:
1. I must write ushort for HP
2. char for Account Name
3. dword for money

its hard for me to :o

And where i can get static pointer of current Gold? i am using cheat engine for it, but i cant find "green" pointer

_________________
Image

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 94 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6, 7  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron