This repository has been archived by the owner on Mar 9, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d24f0ef
commit 7a16012
Showing
3,038 changed files
with
342,690 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
@SET_MAKE@ | ||
|
||
HAVE_MYSQL=@HAVE_MYSQL@ | ||
|
||
ifeq ($(HAVE_MYSQL),yes) | ||
ALL_DEPENDS = common login map | ||
else | ||
ALL_DEPENDS = needs_mysql | ||
endif | ||
|
||
########################################################## | ||
.PHONY: common conf \ | ||
login \ | ||
map \ | ||
clean help | ||
|
||
all: $(ALL_DEPENDS) | ||
|
||
common: | ||
@$(MAKE) -C src/common all | ||
|
||
login: common | ||
@$(MAKE) -C src/login all | ||
|
||
map: common | ||
@$(MAKE) -C src/map all | ||
|
||
clean: | ||
@$(MAKE) -C src/common $@ | ||
@$(MAKE) -C src/login $@ | ||
@$(MAKE) -C src/map $@ | ||
|
||
help: | ||
@echo "most common targets are 'all' 'common' 'help' 'clean'" | ||
@echo "possible targets are:" | ||
@echo "'common' - builds object files used in SQL servers" | ||
@echo "'login' - "; | ||
@echo "'map' - "; | ||
@echo "'conf' - "; | ||
@echo "'clean' - cleans builds and object" | ||
@echo "'help' - output thid message" | ||
|
||
############################################################## | ||
|
||
needs_mysql: | ||
@echo "MySQL not found or disabled by the configure script" | ||
@exit 1 | ||
|
||
############################################################## | ||
# | ||
|
||
install: | ||
$(shell read -p "WARNING: Those target does not work properly yet. Press Ctrl+C to cancel or Enter to continue") | ||
$(shell mkdir -p /opt/dsproject/bin/) | ||
$(shell mkdir -p /opt/dsproject/etc/dsproject/) | ||
$(shell mkdir -p /opt/dsproject/var/log/dsproject/) | ||
$(shell mv conf /opt/dsproject/etc/dsproject/conf) | ||
$(shell mv log /opt/dsproject/var/log/dsproject/) | ||
$(shell cp *-server* /opt/dsproject/bin/) | ||
$(shell ln -s /opt/dsproject/var/log/dsproject/ /opt/dsproject/bin/log) | ||
$(shell ln -s /opt/dsproject/etc/dsproject/conf /opt/dsproject/bin) | ||
|
||
bin-clean: | ||
$(shell rm /opt/dsproject/bin/login-server*) | ||
$(shell rm /opt/dsproject/bin/map-server*) | ||
|
||
unistall: bin-clean | ||
$(shell read -p "WARNING: This target does not work properly yet. Press Ctrl+c to cancel or Enter to continue.") | ||
$(shell rm /opt/dsproject/bin/log) | ||
$(shell rm /opt/dsproject/bin/conf) | ||
$(shell rm -rf /opt/dsproject/etc/dsproject) | ||
$(shell rm -rf /opt/dsproject/var/log/dsproject) | ||
$(shell rm -rf /opt/dsproject) | ||
|
||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
----------------------------------- | ||
-- | ||
-- GLOBAL_COMMANDS | ||
-- | ||
----------------------------------- | ||
|
||
commands_ini = {}; | ||
|
||
----------------------------------- | ||
-- Example | ||
-- 3 types of parameters: | ||
-- i - int, s - string, f - float | ||
----------------------------------- | ||
|
||
commands_ini[1] = { ["name"] = "additem", ["path"] = "scripts/commands", ["parameters"] = "ii" }; | ||
commands_ini[2] = { ["name"] = "release", ["path"] = "scripts/commands", ["parameters"] = "" }; | ||
commands_ini[3] = { ["name"] = "cs", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[4] = { ["name"] = "addkeyitem", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[5] = { ["name"] = "delkeyitem", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[6] = { ["name"] = "setgil", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[7] = { ["name"] = "animation", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[8] = { ["name"] = "zone", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[9] = { ["name"] = "inject", ["path"] = "scripts/commands", ["parameters"] = "s" }; | ||
commands_ini[10] = { ["name"] = "speed", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[11] = { ["name"] = "spawnmob", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[12] = { ["name"] = "timeoffset", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[13] = { ["name"] = "where", ["path"] = "scripts/commands", ["parameters"] = "" }; | ||
commands_ini[14] = { ["name"] = "hp", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[15] = { ["name"] = "mp", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[16] = { ["name"] = "tp", ["path"] = "scripts/commands", ["parameters"] = "i" }; | ||
commands_ini[17] = { ["name"] = "pos", ["path"] = "scripts/commands", ["parameters"] = "iii" }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
//darkstar lan config | ||
map_lan_ip: 127.0.0.1 | ||
map_lan_port: 53999 | ||
|
||
login_lan_ip: 127.0.0.1 | ||
login_lan_port: 53998 | ||
|
||
|
||
wait_time: 10 | ||
connect_try_num: 10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
//Darkstar login server conf | ||
|
||
// login server parametres | ||
|
||
//Time-stamp format which will be printed before all messages. | ||
//Can at most be 20 characters long. | ||
//Common formats: | ||
// %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format) | ||
// %H:%M:%S (hour:minute:second, 24 hour format) | ||
// %d/%b/%Y (day/Month/year) | ||
//For full format information, consult the strftime() manual. | ||
timestamp_format: [%d/%b %H:%M] | ||
|
||
//If redirected output contains escape sequences (color codes) | ||
stdout_with_ansisequence: no | ||
|
||
//Makes server output more silent by ommitting certain types of messages: | ||
//1: Hide Information messages | ||
//2: Hide Status messages | ||
//4: Hide Notice Messages | ||
//8: Hide Warning Messages | ||
//16: Hide Error and SQL Error messages. | ||
//32: Hide Debug Messages | ||
//Example: "console_silent: 7" Hides information, status and notice messages (1+2+4) | ||
console_silent: 0 | ||
|
||
//--------------------------------// | ||
// SQL PARAMETRES // | ||
//--------------------------------// | ||
|
||
mysql_host: 127.0.01 | ||
mysql_port: 3306 | ||
mysql_login: root | ||
mysql_password: root | ||
mysql_database: dspdb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
//Darkstar map server conf | ||
|
||
// map server parametres | ||
|
||
//map server port | ||
map_port: 54230 | ||
|
||
//Time-stamp format which will be printed before all messages. | ||
//Can at most be 20 characters long. | ||
//Common formats: | ||
// %I:%M:%S %p (hour:minute:second 12 hour, AM/PM format) | ||
// %H:%M:%S (hour:minute:second, 24 hour format) | ||
// %d/%b/%Y (day/Month/year) | ||
//For full format information, consult the strftime() manual. | ||
timestamp_format: [%H:%M:%S] | ||
|
||
//If redirected output contains escape sequences (color codes) | ||
stdout_with_ansisequence: no | ||
|
||
//Makes server output more silent by ommitting certain types of messages: | ||
//1: Hide Information messages | ||
//2: Hide Status messages | ||
//4: Hide Notice Messages | ||
//8: Hide Warning Messages | ||
//16: Hide Error and SQL Error messages. | ||
//32: Hide Debug Messages | ||
//64: Hide Lua script messages | ||
//Example: "console_silent: 7" Hides information, status and notice messages (1+2+4) | ||
console_silent: 0 | ||
|
||
|
||
//--------------------------------// | ||
// SQL PARAMETRES // | ||
//--------------------------------// | ||
|
||
mysql_host: 127.0.0.1 | ||
mysql_port: 3306 | ||
mysql_login: root | ||
mysql_password: root | ||
mysql_database: dspdb | ||
|
||
|
||
//--------------------------------// | ||
// Packet settings // | ||
//--------------------------------// | ||
|
||
buff_maxsize: 1874 | ||
|
||
//time_wait_between2recv = 100 ms | ||
|
||
// 60 seconds | ||
max_time_lastupdate: 60000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
// Darkstar tcp sockets Configuration file | ||
|
||
// Display debug reports (When something goes wrong during the report, the report is saved.) | ||
debug: no | ||
|
||
// How long can a socket stall before closing the connection (in seconds) | ||
stall_time: 60 | ||
|
||
//----- IP Rules Settings ----- | ||
|
||
// If IP's are checked when connecting. | ||
// This also enables DDoS protection. | ||
enable_ip_rules: yes | ||
|
||
// Order of the checks | ||
// deny,allow : Checks deny rules, then allow rules. Allows if no rules match. | ||
// allow,deny : Checks allow rules, then deny rules. Allows if no rules match. | ||
// mutual-failure : Allows only if an allow rule matches and no deny rules match. | ||
// (default is deny,allow) | ||
|
||
order: deny,allow | ||
// order: allow,deny | ||
// order: mutual-failture | ||
|
||
// IP rules | ||
// allow : Accepts connections from the ip range (even if flagged as DDoS) | ||
// deny : Rejects connections from the ip range | ||
// The rules are processed in order, the first matching rule of each list (allow and deny) is used | ||
|
||
// allow: 127.0.0.1 | ||
// allow: 192.168.0.0/16 | ||
// allow: 10.0.0.0/255.0.0.0 | ||
// allow: all | ||
|
||
// deny: 127.0.0.1 | ||
|
||
|
||
//---- DDoS Protection Settings ---- | ||
// If ddos_count connection request are made within ddos_interval msec, it assumes it's a DDoS attack | ||
|
||
// Consecutive attempts interval (msec) | ||
// (default is 3000 msecs, 3 seconds) | ||
ddos_interval: 3000 | ||
|
||
// Consecutive attempts trigger | ||
// (default is 5 attemps) | ||
ddos_count: 5 | ||
|
||
// The time interval after which the threat of DDoS is assumed to be gone. (msec) | ||
// After this amount of time, the DDoS restrictions are lifted. | ||
// (default is 600000 msecs, 10 minutes) | ||
ddos_autoreset: 600000 | ||
|
||
|
||
//import: conf/import/packet_conf.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
// Darkstar tcp sockets Configuration file | ||
|
||
// Display debug reports (When something goes wrong during the report, the report is saved.) | ||
debug: no |
Oops, something went wrong.