Permalink
3 comments
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
Initial release of the cash shop sales (#1825)
Added a permission for the cashshop sales Thanks to @Angelic234 and everyone else who tested this feature while it was sleeping waiting in a pull request. Thanks to @aleos89, @secretdataz and @lighta for reviewing and commenting.
- Loading branch information
Showing
with
749 additions
and 20 deletions.
- +1 −0 conf/groups.conf
- +1 −0 conf/inter_athena.conf
- +1 −0 db/import-tmpl/item_cash_db.txt
- +13 −1 db/packet_db.txt
- +1 −0 db/pre-re/item_cash_db.txt
- +1 −0 db/re/item_cash_db.txt
- +12 −0 sql-files/main.sql
- +11 −0 sql-files/upgrades/upgrade_20170215.sql
- +3 −0 src/common/mmo.h
- +380 −5 src/map/cashshop.c
- +44 −9 src/map/cashshop.h
- +270 −5 src/map/clif.c
- +6 −0 src/map/clif.h
- +3 −0 src/map/map.c
- +2 −0 src/map/pc_groups.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
| @@ -293,6 +293,7 @@ groups: ( | ||
| item_unconditional: false | ||
| bypass_stat_onclone: true | ||
| bypass_max_stat: true | ||
| cashshop_sale: true | ||
| /* all_permission: true */ | ||
| } | ||
| } | ||
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
| @@ -13,6 +13,7 @@ | ||
| // 5: Buff | ||
| // 6: Heal | ||
| // 7: Other | ||
| // 8: Sale | ||
| // | ||
| // Price: | ||
| // Item cost, in cash points (#CASHPOINTS). | ||
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
| @@ -13,6 +13,7 @@ | ||
| // 5: Buff | ||
| // 6: Heal | ||
| // 7: Other | ||
| // 8: Sale | ||
| // | ||
| // Price: | ||
| // Item cost, in cash points (#CASHPOINTS). | ||
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
| @@ -13,6 +13,7 @@ | ||
| // 5: Buff | ||
| // 6: Heal | ||
| // 7: Other | ||
| // 8: Sale | ||
| // | ||
| // Price: | ||
| // Item cost, in cash points (#CASHPOINTS). | ||
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,11 @@ | ||
| -- ---------------------------- | ||
| -- Table structure for `sales` | ||
| -- ---------------------------- | ||
|
|
||
| CREATE TABLE IF NOT EXISTS `sales` ( | ||
| `nameid` smallint(5) unsigned NOT NULL, | ||
| `start` datetime NOT NULL, | ||
| `end` datetime NOT NULL, | ||
| `amount` int(11) NOT NULL, | ||
| PRIMARY KEY (`nameid`) | ||
| ) ENGINE=MyISAM; |
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.
aaa4ea9There 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.
DC after trying to insert a new item.
Client: 2016-03-16RagexeRE
Git Hash: 8bdaf1e
aaa4ea9There 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.
@feltenc 2016 clients are not officially supported by rAthena, yet.
aaa4ea9There 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.
Commit message does not mention the fix for an off-by-one crash that's exploitable remotely and on-demand.
Introduced in 2013-06-11 9942072257 by importing the faulty code code from HerculesWS/Hercules@cb9b70e. They patched it in 2015-01-17 HerculesWS/Hercules@348044f12d.