summaryrefslogtreecommitdiff
path: root/src/emap/pc.h
blob: 058561ffb7d0fb8f48f5274e5266c68272f3d4f2 (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
// 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
};

int epc_readparam_pre(TBL_PC* sd, int *type);

int epc_setregistry(TBL_PC *sd, int64 *reg, int *val);

void epc_equipitem_pos(TBL_PC *sd, struct item_data *id, int *nPtr, int *posPtr);

void epc_unequipitem_pos(TBL_PC *sd, int *nPtr, int *posPtr);

bool epc_can_attack (TBL_PC *sd, int *target_id);

int epc_takeitem(TBL_PC *sd, TBL_ITEM *fitem);

void epc_validate_levels(void);

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

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

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

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

int epc_check_job_name(const char *name);

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,
                     struct item *item_data, int *amountPtr,
                     e_log_pick_type *log_type);

int epc_delitem_pre(struct map_session_data *sd, 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 *nPtr, int *amountPtr,
                     int *typePtr, short *reasonPtr,
                     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 *sd, int *nPtr, int *amountPtr);

int epc_dropitem_post(int retVal, struct map_session_data *sd, int *nPtr, int *amountPtr);

int epc_takeitem_pre(struct map_session_data *sd, struct flooritem_data *fitem);

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

int epc_insert_card_pre(struct map_session_data* sd, 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_sd,
                       struct map_session_data *p2_sd,
                       struct map_session_data *b_sd);

bool epc_adoption_pre(struct map_session_data *p1_sd,
                      struct map_session_data *p2_sd,
                      struct map_session_data *b_sd);

bool epc_process_chat_message_pre(struct map_session_data *sd,
                                  const char *message);

#endif  // EVOL_MAP_PC