-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added original source from http://plugy.free.fr
- Loading branch information
Showing
133 changed files
with
24,628 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/*================================================================= | ||
File created by Yohann NICOLAS. | ||
@brief Diablo II Tbl Structures definitions. | ||
=================================================================*/ | ||
|
||
#pragma once | ||
|
||
#include <windows.h> | ||
|
||
#pragma pack(1) | ||
|
||
struct TblHeader | ||
{ | ||
WORD usCRC; // +00 | ||
WORD NumElementsOffset; // +02 | ||
DWORD HashTableSizeOffset; // +04 | ||
BYTE VersionOffset; // +08 | ||
DWORD IndexStart; // +09 | ||
DWORD NumLoopsOffset; // +0D | ||
DWORD IndexEnd; // +11 (FileLen) | ||
}; | ||
|
||
struct TblNode | ||
{ | ||
BYTE ActiveOffset; // +00 | ||
WORD KeyIndex; // +01 | ||
DWORD HashValueOffset; // +03 | ||
DWORD KeyOffset; // +07 | ||
DWORD StringOffset; // +0B | ||
WORD StringLength; // +0F | ||
}; | ||
|
||
|
||
|
||
|
||
#pragma pack() | ||
|
||
//#define TBLHEADERSIZE 0x15 | ||
//#define TBLNODESIZE 0x11 | ||
|
||
/*================================= END OF FILE =================================*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,118 @@ | ||
/*================================================================= | ||
File created by Yohann NICOLAS. | ||
NOT TESTED IN 1.10 (1.09b) | ||
=================================================================*/ | ||
|
||
#pragma once | ||
|
||
#include <windows.h> | ||
struct Unit; | ||
struct Game; | ||
struct Room; | ||
|
||
#pragma pack(1) | ||
struct sWinMessage | ||
{ | ||
void* msg; | ||
DWORD type; | ||
DWORD uk1; | ||
WORD x; | ||
WORD y; | ||
DWORD uk3; | ||
DWORD uk4; | ||
DWORD managed; | ||
DWORD unmanaged; | ||
}; | ||
#pragma pack() | ||
|
||
/* | ||
struct sDrawImageInfo//size = 0x48 (until 1.10) | ||
{ | ||
void* reserved; | ||
void* image; | ||
DWORD frame; | ||
DWORD zero[0xF]; | ||
};*/ | ||
|
||
struct sDrawImageInfo//size = 0x48 | ||
{ | ||
DWORD uk1; | ||
DWORD uk2; | ||
void* image; | ||
DWORD uk3; | ||
DWORD uk4; | ||
void* reserved; | ||
DWORD uk5[0xB]; | ||
DWORD frame; | ||
}; | ||
|
||
|
||
struct saveBitField | ||
{ | ||
BYTE* data; | ||
DWORD maxBits; | ||
DWORD currentByte; | ||
DWORD currentBit; | ||
DWORD overflaw; | ||
}; | ||
|
||
struct BINField | ||
{ | ||
char* fieldName; | ||
int type; | ||
DWORD strLength; | ||
DWORD offset; | ||
void* lookup; | ||
}; | ||
|
||
struct ItemGenerationData //size=0x84 | ||
{ | ||
Unit* ptMonster; //+00 | ||
BYTE uk1[0x04]; //+04 | ||
Game* ptGame; //+08 | ||
DWORD ilvl; //+0C | ||
BYTE uk2[0x04]; //+10 | ||
DWORD nTxtFileNo; //+14 | ||
DWORD unknow1; //+18 | ||
DWORD x; //+1C | ||
DWORD y; //+20 | ||
Room* ptRoom; //+24 | ||
WORD unknow2; //+28 | ||
WORD gameUnknown2; //+2A | ||
BYTE uk3[0x04]; //+2C | ||
DWORD quality; //+30 | ||
BYTE uk4[0x34]; //+34 | ||
int prefixID[3]; //+68 (-1: no prefix; 0:random prefix) | ||
int suffixID[3]; //+74 (-1: no suffix; 0:random suffix) | ||
union { //+80 | ||
DWORD flags; | ||
struct { | ||
DWORD fuk1:5; //0x0000001F | ||
DWORD unknow3:1; //0x00000020 | ||
}; | ||
}; | ||
}; | ||
|
||
|
||
/*=================================================================*/ | ||
/* Data Structure to Update Client */ | ||
/*=================================================================*/ | ||
struct DataPacket | ||
{ | ||
BYTE mType; // +00 Packet Type | ||
BYTE mFunc; // +02 Function to Call | ||
BYTE mSize; // +04 Size of the Packet | ||
DWORD mReserved; // +06 Used with items | ||
BYTE mUnitType; // +0A Always '0' | ||
DWORD mPlayerID; // +0C The Player ID (ptUnit + 08h) | ||
DWORD mItemID; // +10 The Item ID | ||
DWORD mMod1_ID; // +14 The Stat/Mod ID | ||
DWORD mParam1; // +18 3 Paramters | ||
DWORD mParam2; // +1C | ||
DWORD mParam3; // +20 | ||
}; | ||
|
||
|
||
/*================================= END OF FILE =================================*/ |
Oops, something went wrong.