summaryrefslogtreecommitdiff
path: root/constants.gd
blob: f80ce330ebb9c19d65a9b360e18142b74cbe82a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
class_name Constants


enum Gender {
	Female,
	Male,
	Both,
	Server,
}

## rAthena: enum pincode_state
enum PinCodeState {
	Ok = 0,
	Ask = 1,
	NotSet = 2,
	Expired = 3,
	New = 4,
	Illegal = 5,
	KSSN = 6,
	Passed = 7,
	Wrong = 8,
}

enum StatusType {
	Weight,
	MaximumWeight,
	MovementSpeed,
	BaseLevel,
	JobLevel,
}

enum EmotionType {
	Surprise,
	Question,
	Delight,
	Throb,
	Sweat,
	Aha,
	Fret,
	Anger,
	Money,
	Think,
	Scissor,
	Rock,
	Wrap,
	Flag,
	BigThrob,
	Thanks,
	Kek,
	Sorry,
	Smile,
	# ... TODO
}

static var PacketDB = {
	#LoginServerLoginPacket.HEADER: LoginServerLoginPacket,
	LoginServerLoginSuccessPacket.HEADER: LoginServerLoginSuccessPacket,
	#CharacterServerLoginPacket.HEADER: CharacterServerLoginPacket,
	CharacterServerLoginSuccessPacket.HEADER: CharacterServerLoginSuccessPacket,
	CharacterServerLoginSuccessCharacterListPacket.HEADER: CharacterServerLoginSuccessCharacterListPacket,
	CharacterListSizePacket.HEADER: CharacterListSizePacket,
	BlockCharacterPacket.HEADER: BlockCharacterPacket,
	PinCodeStatePacket.HEADER: PinCodeStatePacket,
	#RequestCharacterListPacket.HEADER: RequestCharacterListPacket,
	RequestCharacterListSuccessPacket.HEADER: RequestCharacterListSuccessPacket,
	#SelectCharacterPacket.HEADER: SelectCharacterPacket,
	CharacterSelectionSuccessPacket.HEADER: CharacterSelectionSuccessPacket,
	CharacterSelectionFailedPacket.HEADER: CharacterSelectionFailedPacket,
	#MapServerLoginPacket.HEADER: MapServerLoginPacket,
	MapServerLoginSuccessPacket.HEADER: MapServerLoginSuccessPacket,
	FriendListPacket.HEADER: FriendListPacket,
	ServerMessagePacket.HEADER: ServerMessagePacket,
	ChangeMapPacket.HEADER: ChangeMapPacket,
	ParameterChangePacket.HEADER: ParameterChangePacket,
	CoupleStatusPacket.HEADER: CoupleStatusPacket,
	UpdateAttackRangePacket.HEADER: UpdateAttackRangePacket,
	NewMailStatusPacket.HEADER: NewMailStatusPacket,
	QuestListPacket.HEADER: QuestListPacket,
	AchievementUpdatePacket.HEADER: AchievementUpdatePacket,
	AchievementListPacket.HEADER: AchievementListPacket,
	UpdateCriticalWeightPacket.HEADER: UpdateCriticalWeightPacket,
	#MapLoadedPacket.HEADER: MapLoadedPacket,
	SpriteChangePacket.HEADER: SpriteChangePacket,
	InventoryStartPacket.HEADER: InventoryStartPacket,
	RegularItemListPacket.HEADER: RegularItemListPacket,
	EquippableItemListPacket.HEADER: EquippableItemListPacket,
	InventoryEndPacket.HEADER: InventoryEndPacket,
	EquippableSwitchItemListPacket.HEADER: EquippableSwitchItemListPacket,
	MapTypePacket.HEADER: MapTypePacket,
	EntityAppeared2Packet.HEADER: EntityAppeared2Packet,
	UpdateSkillTreePacket.HEADER: UpdateSkillTreePacket,
	UpdateHotkeysPacket.HEADER: UpdateHotkeysPacket,
	ParameterChange2Packet.HEADER: ParameterChange2Packet,
	InitialStatusPacket.HEADER: InitialStatusPacket,
	ParameterChange3Packet.HEADER: ParameterChange3Packet,
	UpdatePartyInvitationState.HEADER: UpdatePartyInvitationState,
	UpdateShowEquipPacket.HEADER: UpdateShowEquipPacket,
	UpdateConfigurationPacket.HEADER: UpdateConfigurationPacket,
	ReputationPacket.HEADER: ReputationPacket,
	QuestEffectPacket.HEADER: QuestEffectPacket,
	MovingEntityAppearedPacket.HEADER: MovingEntityAppearedPacket,
	EntityDisappearedPacket.HEADER: EntityDisappearedPacket,
	NavigateToTargetPacket.HEADER: NavigateToTargetPacket,
	BroadcastFormattedMessagePacket.HEADER: BroadcastFormattedMessagePacket,
	DisplayEmotionPacket.HEADER: DisplayEmotionPacket,
	CloseDialogButtonPacket.HEADER: CloseDialogButtonPacket,
}