summaryrefslogtreecommitdiff
path: root/scripts/lua/libmana-constants.lua
blob: 9638588ff6a8538be8d80d477aa336d124acc886 (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
-------------------------------------------------------------
-- Mana Support Library Constants                          --
--                                                         --
-- Some useful numeric values for use by other scripts.    --
--                                                         --
----------------------------------------------------------------------------------
--  Copyright 2008 The Mana World Development Team                              --
--                                                                              --
--  This file is part of The Mana Server.                                       --
--                                                                              --
--  The Mana Server is free software; you can redistribute  it and/or modify it --
--  under the terms of the GNU General  Public License as published by the Free --
--  Software Foundation; either version 2 of the License, or any later version. --
----------------------------------------------------------------------------------

TILESIZE = 32;
HOURS = 3600;
MINUTES = 60;

TYPE_ITEM = 0;
TYPE_ACTOR = 1;
TYPE_NPC = 2;
TYPE_MONSTER = 3;
TYPE_CHARACTER = 4;
TYPE_EFFECT = 5;
TYPE_OTHER = 6;

ACTION_STAND = 0;
ACTION_WALK = 1;
ACTION_ATTACK = 2;
ACTION_SIT = 3;
ACTION_DEAD = 4;
ACTION_HURT = 5;

DIRECTION_DOWN = 1;
DIRECTION_LEFT = 2;
DIRECTION_UP = 4;
DIRECTION_RIGHT = 8;

GENDER_MALE = 0;
GENDER_FEMALE = 1;
GENDER_UNSPECIFIED = 2;

DAMAGE_PHYSICAL = 0;
DAMAGE_MAGICAL = 1;
DAMAGE_OTHER = 2;

ELEMENT_NEUTRAL = 0;
ELEMENT_FIRE = 1;
ELEMENT_WATER = 2;
ELEMENT_EARTH = 3;
ELEMENT_AIR = 4;
ELEMENT_LIGHTNING = 5;
ELEMENT_METAL = 6;
ELEMENT_WOOD = 7;
ELEMENT_ICE = 8;

-- Core attributes Id
ATTR_STR = 1;
ATTR_AGI = 2;
ATTR_VIT = 3;
ATTR_INT = 4;
ATTR_DEX = 5;
ATTR_WIL = 6;

-- Derived attributes Id
ATTR_ACCURACY = 6;
ATTR_DEFENSE = 8;
ATTR_DODGE = 9;

ATTR_MAGIC_DODGE = 10;
ATTR_MAGIC_DEFENSE = 11;
ATTR_BONUS_ASPD = 12;

ATTR_HP = 13;
ATTR_MAX_HP = 14;
ATTR_HP_REGEN = 15;

ATTR_MOVE_SPEED_TPS = 16;
ATTR_MOVE_SPEED_RAW = 17;

ATTR_GP = 18;
ATTR_INV_CAPACITY = 19;

MOB_ATTR_PHY_ATK_MIN = 20;
MOB_ATTR_PHY_ATK_DELTA = 21;
MOB_ATTR_MAG_ATK = 22;

-- Emotes - TODO: should be obtainable in a smarter way
EMOTE_DISGUST = 10000;
EMOTE_SURPRISE = 10001;
EMOTE_HAPPY = 10002;
EMOTE_SAD = 10003;
EMOTE_EVIL =  10004;
EMOTE_WINK = 10005;
EMOTE_ANGEL = 10006;
EMOTE_BLUSH = 10007;
EMOTE_TONGUE = 10008;
EMOTE_GRIN = 10009;
EMOTE_UPSET = 10010;
EMOTE_PERTURBED = 10011;
EMOTE_SPEECH = 10012;
EMOTE_BLAH = 10013;

-- Skills - TODO: should be obtainable in a smarter way
SKILL_WEAPON_NONE = 100
SKILL_WEAPON_KNIFE = 101
SKILL_WEAPON_SWORD = 102
SKILL_WEAPON_POLEARM = 103
SKILL_WEAPON_STAFF = 104
SKILL_WEAPON_WHIP = 105
SKILL_WEAPON_BOW = 106
SKILL_WEAPON_SHOOTING = 107
SKILL_WEAPON_MACE = 108
SKILL_WEAPON_AXE = 109
SKILL_WEAPON_THROWN = 110

-- Loglevels
LOG_FATAL = 0
LOG_ERROR = 1
LOG_WARN = 2
LOG_INFO = 3
LOG_DEBUG = 4

-- PvP
PVP_NONE = 0
PVP_FREE = 1