Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Elemental Updates:
- Updated elemental_db, now in libconfig format. (and its more configurable can add up to 7 more elemental each 4~10 level of SO_SUMMON_AGNI/AQUA/VENTUS/TERA) - Updated elemental to official status formula. - Updated elemental summoning to official behavior Signed-off-by: malufett <malufett.eat.my.binaries@gmail.com>
- Loading branch information
Showing
with
799 additions
and 586 deletions.
- +135 −0 db/elemental_db.conf
- +0 −24 db/elemental_db.txt
- +2 −2 db/mob_db.conf
- +18 −6 db/skill_cast_db.txt
- +1 −1 db/skill_require_db.txt
- +21 −4 sql-files/main.sql
- +22 −0 sql-files/upgrades/2016-04-16--00-00.sql
- +5 −2 src/char/char.c
- +1 −0 src/char/char.h
- +112 −27 src/char/int_elemental.c
- +1 −1 src/char/inter.c
- +4 −0 src/char/mapif.c
- +2 −0 src/char/mapif.h
- +0 −1 src/common/HPMDataCheck.h
- +13 −4 src/common/mmo.h
- +0 −1 src/map/atcommand.c
- +6 −0 src/map/battle.c
- +1 −2 src/map/clif.c
- +205 −376 src/map/elemental.c
- +14 −28 src/map/elemental.h
- +110 −1 src/map/intif.c
- +4 −0 src/map/intif.h
- +1 −1 src/map/mob.h
- +26 −81 src/map/skill.c
- +89 −24 src/map/status.c
- +6 −0 src/map/status.h
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
| @@ -0,0 +1,135 @@ | ||
| //================= RagEmu Database ======================================= | ||
| //= ______ _____ | ||
| //= | ___ \ | ___| | ||
| //= | |_/ /__ _ __ _| |__ _ __ ___ _ _ | ||
| //= | // _` |/ _` | __| '_ ` _ \| | | | | ||
| //= | |\ \ (_| | (_| | |__| | | | | | |_| | | ||
| //= \_| \_\__,_|\__, \____/_| |_| |_|\__,_| | ||
| //= __/ | | ||
| //= |___/ | ||
| //= | ||
| //================= License =============================================== | ||
| //= This file is part of RagEmu. | ||
| //= http://ragemu.org - https://github.com/RagEmu/Renewal | ||
| //= | ||
| //= Copyright (C) 2016 RagEmu Dev Team | ||
| //= | ||
| //= RagEmu 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/>. | ||
| //================= More Information ================= | ||
| // | ||
| //================ Structure Example ================= | ||
| /* | ||
| <Elemental Type>: { // Elemental Types (KIND_AGNI, KIND AQUA, KIND_VENTUS, KIND_TERA) | ||
| <Sprite Name>: { // Monster Sprite Name from `mob_db.conf` or `mob_db2.conf` | ||
| Scale: 1 // At what skill level does the elemental activate | ||
| // Note: to add more skill must increase MAX_EL_SKILL in `mmo.h` | ||
| // Note: Passive and Defensive options can't trigger offensive target type skill | ||
| Passive: { | ||
| <Skill_1 Name>: <Skill_1 Level> // Skill Names that can be found in `skill_db.txt` | ||
| <Skill_2 Name>: <Skill_2 Level> ... | ||
| } | ||
| Defensive: { | ||
| <Skill_1 Name>: <Skill_1 Level> | ||
| <Skill_2 Name>: <Skill_2 Level> ... | ||
| } | ||
| Offensive: { | ||
| <Skill_1 Name>: <Skill_1 Level> | ||
| <Skill_2 Name>: <Skill_2 Level> ... | ||
| } | ||
| } | ||
| } | ||
| */ | ||
| elemental: ( | ||
| { | ||
| KIND_AGNI: { | ||
| EL_AGNI_S: { | ||
| Scale: 1 | ||
| Passive: { EL_PYROTECHNIC:1 } | ||
| Defensive: { EL_CIRCLE_OF_FIRE:1 } | ||
| Offensive: { EL_FIRE_ARROW:1 } | ||
| } | ||
| EL_AGNI_M: { | ||
| Scale: 2 | ||
| Passive: { EL_HEATER:1 } | ||
| Defensive: { EL_FIRE_CLOAK:1 } | ||
| Offensive: { EL_FIRE_BOMB:1 } | ||
| } | ||
| EL_AGNI_L: { | ||
| Scale: 3 | ||
| Passive: { EL_TROPIC:1 } | ||
| Defensive: { EL_FIRE_MANTLE:1 } | ||
| Offensive: { EL_FIRE_WAVE:1 } | ||
| } | ||
| } | ||
| KIND_AQUA: { | ||
| EL_AQUA_S: { | ||
| Scale: 1 | ||
| Passive: { EL_AQUAPLAY:1 } | ||
| Defensive: { EL_WATER_SCREEN:1 } | ||
| Offensive: { EL_ICE_NEEDLE:1 } | ||
| } | ||
| EL_AQUA_M: { | ||
| Scale: 2 | ||
| Passive: { EL_COOLER:1 } | ||
| Defensive: { EL_WATER_DROP:1 } | ||
| Offensive: { EL_WATER_SCREW:1 } | ||
| } | ||
| EL_AQUA_L: { | ||
| Scale: 3 | ||
| Passive: { EL_CHILLY_AIR:1 } | ||
| Defensive: { EL_WATER_BARRIER:1 } | ||
| Offensive: { EL_TIDAL_WEAPON:1 } | ||
| } | ||
| } | ||
| KIND_VENTUS: { | ||
| EL_VENTUS_S: { | ||
| Scale: 1 | ||
| Passive: { EL_GUST:1 } | ||
| Defensive: { EL_WIND_STEP:1 } | ||
| Offensive: { EL_WIND_SLASH:1 } | ||
| } | ||
| EL_VENTUS_M: { | ||
| Scale: 2 | ||
| Passive: { EL_BLAST:1 } | ||
| Defensive: { EL_WIND_CURTAIN:1 } | ||
| Offensive: { EL_HURRICANE:1 } | ||
| } | ||
| EL_VENTUS_L: { | ||
| Scale: 3 | ||
| Passive: { EL_WILD_STORM:1 } | ||
| Defensive: { EL_ZEPHYR:1 } | ||
| Offensive: { EL_TYPOON_MIS:1 } | ||
| } | ||
| } | ||
| KIND_TERA: { | ||
| EL_TERA_S: { | ||
| Scale: 1 | ||
| Passive: { EL_PETROLOGY:1 } | ||
| Defensive: { EL_SOLID_SKIN:1 } | ||
| Offensive: { EL_STONE_HAMMER:1 } | ||
| } | ||
| EL_TERA_M: { | ||
| Scale: 2 | ||
| Passive: { EL_CURSED_SOIL:1 } | ||
| Defensive: { EL_STONE_SHIELD:1 } | ||
| Offensive: { EL_ROCK_CRUSHER:1 } | ||
| } | ||
| EL_TERA_L: { | ||
| Scale: 3 | ||
| Passive: { EL_UPHEAVAL:1 } | ||
| Defensive: { EL_POWER_OF_GAIA:1 } | ||
| Offensive: { EL_STONE_RAIN:1 } | ||
| } | ||
| } | ||
| }) |
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,22 @@ | ||
| #1429056000 | ||
| ALTER TABLE `elemental` | ||
| CHANGE COLUMN `atk1` `atk` MEDIUMINT(6) UNSIGNED NOT NULL DEFAULT 0, | ||
| DROP COLUMN `atk2`, | ||
| CHANGE COLUMN `class` `kind` SMALLINT(1) NOT NULL, | ||
| CHANGE COLUMN `mode` `scale` SMALLINT(1) NOT NULL; | ||
|
|
||
| CREATE TABLE IF NOT EXISTS `elemental_sc` ( | ||
| `ele_id` INT(11) UNSIGNED NOT NULL, | ||
| `char_id` INT(11) UNSIGNED NOT NULL, | ||
| `type` SMALLINT(11) UNSIGNED NOT NULL, | ||
| `tick` INT(11) NOT NULL, | ||
| `val1` INT(11) NOT NULL DEFAULT 0, | ||
| `val2` INT(11) NOT NULL DEFAULT 0, | ||
| `val3` INT(11) NOT NULL DEFAULT 0, | ||
| `val4` INT(11) NOT NULL DEFAULT 0, | ||
| KEY (`ele_id`), | ||
| KEY (`char_id`), | ||
| PRIMARY KEY (`ele_id`,`char_id`, `type`) | ||
| )ENGINE=MyISAM; | ||
|
|
||
| INSERT INTO `sql_updates` (`timestamp`) VALUES (1429056000); |
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
Oops, something went wrong.