Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Hercules Renewal: Phase Two: Starting~!
http://hercules.ws/board/topic/383-hercules-renewal-phase-two/ Signed-off-by: shennetsind <ind@henn.et>
- Loading branch information
1 parent
57b5943
commit 4d89aa6
Showing
14 changed files
with
162 additions
and
35 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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,52 @@ | ||
// Copyright (c) Hercules Dev Team, licensed under GNU GPL. | ||
// See the LICENSE file | ||
|
||
/* Hercules Renewal: Phase Two http://hercules.ws/board/topic/383-hercules-renewal-phase-two/ */ | ||
|
||
#ifndef _PACKETS_STRUCT_H_ | ||
#define _PACKETS_STRUCT_H_ | ||
|
||
enum packet_headers { | ||
#if PACKETVER < 20080102 | ||
authokType = 0x73, | ||
#else | ||
authokType = 0x2eb, | ||
#endif | ||
maptypeproperty2Type = 0x99b, | ||
}; | ||
|
||
#pragma pack(push, 1) | ||
|
||
struct packet_authok { | ||
short PacketType; | ||
unsigned int startTime; | ||
char PosDir[3]; | ||
unsigned char xSize; | ||
unsigned char ySize; | ||
#if PACKETVER >= 20080102 | ||
short font; | ||
#endif | ||
} __attribute__((packed)); | ||
|
||
struct packet_maptypeproperty2 { | ||
short PacketType; | ||
short type; | ||
struct { | ||
unsigned int party : 1; | ||
unsigned int guild : 1; | ||
unsigned int siege : 1; | ||
unsigned int mineffect : 1; | ||
unsigned int nolockon : 1; | ||
unsigned int countpk : 1; | ||
unsigned int nopartyformation : 1; | ||
unsigned int bg : 1; | ||
unsigned int noitemconsumption : 1; | ||
unsigned int usecart : 1; | ||
unsigned int summonstarmiracle : 1; | ||
unsigned int SpareBits : 15; | ||
} flag; | ||
} __attribute__((packed)); | ||
|
||
#pragma pack(pop) | ||
|
||
#endif /* _PACKETS_STRUCT_H_ */ |
Oops, something went wrong.