Skip to content

Commit

Permalink
Overhaul of the mob mode system
Browse files Browse the repository at this point in the history
* This rewrite allows for better adaptation from the Aegis Class and Attribute fields.
* Refactored the renewal level penalty function.
* Slaves are now properly assigned an official slave mode of CanWalk, CanAttack, and NoRandomWalk.
* Removed extra Boss checks and adjusted others to use their proper functions.
* Properly implemented Skill Immunity mode to match Aegis.
* Separated MVP and Boss modes.
-- MVP mode defines when mobs should give MEXP, MVP Drops, and show the MVP sign.
-- MVP now have their own item drop configurations.
* Updated the mob_db and mob_skill_db to match the new mode structure.
-- Included a Perl tool (tools/convert_monstermode.pl) to allow people to convert their custom mobs to the new mode structure.
Thanks to @Playtester and @Lemongrass3110 for help with debugging and information!
  • Loading branch information
aleos89 committed Apr 18, 2016
1 parent 6649d2e commit 55e4df1
Show file tree
Hide file tree
Showing 28 changed files with 2,234 additions and 2,063 deletions.
5 changes: 5 additions & 0 deletions conf/battle/drops.conf
Original file line number Diff line number Diff line change
Expand Up @@ -40,30 +40,35 @@ mvp_item_third_get_time: 2000
// The rate the common items are dropped (Items that are in the ETC tab, besides card)
item_rate_common: 100
item_rate_common_boss: 100
item_rate_common_mvp: 100
item_drop_common_min: 1
item_drop_common_max: 10000

// The rate healing items are dropped (items that restore HP or SP)
item_rate_heal: 100
item_rate_heal_boss: 100
item_rate_heal_mvp: 100
item_drop_heal_min: 1
item_drop_heal_max: 10000

// The rate at which usable items (in the item tab) other then healing items are dropped.
item_rate_use: 100
item_rate_use_boss: 100
item_rate_use_mvp: 100
item_drop_use_min: 1
item_drop_use_max: 10000

// The rate at which equipment is dropped.
item_rate_equip: 100
item_rate_equip_boss: 100
item_rate_equip_mvp: 100
item_drop_equip_min: 1
item_drop_equip_max: 10000

// The rate at which cards are dropped
item_rate_card: 100
item_rate_card_boss: 100
item_rate_card_mvp: 100
item_drop_card_min: 1
item_drop_card_max: 10000

Expand Down
3 changes: 2 additions & 1 deletion conf/battle/monster.conf
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,8 @@ force_random_spawn: no
// 1: Slaves are always aggressive.
// 2: Slaves are always passive.
// 3: Same as master's aggressive/passive state.
slaves_inherit_mode: 2
// 4: Mode is overwritten with slave mode (official)
slaves_inherit_mode: 4

// Do summon slaves have the same walking speed as their master?
// NOTE: The default is 3 for official servers.
Expand Down
4 changes: 3 additions & 1 deletion conf/msg_conf/map_msg.conf
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,9 @@
1022: Please enter ban time and a player name (usage: %s <time> <char name>).
1023: You are not allowed to alter the time of a ban.

//1024: free
// @rates
1024: MVP Drop Rates: Common %.2fx / Healing %.2fx / Usable %.2fx / Equipment %.2fx / Card %.2fx

//1025: free

// @kick
Expand Down
930 changes: 465 additions & 465 deletions db/pre-re/mob_db.txt

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions db/pre-re/mob_race2_db.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Monster Racial Groups Database
//
// Structure of Database:
// Race2ID,MobID1,MobID2,MobID3,...,MobID9
// Race2ID,MobID1,MobID2,MobID3,...,MobID50

// Goblins
1,1122,1123,1124,1125,1126,1258,1299
Expand All @@ -12,6 +12,12 @@
// Golems
4,1040,1278,1366,1497,2024
// Guardians
5,1285,1286,1287
5,1285,1286,1287,2081
// Ninja Classes (Pirate's_Pride)
6,1315,1364,1401,1560
// GvG
7,1143,1905,1906,1907
// Battlefield
8,1906,1909,1914,1915
// Treasure Chests
9,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1938,1939,1940,1941,1942,1943,1944,1945,1946
118 changes: 59 additions & 59 deletions db/pre-re/mob_skill_db.txt

Large diffs are not rendered by default.

74 changes: 37 additions & 37 deletions db/re/level_penalty.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,50 +11,50 @@
// Note: RENEWAL_DROP and/or RENEWAL_EXP must be enabled.

// EXP modifiers due to level difference
1,0,16,40
1,0,15,115
1,0,14,120
1,0,13,125
1,0,12,130
1,0,11,135
1,0,10,140
1,0,9,135
1,0,8,130
1,0,7,125
1,0,6,120
1,0,5,115
1,0,4,110
1,0,3,105
1,0,0,100
1,0,-1,100
1,0,-6,95
1,0,-11,90
1,0,-16,85
1,0,-21,60
1,0,-26,35
1,0,-31,10
1,CLASS_NORMAL,16,40
1,CLASS_NORMAL,15,115
1,CLASS_NORMAL,14,120
1,CLASS_NORMAL,13,125
1,CLASS_NORMAL,12,130
1,CLASS_NORMAL,11,135
1,CLASS_NORMAL,10,140
1,CLASS_NORMAL,9,135
1,CLASS_NORMAL,8,130
1,CLASS_NORMAL,7,125
1,CLASS_NORMAL,6,120
1,CLASS_NORMAL,5,115
1,CLASS_NORMAL,4,110
1,CLASS_NORMAL,3,105
1,CLASS_NORMAL,0,100
1,CLASS_NORMAL,-1,100
1,CLASS_NORMAL,-6,95
1,CLASS_NORMAL,-11,90
1,CLASS_NORMAL,-16,85
1,CLASS_NORMAL,-21,60
1,CLASS_NORMAL,-26,35
1,CLASS_NORMAL,-31,10

// Boss Type
1,1,0,100
1,CLASS_BOSS,0,100

// Guardian Type
1,2,0,100
1,CLASS_GUARDIAN,0,100

// Drop rate modifiers due to level difference
2,0,16,50
2,0,13,60
2,0,10,70
2,0,7,80
2,0,4,90
2,0,0,100
2,0,-4,90
2,0,-7,80
2,0,-10,70
2,0,-13,60
2,0,-16,50
2,CLASS_NORMAL,16,50
2,CLASS_NORMAL,13,60
2,CLASS_NORMAL,10,70
2,CLASS_NORMAL,7,80
2,CLASS_NORMAL,4,90
2,CLASS_NORMAL,0,100
2,CLASS_NORMAL,-4,90
2,CLASS_NORMAL,-7,80
2,CLASS_NORMAL,-10,70
2,CLASS_NORMAL,-13,60
2,CLASS_NORMAL,-16,50

// Boss Type
2,1,0,100
2,CLASS_BOSS,0,100

// Guardian Type
2,2,0,100
2,CLASS_GUARDIAN,0,100
1,980 changes: 990 additions & 990 deletions db/re/mob_db.txt

Large diffs are not rendered by default.

10 changes: 8 additions & 2 deletions db/re/mob_race2_db.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Monster Racial Groups Database
//
// Structure of Database:
// Race2ID,MobID1,MobID2,MobID3,...,MobID9
// Race2ID,MobID1,MobID2,MobID3,...,MobID50

// Goblins
1,1122,1123,1124,1125,1126,1258,1299
Expand All @@ -12,6 +12,12 @@
// Golems
4,1040,1278,1366,1497,2024
// Guardians
5,1285,1286,1287
5,1285,1286,1287,2081
// Ninja Classes (Pirate's_Pride)
6,1315,1364,1401,1560
// GvG
7,1143,1905,1906,1907
// Battlefield
8,1906,1909,1914,1915
// Treasure Chests
9,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1938,1939,1940,1941,1942,1943,1944,1945,1946
Loading

0 comments on commit 55e4df1

Please sign in to comment.