Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Initial release of the Achievement System (#2044)
* Information based on kRO patch notes. - http://ro.gnjoy.com/news/update/View.asp?seq=163&curpage=1 * Includes Title System which is integrated into the Achievement System. * Includes RODEX integration for rewards. * Added new atcommand reloadachievementdb. * Added new script commands achievementinfo, achievementadd, achievementremove, achievementcomplete, and achievementexists. Thanks to @Lux-uri, @RagnarokNova, @Lemongrass3110, and @Tokeiburu for their help!
- Loading branch information
Showing
with
8,032 additions
and 55 deletions.
- +4 −2 .travis.yml
- +2 −2 3rdparty/yaml-cpp/src/contrib/graphbuilderadapter.h
- +4 −4 3rdparty/yaml-cpp/src/singledocparser.cpp
- +3 −3 Makefile.in
- +4 −0 conf/battle/feature.conf
- +5 −0 conf/msg_conf/char_msg.conf
- +7 −1 conf/msg_conf/map_msg.conf
- +78 −0 db/import-tmpl/achievement_db.yml
- +2,407 −0 db/pre-re/achievement_db.yml
- +2,407 −0 db/re/achievement_db.yml
- +1 −1 db/re/item_db.txt
- +102 −0 doc/achievements.txt
- +4 −1 doc/atcommands.txt
- +21 −0 doc/packet_interserv.txt
- +66 −0 doc/script_commands.txt
- +278 −0 npc/re/other/achievements.txt
- +1 −0 npc/re/scripts_athena.conf
- +24 −0 sql-files/main.sql
- +25 −0 sql-files/upgrades/upgrade_20170407.sql
- +2 −0 src/char/char-server.vcxproj
- +6 −0 src/char/char-server.vcxproj.filters
- +22 −7 src/char/char.cpp
- +1 −0 src/char/char.h
- +344 −0 src/char/int_achievement.c
- +9 −0 src/char/int_achievement.h
- +6 −2 src/char/int_mail.c
- +1 −1 src/char/int_mail.h
- +3 −1 src/char/inter.c
- +20 −10 src/common/Makefile.in
- +6 −0 src/common/core.cpp
- +16 −0 src/common/mmo.h
- +10 −0 src/common/sql.c
- +7 −0 src/common/sql.h
- +57 −5 src/common/yamlwrapper.cpp
- +7 −1 src/common/yamlwrapper.h
- +15 −6 src/map/Makefile.in
- +1,268 −0 src/map/achievement.c
- +135 −0 src/map/achievement.h
- +9 −0 src/map/atcommand.c
- +8 −0 src/map/battle.c
- +1 −0 src/map/battle.h
- +9 −0 src/map/chat.c
- +2 −0 src/map/chrif.c
- +183 −1 src/map/clif.c
- +7 −0 src/map/clif.h
- +2 −2 src/map/clif_packetdb.h
- +161 −1 src/map/intif.c
- +6 −0 src/map/intif.h
- +3 −0 src/map/map-server.vcxproj
- +6 −0 src/map/map-server.vcxproj.filters
- +3 −4 src/map/map.cpp
- +4 −0 src/map/mob.c
- +3 −0 src/map/party.c
- +30 −0 src/map/pc.c
- +15 −0 src/map/pc.h
- +2 −0 src/map/pet.c
- +146 −0 src/map/script.c
- +2 −0 src/map/script.h
- +43 −0 src/map/script_constants.h
- +3 −0 src/map/skill.c
- +4 −0 src/map/unit.c
- +2 −0 src/map/vending.c
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
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
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
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
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
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
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
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
| @@ -0,0 +1,78 @@ | ||
| # This file is a part of rAthena. | ||
| # Copyright(C) 2017 rAthena Development Team | ||
| # https://rathena.org - https://github.com/rathena | ||
| # | ||
| # This program 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 3 of the License, or | ||
| # (at your option) any later version. | ||
| # | ||
| # This program 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 General Public License for more details. | ||
| # | ||
| # You should have received a copy of the GNU General Public License | ||
| # along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
| # | ||
| ########################################################################### | ||
| # Custom Achievement Database | ||
| ########################################################################### | ||
| # | ||
| # Achievement Settings | ||
| # | ||
| ########################################################################### | ||
| # Id - Unique achievement ID. | ||
| ########################################################################### | ||
| # Group - Achievement group type. Each achievement type calls a specific | ||
| # objective check. | ||
| # Valid groups: | ||
| # AG_ADD_FRIEND | ||
| # AG_ADVENTURE | ||
| # AG_BABY | ||
| # AG_BATTLE | ||
| # AG_CHATTING | ||
| # AG_CHATTING_COUNT | ||
| # AG_CHATTING_CREATE | ||
| # AG_CHATTING_DYING | ||
| # AG_EAT | ||
| # AG_GET_ITEM | ||
| # AG_GET_ZENY | ||
| # AG_GOAL_ACHIEVE | ||
| # AG_GOAL_LEVEL | ||
| # AG_GOAL_STATUS | ||
| # AG_HEAR | ||
| # AG_JOB_CHANGE | ||
| # AG_MARRY | ||
| # AG_PARTY | ||
| # AG_ENCHANT_FAIL | ||
| # AG_ENCHANT_SUCCESS | ||
| # AG_SEE | ||
| # AG_SPEND_ZENY | ||
| # AG_TAMING | ||
| ########################################################################### | ||
| # Name - Achievement name. Used when sending rewards through RODEX. | ||
| ########################################################################### | ||
| # Target - A list of monster ID and count values that the achievement | ||
| # requires. The target count can also be used for achievements that keep | ||
| # a counter while not being related to monster kills. | ||
| # Capped at MAX_ACHIEVEMENT_OBJECTIVES. | ||
| ########################################################################### | ||
| # Condition - A conditional statement that must be met for the achievement | ||
| # to be considered complete. | ||
| ########################################################################### | ||
| # Map - A map name that is used for the AG_CHATTING type which increments | ||
| # the counter based on the player's map. | ||
| ########################################################################### | ||
| # Dependent: - A list of achievement IDs that need to be completed before | ||
| # this achievement is considered complete. | ||
| ########################################################################### | ||
| # Reward - A list of rewards that are given on completion. All fields are | ||
| # optional. | ||
| # ItemId: Item ID | ||
| # Amount: Amount of Item ID (default 1) | ||
| # Script: Bonus Script | ||
| # TitleId: Title ID | ||
| ########################################################################### | ||
| # Score - Achievement points that are given on completion. | ||
| ########################################################################### |
Oops, something went wrong.