summaryrefslogtreecommitdiff
path: root/src/char/init.c
blob: 64f6a29d0d27c2c503bd11d165e74e7982fee5fd (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
// Copyright (c) Copyright (c) Hercules Dev Team, licensed under GNU GPL.
// Copyright (c) 2014 Evol developers

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include "../../../common/HPMi.h"
#include "../../../common/malloc.h"
#include "../../../common/mapindex.h"
#include "../../../common/mmo.h"
#include "../../../common/socket.h"
#include "../../../common/strlib.h"
#include "../../../char/char.h"
#include "../../../char/geoip.h"
#include "../../../char/int_auction.h"
#include "../../../char/int_elemental.h"
#include "../../../char/int_guild.h"
#include "../../../char/int_homun.h"
#include "../../../char/int_mail.h"
#include "../../../char/int_mercenary.h"
#include "../../../char/int_party.h"
#include "../../../char/int_pet.h"
#include "../../../char/int_quest.h"
#include "../../../char/int_storage.h"
#include "../../../char/inter.h"
#include "../../../char/loginif.h"
#include "../../../char/mapif.h"

#include "common/init.h"
#include "char/char.h"
#include "char/config.h"

#include "../../../common/HPMDataCheck.h" /* should always be the last file included! (if you don't make it last, it'll intentionally break compile time) */

HPExport struct hplugin_info pinfo =
{
    "evol_char",
    SERVER_TYPE_CHAR,
    "0.1",
    HPM_VERSION
};

HPExport void plugin_init (void)
{
    chr = GET_SYMBOL("chr");
    geoip = GET_SYMBOL("geoip");
    inter_auction = GET_SYMBOL("inter_auction");
    inter_elemental = GET_SYMBOL("inter_elemental");
    inter_guild = GET_SYMBOL("inter_guild");
    inter_homunculus = GET_SYMBOL("inter_homunculus");
    inter_mail = GET_SYMBOL("inter_mail");
    inter_mercenary = GET_SYMBOL("inter_mercenary");
    inter_party = GET_SYMBOL("inter_party");
    inter_pet = GET_SYMBOL("inter_pet");
    inter_quest = GET_SYMBOL("inter_quest");
    inter_storage = GET_SYMBOL("inter_storage");
    inter = GET_SYMBOL("inter");
    loginif = GET_SYMBOL("loginif");
    mapif = GET_SYMBOL("mapif");

    addHookPre("chr->parse_char_login_map_server", echar_parse_char_login_map_server);
}

HPExport void server_preinit (void)
{
    interfaces_init_common();
    mapindex = GET_SYMBOL("mapindex");

    setDefaultMap();

    addCharInterConf("inter_server_ip", config_inter_server_ip);
}

HPExport void server_online (void)
{
}

HPExport void plugin_final (void)
{
}