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 7:31 pm


All times are UTC [ DST ]





Post new topic Reply to topic  [ 94 posts ]  Go to page 1, 2, 3, 4, 5 ... 7  Next
Author Message
 Post subject: 1.13c Diablo II Information: Function Pointers & Structs
PostPosted: Wed Mar 24, 2010 8:42 am 
 
User Gold
User Gold

Joined: Mon Dec 14, 2009 1:40 pm
//BNCLIENT
FUNCPTR(BNCLIENT, SendBNMessage,void __fastcall,(LPSTR lpMessage),0xC400) //Updated 1.13c


//D2CLIENT
FUNCPTR(D2CLIENT, GetMonsterTxt, MonsterTxt * __fastcall, (DWORD monno), 0x1230) // Updated 1.13c
FUNCPTR(D2CLIENT, PrintGameString, void __stdcall, (wchar_t *wMessage, int nColor), 0x7D850) // Updated 1.13c
FUNCPTR(D2CLIENT, PrintPartyString, void __stdcall, (wchar_t *wMessage, int nColor), 0x7D610) // Updated 1.13c
FUNCPTR(D2CLIENT, GetPlayerXOffset, int __stdcall, (), 0x3F6C0) // Updated 1.13c
FUNCPTR(D2CLIENT, GetPlayerYOffset, int __stdcall, (), 0x3F6D0) // Updated 1.13c
FUNCPTR(D2CLIENT, SetSelectedUnit_I, void __fastcall, (UnitAny *pUnit), 0x51860) // Updated 1.13c
FUNCPTR(D2CLIENT, GetSelectedUnit, UnitAny * __stdcall, (), 0x51A80) // Updated 1.13c
FUNCPTR(D2CLIENT, GetDifficulty, BYTE __stdcall, (), 0x41930) // Updated 1.13c
FUNCPTR(D2CLIENT, GetUnknownFlag, DWORD __fastcall, (), 0x37A60) // Updated 1.13c
FUNCPTR(D2CLIENT, GetGameInfo, GameStructInfo *__stdcall, (), 0x108B0) // Updated 1.13c
FUNCPTR(D2CLIENT, GetAutomapSize, DWORD __stdcall, (), 0x5F080) // Updated 1.13c
FUNCPTR(D2CLIENT, NewAutomapCell, AutomapCell * __fastcall, (), 0x5F6B0) // Updated 1.13c
FUNCPTR(D2CLIENT, AddAutomapCell, void __fastcall, (AutomapCell *aCell, AutomapCell **node), 0x61320) // Updated 1.13c
FUNCPTR(D2CLIENT, RevealAutomapRoom, void __stdcall, (Room1 *pRoom1, DWORD dwClipFlag, AutomapLayer *aLayer), 0x62580) // Updated 1.13c
FUNCPTR(D2CLIENT, InitAutomapLayer_I, AutomapLayer* __fastcall, (DWORD nLayerNo), 0x62710) // Updated 1.13c
FUNCPTR(D2CLIENT, GetMonsterOwner, DWORD __fastcall, (DWORD nMonsterId), 0x216A0) // Updated 1.13c
FUNCPTR(D2CLIENT, GetUiVar_I, DWORD __fastcall, (DWORD dwVarNo), 0xBE400) // Updated 1.13c
FUNCPTR(D2CLIENT, SetUIState, DWORD __fastcall, (DWORD varno, DWORD howset, DWORD unknown1), 0xC2794) // Updated 1.13c
FUNCPTR(D2CLIENT, GetItemNameString, void __stdcall, (UnitAny *pItem, wchar_t *wItemName, int nLen), 0x914F0) // Updated 1.13c
FUNCPTR(D2CLIENT, CalculateShake, void __stdcall, (DWORD *dwPosX, DWORD *dwPosY), 0x8AFD0) // Updated 1.13c
FUNCPTR(D2CLIENT, GetPlayerUnit, UnitAny*  __stdcall,(),0xA4D60) // Updated 1.13c
FUNCPTR(D2CLIENT, DrawRectFrame, VOID __fastcall, (DWORD Rect), 0xBE4C0) // Updated 1.13c
FUNCPTR(D2CLIENT, ExitGame, VOID __fastcall, (VOID), 0x42850) // Updated 1.13c
FUNCPTR(D2CLIENT, Attack, VOID __stdcall, (AttackStruct* Attack, BOOL AttackingUnit), 0x1A060) // Updated 1.13c
FUNCPTR(D2CLIENT, GetItemName, BOOL __stdcall, (UnitAny* pItem, wchar_t* wBuffer, DWORD dwSize), 0x914F0) // Updated 1.13c
FUNCPTR(D2CLIENT, DrawPartyName ,void __stdcall, (LPSTR pR,DWORD yPos,DWORD Col,DWORD UNK), 0x75780)//Updated 1.13c
FUNCPTR(D2CLIENT, GetMouseXOffset, DWORD __fastcall, (VOID), 0x3F6C0) // Updated 1.13c
FUNCPTR(D2CLIENT, GetMouseYOffset, DWORD __fastcall, (VOID), 0x3F6D0) // Updated 1.13c
FUNCPTR(D2CLIENT, GameShowAttack, DWORD __stdcall, (UnitAny* pUnit, DWORD wSkillId, DWORD dwSkillLevel, bool bUnk), 0xA2C90) //Updated 1.13c
FUNCPTR(D2CLIENT, xGetNextPartyPlayer, PartyPlayer * __fastcall, (PartyPlayer *pla), 0x9D2B0) //Updated 1.13c
FUNCPTR(D2CLIENT, GetQuestInfo, VOID* __stdcall, (VOID), 0x45A00) // Updated 1.13c
FUNCPTR(D2CLIENT, UnitTestSelect, DWORD __stdcall, (UnitAny* pUnit, DWORD _1, DWORD _2, DWORD _3), 0xA68E0) // Updated 1.13c
FUNCPTR(D2CLIENT, FindServerSideUnit, UnitAny* __fastcall, (DWORD dwId, DWORD dwType), 0xA5B40) // Updated 1.13c
FUNCPTR(D2CLIENT, FindClientSideUnit, UnitAny* __fastcall, (DWORD dwId, DWORD dwType), 0xA5B20) // Updated 1.13c
FUNCPTR(D2CLIENT, SetUIVar, DWORD __fastcall, (DWORD varno, DWORD howset, DWORD unknown1), 0xC2790) // Updated 1.13c
FUNCPTR(D2CLIENT, clickMap, VOID __stdcall, (DWORD MouseFlag, DWORD x, DWORD y, DWORD Type), 0x1BF20) // Updated 1.13c
FUNCPTR(D2CLIENT, CalcShake, void __stdcall, (DWORD *xpos, DWORD *ypos), 0x8AFD0) //Updated 1.13c
FUNCPTR(D2CLIENT, CheckLootASM,BOOL __fastcall,(DWORD* pUnit), 0x9DD80) //Updated 1.13c
FUNCPTR(D2CLIENT, DrawEnteringLevelText, void __stdcall, (), 0xBF0D0)//Updated 1.13c
FUNCPTR(D2CLIENT, DrawManaOrb, void __stdcall, (), 0x27A90)//Updated 1.13c

VARPTR(D2CLIENT, MouseOffsetY, int, 0x11995C) //Updated 1.13c
VARPTR(D2CLIENT, MouseOffsetZ, int, 0x11C418) //Updated 1.13c
VARPTR(D2CLIENT, MouseOffsetX, int, 0x119960) //Updated 1.13c
VARPTR(D2CLIENT, ExitAppFlag, DWORD, 0xF8C9C) //Updated 1.13c
VARPTR(D2CLIENT, Divisor, int, 0xF16B0) //Updated 1.13c
VARPTR(D2CLIENT, Offset, POINT, 0x11C1F8) //Updated 1.13c
VARPTR(D2CLIENT, xShake, int, 0x11BF00) //Updated 1.13c
VARPTR(D2CLIENT, yShake, int, 0x10B9DC) //Updated 1.13c
VARPTR(D2CLIENT, GameInfo, GameStructInfo *, 0x11B980) //Updated 1.13c
VARPTR(D2CLIENT, nQuestPage, int, 0x123395) //Updated 1.13c
VARPTR(D2CLIENT, Ping, DWORD, 0x119804) //Updated 1.13c
VARPTR(D2CLIENT, Skip, DWORD, 0x119810) //Updated 1.13c
VARPTR(D2CLIENT, FPS, DWORD, 0x11C2AC) //Updated 1.13c
VARPTR(D2CLIENT, PlayerUnit, UnitAny *, 0x11BBFC) // Updated 1.13c
VARPTR(D2CLIENT, PlayerList, RosterUnit *, 0x11BC14) //Updated 1.13c
VARPTR(D2CLIENT, MouseX, DWORD, 0x11B828) //Updated 1.13c
VARPTR(D2CLIENT, MouseY, DWORD, 0x11B824) //Updated 1.13c
VARPTR(D2CLIENT, ScreenSizeX, DWORD, 0xDBC48) //Updated 1.13c
VARPTR(D2CLIENT, ScreenSizeY, DWORD, 0xDBC4C) //Updated 1.13c
VARPTR(D2CLIENT, SelectedUnit, UnitAny*, 0x11C4D8) //Updated 1.13c
VARPTR(D2CLIENT, OverheadTrigger, DWORD, 0x113ACE) //Updated 1.13c
VARPTR(D2CLIENT, GoldDialog, DWORD, 0x11BF1C) //Updated 1.13c
VARPTR(D2CLIENT, AutomapLayer, AutomapLayer*, 0x11C1C4) //Updated 1.13c
VARPTR(D2CLIENT, AutomapOn, DWORD, 0xFADA8) // Updated 1.13c
VARPTR(D2CLIENT, xMapShake, int, 0x11BF00) //Updated 1.13c
VARPTR(D2CLIENT, yMapShake, int, 0x10B9DC) //Updated 1.13c
VARPTR(D2CLIENT, ServerIp, char, 0xF4320) //Updated 1.13c
VARPTR(D2CLIENT, pAct, Act*, 0x11C3B8) //Updated 1.13c

ASMPTR(D2CLIENT, GetUnitName_I, 0xA5D90) // Updated 1.13c
ASMPTR(D2CLIENT, InputCall_I, 0x147A0) // Updated 1.13c
ASMPTR(D2CLIENT, Interact_I, 0x1BDE0) // Updated 1.13c
ASMPTR(D2CLIENT, clickParty_I, 0x9E180) // Updated 1.13c
ASMPTR(D2CLIENT, Attack_I, 0xDBC4C) // Updated 1.13c
ASMPTR(D2CLIENT, OverrideShrinePatch_ORIG, 0x1155B8)//Updated 1.13c
ASMPTR(D2CLIENT, TestPvpFlag_I, 0x4FD90) //Updated 1.13c
ASMPTR(D2CLIENT, GetUnitFromId_I, 0x10A608)//Updated 1.13c
ASMPTR(D2CLIENT, GetUnitFromId_II, 0xA4E20)//Updated 1.13c
ASMPTR(D2CLIENT, GameDrawCross_I, 0x5F1C0) //Updated 1.13c

//D2CMP
FUNCPTR(D2CMP, InitCellFile, void __stdcall, (void *cellfile, CellFile **outptr, char *srcfile, DWORD lineno, DWORD filever, char *filename), 0x11AC0)//Updated 1.13c
FUNCPTR(D2CMP, DeleteCellFile, void __stdcall, (CellFile *cellfile), -10106) //Updated 1.13c

//D2COMMON
FUNCPTR(D2COMMON, GetRoomInfo, DWORD __stdcall,(UnitAny* PlayerUnit), -10331) //Updated 1.13c
FUNCPTR(D2COMMON, AddRoomData, void __stdcall, (Act * ptAct, int LevelId, int Xpos, int Ypos, Room1 * pRoom), -10401) //Updated 1.13c
FUNCPTR(D2COMMON, RemoveRoomData, void __stdcall, (Act * ptAct, int LevelId, int Xpos, int Ypos, Room1 * pRoom), -11099) //Updated 1.13c
FUNCPTR(D2COMMON, GetObjectTxt, ObjectTxt * __stdcall, (DWORD objno), -10688) //Updated 1.13c
FUNCPTR(D2COMMON, GetLayer, AutomapLayer2* __fastcall, (DWORD dwLevelNo), -10749) //Updated 1.13c
FUNCPTR(D2COMMON, GetLevel, Level * __fastcall, (ActMisc *pMisc, DWORD dwLevelNo), -10207) //Updated 1.13c
FUNCPTR(D2COMMON, InitLevel, void __stdcall, (Level *pLevel), -10322) //Updated 1.13c
FUNCPTR(D2COMMON, GetItemFromInventory, UnitAny *__stdcall, (Inventory* inv), 0x1E190) // Updated 1.13c
FUNCPTR(D2COMMON, GetNextItemFromInventory, UnitAny *__stdcall, (UnitAny *pItem), 0x1E8F0)// Updated 1.13c
FUNCPTR(D2COMMON, GetItemTxt, ItemTxt * __stdcall, (DWORD itemno), 0x719A0)//Updated 1.13c
FUNCPTR(D2COMMON, GetItemText, ItemTxt *__stdcall, (DWORD dwItemNo), 0x719A0) // Updated 1.13c
FUNCPTR(D2COMMON, GetUnitStat, DWORD __stdcall, (UnitAny* pUnit, DWORD dwStat, DWORD dwStat2), -10973) //Updated 1.13c
FUNCPTR(D2COMMON, MapToAbsScreen, void __stdcall, (long *pX, long *pY), -11087) //Updated 1.13c
FUNCPTR(D2COMMON, AbsScreenToMap, void __stdcall, (long *ptMouseX, long *ptMouseY), -10474) //Updated 1.13c
FUNCPTR(D2COMMON, CheckUnitCollision, DWORD __stdcall, (UnitAny* pUnitA, UnitAny* pUnitB, DWORD dwBitMask), -10839) //Updated 1.13c
FUNCPTR(D2COMMON, GetSkillLevel, INT __stdcall, (UnitAny* pUnit, Skill* pSkill, BOOL bTotal), -10306) //Updated 1.13c
FUNCPTR(D2COMMON, GetUnitState, int __stdcall, (UnitAny *pUnit, DWORD dwStateNo), -10494) //Updated 1.13c
FUNCPTR(D2COMMON, GenerateOverheadMsg, OverheadMsg* __stdcall, (DWORD dwUnk, CHAR* szMsg, DWORD dwTrigger), -10454) //Updated 1.13c
FUNCPTR(D2COMMON, FixOverheadMsg, VOID __stdcall, (OverheadMsg* pMsg, DWORD dwUnk), -10097) //Updated 1.13c
FUNCPTR(D2COMMON, CheckCollision, DWORD __stdcall, (Room1* pRoom, DWORD dwX, DWORD dwY, DWORD dwBitMask), -10916) //Updated 1.13c
FUNCPTR(D2COMMON, GetQuestFlag, int __stdcall, (void *questinfo, DWORD quest, DWORD flag), 0x2D0F0) //Updated 1.13c

//D2GFX
FUNCPTR(D2GFX, DrawAutomapCell, void __stdcall, (CellContext *context, DWORD xpos, DWORD ypos, RECT *cliprect, DWORD bright), -10079) //Updated 1.13c
FUNCPTR(D2GFX, DrawAutomapCell2, void __stdcall, (CellContext *context, DWORD xpos, DWORD ypos, DWORD bright2, DWORD bright, BYTE *coltab), -10041) //Updated 1.13c
FUNCPTR(D2GFX, DrawRectangle, void __stdcall, (int X1, int Y1, int X2, int Y2, DWORD dwColor, DWORD dwTrans), -10014) // Updated 1.13c
FUNCPTR(D2GFX, DrawLine, void __stdcall, (int X1, int Y1, int X2, int Y2, DWORD dwColor, DWORD dwUnk), -10010) // Updated 1.13c
FUNCPTR(D2GFX, GetScreenSize, DWORD __stdcall, (), -10036)  // Updated 1.13c
FUNCPTR(D2GFX, GetHwnd, HWND __stdcall, (), -10048) // Updated 1.13c

//D2LANG
FUNCPTR(D2LANG, GetLocaleText, wchar_t* __fastcall, (WORD nLocaleTxtNo), -10003)//Updated 1.13c

//D2LAUNCH
VARPTR(D2LAUNCH, BnData, BnetData *, 0x25ABC); // Updated 1.13c

//D2NET
FUNCPTR(D2NET, SendPacket, void __stdcall, (DWORD aLen, DWORD arg1, BYTE* aPacket), -10024) // Updated 1.13c
FUNCPTR(D2NET, ReceivePacket, void __stdcall, (BYTE *aPacket, DWORD aLen), 0x6BD0) // Updated 1.13c
FUNCPTR(D2NET, ReceivePacket_I, void __stdcall, (BYTE *aPacket, DWORD aLen), -10033) // Updated 1.13c

//D2MULTI
FUNCPTR(D2MULTI, PrintChannelText, void __stdcall, (char *szText, DWORD dwColor),  0xFC90) // Updated 1.13c
FUNCPTR(D2MULTI, DoChat, VOID __fastcall, (VOID), 0xCB30) // Updated 1.13c
VARPTR(D2MULTI, ChatBoxMsg, CHAR*, 0x38F18) // Updated 1.13c

//D2WIN

VARPTR(D2WIN, FirstControl, Control *, 0x214A0) // Updated 1.13c
VARPTR(D2WIN, FocusedControl, Control*, 0x214B0) // Updated 1.13c

FUNCPTR(D2WIN, TakeScreenshot, void __fastcall, (), 0x17EB0) // Updated 1.13c
FUNCPTR(D2WIN, SetControlText, void* __fastcall, (Control* box, wchar_t* txt), -10042) // Updated 1.13c
FUNCPTR(D2WIN, GetTextWidthFileNo, DWORD __fastcall, (wchar_t *wStr, DWORD* dwWidth, DWORD* dwFileNo), -10177) // Updated 1.13c
FUNCPTR(D2WIN, SetTextSize, DWORD __fastcall, (DWORD dwSize), -10184) // Updated 1.13c
FUNCPTR(D2WIN, DrawText, void __fastcall, (wchar_t *wStr, int xPos, int yPos, DWORD dwColor, DWORD dwUnk), -10150) // Updated 1.13c
FUNCPTR(D2WIN, GetTextLength, DWORD __fastcall, (wchar_t* szwText), -10028) //Updated 1.13c
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) //Updated 1.13c
FUNCPTR(D2WIN, DestroyEditBox, DWORD __fastcall, (Control* box), 0x184C3) //Updated 1.13c
FUNCPTR(D2WIN, GetEditBoxText, wchar_t* __fastcall, (Control* box), 0x136A0)//Updated 1.13c
FUNCPTR(D2WIN, AddEditBoxChar, DWORD __fastcall, (Control* box, BYTE keycode), 0x15450)//Updated 1.13c
FUNCPTR(D2WIN, SetEditBoxText, void* __fastcall, (Control* box, wchar_t* txt), 0x14DF0)//Updated 1.13c
FUNCPTR(D2WIN, SetEditBoxProc, void __fastcall, (Control* box, BOOL (__stdcall *FunCallBack)(Control*,DWORD,DWORD)), 0x13970)//Updated 1.13c
FUNCPTR(D2WIN, SelectEditBoxText, void __fastcall, (Control* box), 0x7708) //Updated 1.13c


Updated 4/15/2010


Last edited by 77920 on Thu Apr 15, 2010 6:34 am, edited 6 times in total.
Top
 Profile  
 Post subject:
PostPosted: Wed Mar 24, 2010 10:52 pm 
 
User
User

Joined: Sun Feb 18, 2007 6:31 pm
//#10024   > A1 44B22801     MOV EAX, DWORD PTR DS:[128B244]
FUNCPTR(D2NET, SendPacket, void __stdcall, (DWORD aLen, DWORD arg1, BYTE* aPacket), -10024) //updated
FUNCPTR(D2NET, ReceivePacket, void __stdcall, (BYTE *aPacket, DWORD aLen), 0x6BD0) //updated
FUNCPTR(D2NET, ReceivePacket_I, void __stdcall, (BYTE *aPacket, DWORD aLen), -10033) //updated


putting some stuff & knowledge to actual test so i'm actually slower than i thought ~~

here are two i just did to get my basic basic hack running

Top
 Profile  
 Post subject:
PostPosted: Wed Mar 24, 2010 11:09 pm 
 
User
User
User avatar

Joined: Thu Apr 09, 2009 4:31 pm
updated lvl struct.

struct Level {
   DWORD _1[4];               //0x00
   Room2* pRoom2First;            //0x10
   DWORD _2[2];               //0x14
   DWORD dwPosX;               //0x1C
   DWORD dwPosY;               //0x20
   DWORD dwSizeX;               //0x24
   DWORD dwSizeY;               //0x28
   DWORD _3[96];               //0x2C
   Level *pNextLevel;            //0x1AC
   DWORD _4;                  //0x1B0
   ActMisc * pMisc;            //0x1B4
   DWORD _5[3];               //0x1B8
   DWORD dwSeed[2];            //0x1C4
   DWORD _6;                  //0x1CC
   DWORD dwLevelNo;            //0x1D0
};


and ptrs.

FUNCPTR(D2COMMON, AddRoomData, void __stdcall, (Act * ptAct, int LevelId, int Xpos, int Ypos, Room1 * pRoom), -10401)
FUNCPTR(D2COMMON, RemoveRoomData, void __stdcall, (Act * ptAct, int LevelId, int Xpos, int Ypos, Room1 * pRoom), -11099)
FUNCPTR(D2COMMON, GetLayer, AutomapLayer2* __fastcall, (DWORD dwLevelNo), -10749)
FUNCPTR(D2COMMON, GetLevel, Level * __fastcall, (ActMisc *pMisc, DWORD dwLevelNo), -10207)
FUNCPTR(D2COMMON, InitLevel, void __stdcall, (Level *pLevel), -10322)

Top
 Profile  
 Post subject:
PostPosted: Wed Mar 24, 2010 11:09 pm 
 
User
User

Joined: Sun Feb 18, 2007 6:31 pm
6F9B7827    FF15 1CF19B6F   CALL DWORD PTR DS:[<&KERNEL32.EnterCriti>; ntdll.RtlEnterCriticalSection
6F9B782D    8B0D D8659C6F   MOV ECX, DWORD PTR DS:[6F9C65D8]
6F9B7833    894C24 18       MOV DWORD PTR SS:[ESP+18], ECX
6F9B7837    E8 3EE7FFFF     CALL <JMP.&D2gfx.#10048>
6F9B783C    50              PUSH EAX

FUNCPTR(D2GFX, GetHwnd, HWND __stdcall, (), -10048)

Top
 Profile  
 Post subject:
PostPosted: Wed Mar 24, 2010 11:12 pm 
 
User Gold
User Gold

Joined: Mon Dec 14, 2009 1:40 pm
Regicide wrote:
6F9B7827    FF15 1CF19B6F   CALL DWORD PTR DS:[<&KERNEL32.EnterCriti>; ntdll.RtlEnterCriticalSection
6F9B782D    8B0D D8659C6F   MOV ECX, DWORD PTR DS:[6F9C65D8]
6F9B7833    894C24 18       MOV DWORD PTR SS:[ESP+18], ECX
6F9B7837    E8 3EE7FFFF     CALL <JMP.&D2gfx.#10048>
6F9B783C    50              PUSH EAX

FUNCPTR(D2GFX, GetHwnd, HWND __stdcall, (), -10048)


Nice find isaac. i had some trouble with this.

Top
 Profile  
 Post subject:
PostPosted: Wed Mar 24, 2010 11:37 pm 
 
Moderator Gold
Moderator Gold
User avatar

Joined: Thu Aug 16, 2007 8:36 pm
namespace SRoomTilesOffsets
{
   enum ERoomTilesOffsets
   {
      lpsNext      = 0, //ffffffff
   };
};

namespace SPresetUnitOffsets
{
   enum EPresetUnitOffsets
   {
      lpsNext      = 0Ch, //6fd5b490
      dwType      = 14h, //6fd5b350
      dwClassId      = 4, //6fd5b35d
      dwPosX      = 8, //6fd59ef0
      dwPosY      = 18h, //6fd59ef8
   };
};

namespace SLevelOffsets
{
   enum ELevelOffsets
   {
      dwPosX      = 0, //ffffffff
      dwPosY      = 0+04h, //ffffffff
      dwSizeX      = 0+08h, //ffffffff
      dwSizeY      = 0+0ch, //ffffffff
      dwLevelNo      = 1D0h, //6fd7dfd7
      lpsRoom2First      = 0, //ffffffff
      lpsActMisc      = 1B4h, //6fd7d9e3
      lpsNextLevel      = 1ACh, //6fd7e311
   };
};

namespace SRoom2Offsets
{
   enum ERoom2Offsets
   {
      dwPosX      = 34h, //6fd5ae36
      dwPosY      = 34h+04h, //6fd5ae36
      dwSizeX      = 34h+08h, //6fd5ae36
      dwSizeY      = 34h+0Ch, //6fd5ae36
      dwPresetType      = 48h, //6fd94c06
      lpsRoom2Near      = 8, //6fd7df19
      lpsRoomTiles      = 4Ch, //6fd7df1e
      lpsLevel      = 58h, //6fd94c03
      dwRoomsNear      = 2Ch, //6fd7df3f
      lpsRoom2Next      = 24h, //6fd7df42
      lpdwType2Info      = 20h, //6fd60d7d
      lpsPresetUnit      = 0, //ffffffff
      lpsRoom      = 0, //ffffffff
   };
};

namespace SRoom1Offsets
{
   enum ERoom1Offsets
   {
      dwRoomsNear      = 24h, //6fd8c24d
      lpsRoomsNear      = 0, //6fd8c236
      lpsRoom2      = 10h, //6fd8c200
      lpsUnitFirst      = 28h+arg_0, //6fd91f9d
      lpsCollMap      = 20h, //6fd9c957
      dwPosX      = 0, //ffffffff
      dwPosY      = 0+04h, //ffffffff
      dwSizeX      = 0+08h, //ffffffff
      dwSizeY      = 0+0Ch, //ffffffff
   };
};
I added code tags - AntiRush

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 12:02 am 
 
User
User

Joined: Tue Sep 29, 2009 7:29 am
thanks all for posting so fast :) helped me a lot

can anyone tell me what GameShowAttack is for?

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 12:25 am 
 
User
User

Joined: Sun Feb 18, 2007 6:31 pm
neo3 wrote:
thanks all for posting so fast :) helped me a lot

can anyone tell me what GameShowAttack is for?


its not really useful for anything, wouldn't worry about it

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 12:43 am 
 
User Gold
User Gold

Joined: Mon Dec 14, 2009 1:40 pm
Regicide wrote:
neo3 wrote:
thanks all for posting so fast :) helped me a lot

can anyone tell me what GameShowAttack is for?


its not really useful for anything, wouldn't worry about it


What he said.

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 12:50 am 
 
User
User

Joined: Sun Feb 18, 2007 6:31 pm
ASMPTR(D2CLIENT, TestPvpFlag_I, 0x4FCE0) //updated
ASMPTR(D2CLIENT, GameDrawCross_I, 0x5F1C0) //updated

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 1:20 am 
 
User Gold
User Gold

Joined: Mon Dec 14, 2009 1:40 pm
Some more updated ptrs
ASMPTR(D2CLIENT, GenerateSpell_I, 0xA26B0) //Updated 1.13c
ASMPTR(D2CLIENT, TestPvpFlag_I, 0x4FCE0) // Updated 1.13c
ASMPTR(D2CLIENT, LoadUIImage_I, 0x2B380) // Updated 1.13c
ASMPTR(D2CLIENT, LoadAct_1, 0x62AAE) // Updated 1.13c
ASMPTR(D2CLIENT, LoadAct_2, 0x62760) // Updated 1.13c
ASMPTR(D2CLIENT, GetUnitName_I, 0xA5D90) // Updated 1.13c
ASMPTR(D2CLIENT, InputCall_I, 0x147A0) // Updated 1.13c
ASMPTR(D2CLIENT, Interact_I, 0x1BDE0) // Updated 1.13c
ASMPTR(D2CLIENT, clickParty_I, 0x9E180) // Updated 1.13c
ASMPTR(D2CLIENT, clickLocPtrs, 0xE0EC4) // Updated 1.13c
ASMPTR(D2CLIENT, ClickShopItem_I, 0x46EE0) // Updated 1.13c
ASMPTR(D2CLIENT, ShopAction_I, 0x47D60) // Updated 1.13c
ASMPTR(D2CLIENT, clickBelt_I, 0x51AE0) // Updated 1.13c
ASMPTR(D2CLIENT, clickBeltRight_I, 0x29990) // Updated 1.13c
ASMPTR(D2CLIENT, clickItemRight_I, 0x4D610) // Updated 1.13c
ASMPTR(D2CLIENT, GetItemDesc_I, 0x560B0) // Updated 1.13c
ASMPTR(D2CLIENT, MercItemAction_I, 0x14A10) // Updated 1.13c
ASMPTR(D2CLIENT, Attack_I, 0xDBC4C) // Updated 1.13c
ASMPTR(D2CLIENT, AssignPlayer_I, 0xA7630)//Updated 1.13c

ASMPTR(D2CLIENT, OverrideShrinePatch_ORIG, 0x1155B8)//Updated 1.13c



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) //Updated 1.13c
FUNCPTR(D2WIN, DestroyEditBox, DWORD __fastcall, (Control* box), 0x184C3) //Updated 1.13c
FUNCPTR(D2WIN, GetEditBoxText, wchar_t* __fastcall, (Control* box), 0x136A0)//Updated 1.13c
FUNCPTR(D2WIN, AddEditBoxChar, DWORD __fastcall, (Control* box, BYTE keycode), 0x15450)//Updated 1.13c
FUNCPTR(D2WIN, SetEditBoxText, void* __fastcall, (Control* box, wchar_t* txt), 0x14DF0)//Updated 1.13c
FUNCPTR(D2WIN, SetEditBoxProc, void __fastcall, (Control* box, BOOL (__stdcall *FunCallBack)(Control*,DWORD,DWORD)), 0x13970)//Updated 1.13c
FUNCPTR(D2WIN, SelectEditBoxText, void __fastcall, (Control* box), 0x7708) //Updated 1.13c
FUNCPTR(D2CLIENT, DrawEnteringLevelText, void __stdcall, (), 0xBF0D0)//Updated 1.13c
FUNCPTR(D2CLIENT, DrawManaOrb, void __stdcall, (), 0x2929E)//Updated 1.13c
FUNCPTR(D2CLIENT, DrawStamina, void __stdcall, (), 0xC3BDB)//Updated 1.13c
FUNCPTR(D2CLIENT, DrawStaminaA, void __stdcall, (), 0xC3BE8)//Updated 1.13c

//
VARPTR(D2CLIENT, ServerIp, char, 0xF4320)//Updated 1.13c
VARPTR(D2CLIENT, pAct, Act *, 0x11C3B8) //Updated 1.13c
VARPTR(D2WIN, FirstControl, Control *, 0x214A0) // Updated 1.13c
VARPTR(D2WIN, FocusedControl, Control*, 0x214B0) // Updated 1.13c

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 2:11 am 
 
User
User

Joined: Sun Feb 18, 2007 6:31 pm
Most of those aren't even used except by d2bs, lol...

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 2:14 am 
 
User Gold
User Gold

Joined: Thu Jun 05, 2003 8:29 pm
Location: St. Louis, Missouri
Regicide wrote:
Most of those aren't even used except by d2bs, lol...


These are very important. I appreciate this post!

...patiently awaiting 1.13c packet documentation =]

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 2:42 am 
 
User Gold
User Gold

Joined: Mon Dec 14, 2009 1:40 pm
ccsutton wrote:
Regicide wrote:
Most of those aren't even used except by d2bs, lol...


These are very important. I appreciate this post!

...patiently awaiting 1.13c packet documentation =]


Very good captain obvious. It's called expanding your knowledge on the updating process.

Top
 Profile  
 Post subject:
PostPosted: Thu Mar 25, 2010 4:27 am 
 
User
User

Joined: Sun Feb 18, 2007 6:31 pm
77920 wrote:
ccsutton wrote:
Regicide wrote:
Most of those aren't even used except by d2bs, lol...


These are very important. I appreciate this post!

...patiently awaiting 1.13c packet documentation =]


Very good captain obvious. It's called expanding your knowledge on the updating process.


Well ctrl + c & ctrl + s is hardly expanding knowledge.

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

All times are UTC [ DST ]


Who is online

Users browsing this forum: Himfreti and 6 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