Permalink
1 comment
on commit
sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Basic RODEX support (#2186)
Adds basic support for the new mail UI RODEX. Fixes #1567 Thanks to @RagnarokNova, @Atemo, @aleos89 and everyone else that helped me with this. Additionally I would like to thank @jezznar and @hazimjauhari90 for their good testing in the pull request.
- Loading branch information
Showing
with
1,683 additions
and 461 deletions.
- +23 −0 conf/battle/misc.conf
- +15 −0 conf/char_athena.conf
- +1 −0 conf/inter_athena.conf
- +23 −14 db/packet_db.txt
- +39 −9 doc/packet_interserv.txt
- +6 −0 doc/script_commands.txt
- +11 −0 npc/other/mail.txt
- +37 −26 sql-files/main.sql
- +76 −0 sql-files/upgrades/upgrade_20170620.sql
- +31 −3 src/char/char.c
- +3 −0 src/char/char.h
- +10 −10 src/char/int_auction.c
- +320 −169 src/char/int_mail.c
- +4 −1 src/char/int_mail.h
- +1 −1 src/char/inter.c
- +23 −1 src/common/mmo.h
- +4 −0 src/map/battle.c
- +4 −0 src/map/battle.h
- +639 −105 src/map/clif.c
- +16 −5 src/map/clif.h
- +1 −0 src/map/date.h
- +90 −33 src/map/intif.c
- +3 −2 src/map/intif.h
- +240 −75 src/map/mail.c
- +20 −4 src/map/mail.h
- +1 −1 src/map/pc.c
- +6 −2 src/map/pc.h
- +20 −0 src/map/script.c
- +1 −0 src/map/script_constants.h
- +3 −0 src/map/skill.c
- +10 −0 src/map/status.c
- +2 −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
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
| @@ -108,6 +108,7 @@ party_db: party | ||
| pet_db: pet | ||
| friend_db: friends | ||
| mail_db: mail | ||
| mail_attachment_db: mail_attachments | ||
| auction_db: auction | ||
| quest_db: quest | ||
| homunculus_db: homunculus | ||
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,76 @@ | ||
| -- ---------------------------- | ||
| -- Table structure for `mail_attachments` | ||
| -- ---------------------------- | ||
|
|
||
| CREATE TABLE IF NOT EXISTS `mail_attachments` ( | ||
| `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, | ||
| `index` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `nameid` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `amount` int(11) unsigned NOT NULL DEFAULT '0', | ||
| `refine` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
| `attribute` tinyint(4) unsigned NOT NULL DEFAULT '0', | ||
| `identify` smallint(6) NOT NULL DEFAULT '0', | ||
| `card0` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `card1` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `card2` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `card3` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_id0` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_val0` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_parm0` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
| `option_id1` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_val1` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_parm1` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
| `option_id2` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_val2` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_parm2` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
| `option_id3` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_val3` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_parm3` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
| `option_id4` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_val4` smallint(5) unsigned NOT NULL DEFAULT '0', | ||
| `option_parm4` tinyint(3) unsigned NOT NULL DEFAULT '0', | ||
| `unique_id` bigint(20) unsigned NOT NULL DEFAULT '0', | ||
| `bound` tinyint(1) unsigned NOT NULL DEFAULT '0', | ||
| PRIMARY KEY (`id`,`index`) | ||
| ) ENGINE=MyISAM; | ||
|
|
||
| insert into `mail_attachments` | ||
| (`id`,`index`,`nameid`,`amount`,`refine`,`attribute`,`identify`,`card0`,`card1`,`card2`,`card3`,`option_id0`,`option_val0`,`option_parm0`,`option_id1`,`option_val1`,`option_parm1`,`option_id2`,`option_val2`,`option_parm2`,`option_id3`,`option_val3`,`option_parm3`,`option_id4`,`option_val4`,`option_parm4`,`unique_id`,`bound`) | ||
| select | ||
| `id`,'0',`nameid`,`amount`,`refine`,`attribute`,`identify`,`card0`,`card1`,`card2`,`card3`,`option_id0`,`option_val0`,`option_parm0`,`option_id1`,`option_val1`,`option_parm1`,`option_id2`,`option_val2`,`option_parm2`,`option_id3`,`option_val3`,`option_parm3`,`option_id4`,`option_val4`,`option_parm4`,`unique_id`,`bound` | ||
| from `mail` | ||
| where `nameid` <> 0; | ||
|
|
||
| alter table `mail` | ||
| drop column `nameid`, | ||
| drop column `amount`, | ||
| drop column `refine`, | ||
| drop column `attribute`, | ||
| drop column `identify`, | ||
| drop column `card0`, | ||
| drop column `card1`, | ||
| drop column `card2`, | ||
| drop column `card3`, | ||
| drop column `option_id0`, | ||
| drop column `option_val0`, | ||
| drop column `option_parm0`, | ||
| drop column `option_id1`, | ||
| drop column `option_val1`, | ||
| drop column `option_parm1`, | ||
| drop column `option_id2`, | ||
| drop column `option_val2`, | ||
| drop column `option_parm2`, | ||
| drop column `option_id3`, | ||
| drop column `option_val3`, | ||
| drop column `option_parm3`, | ||
| drop column `option_id4`, | ||
| drop column `option_val4`, | ||
| drop column `option_parm4`, | ||
| drop column `unique_id`, | ||
| drop column `bound`; | ||
|
|
||
| alter table `mail` | ||
| modify `message` varchar(500) NOT NULL default ''; | ||
|
|
||
| ALTER TABLE `mail` | ||
| ADD COLUMN `type` smallint(5) NOT NULL default '0'; |
Oops, something went wrong.
58776daThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I receive some warnings while compiling on Ubuntu 16.04.2 x64