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
|
########################################################################################
# This file is part of Spheres.
# Copyright (C) 2019 Jesusalva
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
########################################################################################
# Constants Module
# Jobs
Job_Swordsman =1
Job_Assassin =2
Job_Mage =3
Job_Archer =4
Job_Gunner =5
# Elements
Ele_Fire =1
Ele_Water =2
Ele_Nature =3
Ele_Light =4
Ele_Shadow =5
# Gender
Sex_Male =0
Sex_Female =1
# Limits
NO_LVLUP =1
NO_PARTY =2
EXP_UP =4
EVO_MAT =8
DOUBLE_GP =16
UNSELLABLE =32
SUPEREVOMAT =64
# Status
ST_TOWN =0
ST_QUEST =1
# Spheres
SPH_NONE =0
SPH_WIDEATTACK =1
SPH_PIERCE =2
SPH_ASSAULT =3
SPH_HEAL =4
SPH_HEALALL =5
SPH_ATKUP =6
SPH_DEFUP =7
# Status Conditions
SC_ATKUP =1
SC_DEFUP =2
SC_ATKDOWN =4
SC_DEFDOWN =8
SC_POISON =16
SC_BLIND =32
SC_STONED =64
# Battle action
ACT_NONE =0
ACT_SPHERE =1
ACT_SKILL =2
# Date Constants
# [0]- Day, [1]- Month, [2]- Year, [3]-Hour, [4]-Minute, [5]-Weekday
DATE_DAY =0
DATE_MONTH =1
DATE_YEAR =2
DATE_WEEKDAY =3
DATE_HOUR =4
DATE_MINUTE =5
MONDAY =0
TUESDAY =1
WEDNESDAY =2
THURSDAY =3
FRIDAY =4
SATURDAY =5
SUNDAY =6
# Configuration (hardcoded!)
MAX_INV_SIZE =25
MAX_PARTIES =3
AP_REGEN_TIME =360
AP_REGEN_TIME_F =360.0
SQL_SAVE_TIME =300.0
CONN_LIFETIME =1800
CONN_CLEANUP =900.0
SQL_PINGTIME =1200.0
BL_UPDATETIME =30.0
BAN_TIME =180.0
CLIENTVERSION ="2.0.12.15"
MAX_CLIENTS =2500
# Hard coded loot (1,000~10,000)
CRYSTAL_MIN=1000
CRYSTAL_MAX=2000
EXPRATE_MIN=2001
EXPRATE_MAX=4000
GPPRATE_MIN=4001
GPPRATE_MAX=6000
# Quick shortcuts
CRYSTAL_10 =1010
CRYSTAL_20 =1020
CRYSTAL_30 =1030
CRYSTAL_50 =1050
CRYSTAL_100=1100
DOUBLE_EXP =3000
TRIPLE_EXP =4000
DOUBLE_GP =5000
TRIPLE_GP =6000
# Error Handler
ERR_ERR ="500 Internal Server Error" # Maybe 418 I am a teapot
ERR_OFF ="401 Unauthorized"
ERR_BAD ="400 Bad Request"
ERR_DONE ="200"
#"You cannot perform this operation! Not enough Crystals"
ERR_INS =105
ERR_FULL =106
#"Operation complete"
ERR_OK =200
ERR_LOGIN =5000
# SQL masks
SQL_NONE =0
SQL_CLEAR =1
SQL_DELAY =2
SQL_FULL =4
# quest.json flags
SFLAG_NONE =0 # Normal battle
SFLAG_CLEARGEMS =1 # Give 100 gems upon first victory
SFLAG_DOUBLEGEMS =2 # Give 2x crystals (200 gems) upon first victory
SFLAG_SPECIAL =4 # This is a special quest - do not update quest field
SFLAG_FIRSTLOOT =8 # Always collect the first loot on first victory.
SFLAG_DOUBLEEXP =16 # Double EXP earned
SFLAG_DOUBLEGP =32 # Double GP earned
# Skill types
SK_CLEAR_SC =1
SK_SINGLE_DMG =2
SK_MULTI_DMG =4
SK_ATK_UP =8
SK_DEF_UP =16
SK_SINGLE_HEAL =32
SK_MULTI_HEAL =64
SK_RESSURECTION =128
# Others
INT_MAX =2147483647
|