-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlua_constants.lua
182 lines (161 loc) · 3.98 KB
/
lua_constants.lua
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
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
-- CCharacter.h enum MessageType
MSG_CHAR,
MSG_CHAR_VICT,
MSG_ROOM,
MSG_ROOM_NOTCHAR,
MSG_ROOM_NOTVICT,
MSG_ROOM_NOTCHARVICT,
MSG_GROUP,
MSG_GROUP_NOTCHAR = 0, 1, 2, 3, 4, 5, 6, 7
-- CCharacter.h enum AttackType
ATTACK_MISS = 1
ATTACK_DODGE = 2
ATTACK_PARRY = 3
ATTACK_BLOCK = 4
ATTACK_CRIT = 5
ATTACK_HIT = 6
ATTACK_RESIST = 7
ATTACK_ABSORB = 8
-- CCharacter.h enum ResourceType
RESOURCE_HEALTH = 1
RESOURCE_MANA = 2
RESOURCE_ENERGY = 3
RESOURCE_RAGE = 4
RESOURCE_COMBO = 5
-- CCharacter.h enum Flags
CHAR_FLAG_FRIENDLY = 0
CHAR_FLAG_NEUTRAL = 1
CHAR_FLAG_AGGRESSIVE = 2
CHAR_FLAG_GUILD = 3
CHAR_FLAG_VENDOR = 4
CHAR_FLAG_REPAIR = 5
CHAR_FLAG_TRAINER = 6
-- CGame.h enum School
SCHOOL_PHYSICAL = 1
SCHOOL_FIRE = 2
SCHOOL_FROST = 3
SCHOOL_ARCANE = 4
SCHOOL_NATURE = 5
SCHOOL_SHADOW = 6
SCHOOL_HOLY = 7
-- CRoom.h enum Flags
ROOM_FLAG_RECALL = 0
ROOM_FLAG_NOPVP = 1
-- CSkill.h enum TargetType
TARGET_SELF = 0
TARGET_OTHER = 1
TARGET_HOSTILE = 2
TARGET_ANY = 3
TARGET_FRIENDLY = 4
TARGET_NONE = 5
TARGET_PASSIVE = 6
-- CSkill.h enum Flags
FLAG_NOGCD = 0
FLAG_GCDIMMUNE = 1
-- CCharacter.h enum Races
RACE_NONE,
RACE_HUMAN,
RACE_ELF,
RACE_DWARF,
RACE_ORC,
RACE_GNOME,
RACE_GOBLIN,
RACE_UNDEAD,
RACE_MINOTAUR,
RACE_TROLL = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
-- CCharacter.h enum EditState
ED_NONE = 0
ED_ROOM = 1
ED_SKILL = 2
ED_NPC = 3
ED_ITEM = 4
ED_QUEST = 5
ED_CLASS = 6
ED_PLAYER = 7
ED_HELP = 8
ED_AREA = 9
-- CSpellAffect.h enum Categorys
AFFECT_NONE = 0
AFFECT_MAGIC = 1
AFFECT_CURSE = 2
AFFECT_POISON = 3
AFFECT_DISEASE = 4
AFFECT_BLEED = 5
AFFECT_FRENZY = 6
AFFECT_LAST = 7
-- CSpellAffect.h enum Auras
AURA_MOVE_SPEED = 1
AURA_RESOURCE_COST = 2
AURA_EATING = 3
AURA_DRINKING = 4
AURA_TAUNT = 5
AURA_DAMAGE_ABSORB = 6
AURA_INCAPACITATE = 7
AURA_MODIFY_ARMOR = 8
AURA_STUN = 9
AURA_MANA_COST = 10
AURA_HEALING_RECEIVED = 11
AURA_MODIFY_AGILITY = 12
AURA_MODIFY_STRENGTH = 13
AURA_MODIFY_WISDOM = 14
AURA_MODIFY_INTELLECT = 15
AURA_MODIFY_STAMINA = 16
AURA_MODIFY_SPIRIT = 17
-- enum Type { THREAT_DAMAGE, THREAT_HEALING, THREAT_OTHER };
THREAT_DAMAGE = 0
THREAT_HEALING = 1
THREAT_OTHER = 2
-- CExit.h enum Direction
DIR_NORTH = 0
DIR_NORTHEAST = 1
DIR_EAST = 2
DIR_SOUTHEAST = 3
DIR_SOUTH = 4
DIR_SOUTHWEST = 5
DIR_WEST = 6
DIR_NORTHWEST = 7
DIR_UP = 8
DIR_DOWN = 9
DIR_LAST = 10
--CItem.h enum EquipLocation
EQUIP_NONE, EQUIP_HEAD, EQUIP_NECK, EQUIP_SHOULDER, EQUIP_BACK, EQUIP_CHEST, EQUIP_WRIST, EQUIP_HANDS,
EQUIP_WAIST, EQUIP_LEGS, EQUIP_FEET, EQUIP_FINGER, EQUIP_TRINKET,
EQUIP_OFFHAND, EQUIP_MAINHAND, EQUIP_ONEHAND, EQUIP_TWOHAND, EQUIP_LAST = 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18
SPELLAFFECT_BUFF = 0
SPELLAFFECT_DEBUFF = 1
SPELLAFFECT_HIDDEN = true
SPELLAFFECT_VISIBLE = false
MAX_RAID_SIZE = 24
--[[
--enum EquipmentSlot
{
EQUIP_HEAD, EQUIP_NECK, EQUIP_SHOULDER, EQUIP_BACK, EQUIP_CHEST, EQUIP_WRIST, EQUIP_HANDS,
EQUIP_WAIST, EQUIP_LEGS, EQUIP_FEET, EQUIP_FINGER1, EQUIP_FINGER2, EQUIP_TRINKET1, EQUIP_TRINKET2,
EQUIP_OFFHAND, EQUIP_MAINHAND, EQUIP_LAST
};
--enum Quality
{
QUALITY_POOR, QUALITY_COMMON, QUALITY_UNCOMMON, QUALITY_RARE, QUALITY_EPIC, QUALITY_LEGENDARY, QUALITY_ARTIFACT, QUALITY_LAST
};
--enum Binding
{
BIND_NONE, BIND_PICKUP, BIND_EQUIP, BIND_LAST
};
--enum Type
{
TYPE_ARMOR_CLOTH, TYPE_ARMOR_LEATHER, TYPE_ARMOR_MAIL, TYPE_ARMOR_PLATE,TYPE_WEAPON_SWORD, TYPE_WEAPON_DAGGER, TYPE_WEAPON_MACE,
TYPE_WEAPON_AXE, TYPE_WEAPON_POLEARM, TYPE_WEAPON_STAFF, TYPE_CONTAINER, TYPE_FOOD, TYPE_CONSUMABLE, TYPE_MISC,
TYPE_SHIELD, TYPE_DRINK, TYPE_LAST
};
--CTrigger.h
--enum ParentTypes
{
PARENT_ROOM, PARENT_NPC, PARENT_ITEM
};
--enum TriggerType
{
ENTER_CHAR, ENTER_NPC, ENTER_PC, EXIT_CHAR, EXIT_NPC, EXIT_PC, TIMER, COMBAT_TIMER, ENTER_COMBAT, EXIT_COMBAT, TRIG_LAST
};
-- CQuest.h
enum ObjectiveType { OBJECTIVE_ROOM, OBJECTIVE_VISITNPC, OBJECTIVE_KILLNPC, OBJECTIVE_ITEM };
]]