Permalink
2 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
Merge pull request #40 from Lemongrass3110/master
Added autotrade persistence support. - Players who are autotrading during a crash/shut down will be restored on start up. - Live vendor data is stored in SQL. - Credits to Ind and Lemongrass.
- Loading branch information
Showing
with
400 additions
and 37 deletions.
- +12 −0 conf/battle/feature.conf
- +2 −0 conf/inter_athena.conf
- +1 −1 npc/quests/quests_13_1.txt
- +1 −1 npc/quests/quests_13_2.txt
- +3 −3 npc/quests/quests_louyang.txt
- +2 −2 npc/quests/quests_morocc.txt
- +21 −0 sql-files/main.sql
- +20 −0 sql-files/upgrades/upgrade_20140114.sql
- +27 −9 src/char/char.c
- +9 −0 src/map/atcommand.c
- +3 −0 src/map/battle.c
- +5 −0 src/map/battle.h
- +2 −0 src/map/channel.c
- +20 −8 src/map/chrif.c
- +1 −1 src/map/chrif.h
- +4 −2 src/map/clif.c
- +1 −1 src/map/guild.c
- +6 −0 src/map/map.c
- +2 −0 src/map/map.h
- +2 −2 src/map/mob.c
- +6 −2 src/map/pc.c
- +2 −2 src/map/skill.c
- +2 −2 src/map/status.c
- +243 −0 src/map/vending.c
- +3 −1 src/map/vending.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
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
| @@ -2548,7 +2548,7 @@ OnTouch: | ||
| } | ||
| } | ||
|
|
||
| spl_in02,236,86,0 warp terrashome_out 1,1,splendide,285,139 | ||
|
|
||
| spl_fild01,357,44,0 script ???#ep13mdf01 844,{ | ||
| if (checkweight(1201,2) == 0) { | ||
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,20 @@ | ||
| CREATE TABLE IF NOT EXISTS `vending_items` ( | ||
| `vending_id` int(10) unsigned NOT NULL, | ||
| `index` smallint(5) unsigned NOT NULL, | ||
| `cartinventory_id` int(10) unsigned NOT NULL, | ||
| `amount` smallint(5) unsigned NOT NULL, | ||
| `price` int(10) unsigned NOT NULL | ||
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; | ||
|
|
||
| CREATE TABLE IF NOT EXISTS `vendings` ( | ||
| `id` int(10) unsigned NOT NULL, | ||
| `account_id` int(11) unsigned NOT NULL, | ||
| `char_id` int(10) unsigned NOT NULL, | ||
| `sex` enum('F','M') NOT NULL DEFAULT 'M', | ||
| `map` varchar(20) NOT NULL, | ||
| `x` smallint(5) unsigned NOT NULL, | ||
| `y` smallint(5) unsigned NOT NULL, | ||
| `title` varchar(80) NOT NULL, | ||
| `autotrade` tinyint(4) NOT NULL, | ||
| PRIMARY KEY (`id`) | ||
| ) ENGINE=MyISAM DEFAULT CHARSET=latin1; |
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
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.
27cbc7fThere 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.
Great work, @Lemongrass3110! ^^
27cbc7fThere 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.
Nice commit🍰
What about the 'battle_config.at_timeout' check?
Will it be restarted upon server restart, or resume the timer?