summaryrefslogtreecommitdiff
path: root/src/emap/pc.h
blob: db1a912c31bdbca1f82c970c4fbb7d448b05c8cd (plain) (blame)
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers

#ifndef EVOL_MAP_PC
#define EVOL_MAP_PC

enum VarConst
{
    Const_ClientVersion = 10000
};

int64 epc_readparam_pre(const TBL_PC **sdPtr,
                        int *type);

int epc_setparam_pre(TBL_PC **sdPtr,
                     int *type,
                     int64 *val);

int epc_setregistry_pre(TBL_PC **sdPtr,
                        int64 *reg,
                        int *val);

void epc_equipitem_pos_pre(TBL_PC **sdPtr,
                           struct item_data **idPtr,
                           int *nPtr,
                           int *posPtr);

void epc_unequipitem_pos_pre(TBL_PC **sdPtr,
                             int *nPtr,
                             int *posPtr);

bool epc_can_attack_pre(TBL_PC **sdPtr,
                        int *target_id);

void epc_validate_levels_pre(void);

int epc_isequip_post(int retVal,
                     struct map_session_data *sd,
                     int n);

int epc_useitem_post(int retVal,
                     struct map_session_data *sd,
                     int n);

int epc_equipitem_post(int retVal,
                       struct map_session_data *sd,
                       int n,
                       int data);

int epc_unequipitem_post(int retVal,
                         struct map_session_data *sd,
                         int n,
                         int data);

int epc_check_job_name_pre(const char **namePtr);

int epc_setnewpc_post(int retVal,
                      struct map_session_data *sd,
                      int account_id,
                      int char_id,
                      int login_id1,
                      unsigned int client_tick,
                      int sex,
                      int fd);

int epc_additem_post(int retVal,
                     struct map_session_data *sd,
                     const struct item *item_data,
                     int amount,
                     e_log_pick_type log_type);

int epc_delitem_pre(struct map_session_data **sdPtr,
                    int *nPtr,
                    int *amountPtr,
                    int *typePtr,
                    short *reasonPtr,
                    e_log_pick_type *log_type);

int epc_delitem_post(int retVal,
                     struct map_session_data *sd,
                     int n,
                     int amount,
                     int type,
                     short reason,
                     e_log_pick_type log_type);

bool epc_can_insert_card_into_post(bool retVal,
                                   struct map_session_data* sd,
                                   int idx_card,
                                   int idx_equip);

int epc_dropitem_pre(struct map_session_data **sdPtr,
                     int *nPtr,
                     int *amountPtr);

int epc_dropitem_post(int retVal,
                      struct map_session_data *sd,
                      int n,
                      int amount);

int epc_takeitem_pre(struct map_session_data **sdPtr,
                     struct flooritem_data **fitemPtr);

int epc_takeitem_post(int retVal,
                      struct map_session_data *sd,
                      struct flooritem_data *fitem);

int epc_insert_card_pre(struct map_session_data **sdPtr,
                        int *idx_card,
                        int *idx_equip);

int epc_insert_card_post(int retVal,
                         struct map_session_data* sd,
                         int idx_card,
                         int idx_equip);

bool epc_can_Adopt_pre(struct map_session_data **p1_sdPtr,
                       struct map_session_data **p2_sdPtr,
                       struct map_session_data **b_sdPtr);

bool epc_adoption_pre(struct map_session_data **p1_sdPtr,
                      struct map_session_data **p2_sdPtr,
                      struct map_session_data **b_sdPtr);

bool epc_process_chat_message_pre(struct map_session_data **sdPtr,
                                  const char **messagePtr);

int epc_dead_post(int retVal,
                  struct map_session_data *sd,
                  struct block_list *src);

int epc_jobchange(struct map_session_data *sd,
                  int job,
                  int upper);

void epc_calc_skilltree_clear_pre(struct map_session_data **sdPtr);

void epc_calc_skilltree_bonus_pre(struct map_session_data **sdPtr,
                                  int *classidxPtr);

void epc_checkbaselevelup_sc_pre(struct map_session_data **sdPtr);

bool epc_resetskill_job_pre(struct map_session_data** sdPtr,
                            int *indexPtr);

bool epc_isDeathPenaltyJob_pre(uint16 *jobPtr);

bool epc_read_skill_job_skip_pre(short *skill_idPtr,
                                 int *job_idPtr);

#endif  // EVOL_MAP_PC