summaryrefslogtreecommitdiff
path: root/src/emap/npc.h
blob: 7e6289e6ea7770e8e8be3c2a68d4688018e72756 (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
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 - 2015 Evol developers

#ifndef EVOL_MAP_NPC
#define EVOL_MAP_NPC

void enpc_parse_unknown_mapflag_pre(const char **namePtr,
                                    const char **w3Ptr,
                                    const char **w4Ptr,
                                    const char **startPtr,
                                    const char **bufferPtr,
                                    const char **filepathPtr,
                                    int **retval);

int enpc_buysellsel_pre(TBL_PC **sdPtr,
                        int *id,
                        int *type);

bool enpc_db_checkid_pre(const int *idPtr);

bool enpc_duplicate_script_sub_pre(struct npc_data **ndPtr,
                                   const struct npc_data **sndPtr,
                                   int *xsPtr,
                                   int *ysPtr,
                                   int *optionsPtr);

void enpc_set_var_num(TBL_NPC *const npc,
                      const char *var,
                      const int val);

int enpc_get_var_num(const TBL_NPC *const npc,
                     const char *var);

int enpc_unload_pre(struct npc_data** ndPtr,
                    bool *singlePtr,
                    bool *unloadMobsPtr);

#endif  // EVOL_MAP_NPC