kamilprzyb
a1efbcf983
removed blob parsing functions that ended up being unused
2020-09-17 10:40:18 +02:00
kamilprzyb
afc7768577
adjusted saving active missions
2020-09-17 10:38:18 +02:00
kamilprzyb
4d02668add
fixed mission quit:
...
- fixed wrong json name, causing qitems not deleting properly
- quitting mission now resets npc kill count
2020-09-16 23:41:25 +02:00
kamilprzyb
0e19603eab
fixed dbsaveinterval being in [login] instead of [shard]
2020-09-16 16:27:26 +02:00
kamilprzyb
97b13458ff
INFO DB message now shows how many accounts and player characters are in the database
2020-09-16 11:17:24 +02:00
kamilprzyb
c41cf036ef
implemented saving warplocationflag, skywaylocationflag and currentmissionid in database
2020-09-16 11:00:53 +02:00
kamilprzyb
b2da864032
removed unneccesary include
2020-09-15 23:23:40 +02:00
kamilprzyb
f467617c2f
saving active missions works
2020-09-15 23:17:37 +02:00
kamilprzyb
76fa7b154b
added sanity check for missionId
2020-09-15 18:36:48 +02:00
kamilprzyb
ced837a528
Quest items are stored in inventory table instead of blob
2020-09-15 18:31:33 +02:00
kamilprzyb
6e1a4e2ea7
WIP saving quest items and active tasks
2020-09-15 00:45:55 +02:00
kamilprzyb
b35f1a48c0
added functions for parsing int16->blob and vice versa
2020-09-15 00:16:31 +02:00
kamilprzyb
293cd5d32f
added functions for parsing int32->blob and vice versa
2020-09-15 00:13:02 +02:00
kamilprzyb
4e32663cab
moved parsing blob->int64 to a separate function
2020-09-15 00:03:13 +02:00
kamilprzyb
deebc2f51a
moved int64->blob parsing to a separate function
2020-09-14 23:43:39 +02:00
kamilprzyb
b6cce78016
implemented saving mentor
2020-09-14 23:19:14 +02:00
kamilprzyb
10dc5721c0
implemented saving BatteryN and BatteryW
2020-09-14 23:01:57 +02:00
4d21410980
Merge PR #87
2020-09-14 18:42:03 +02:00
Gent
148d90f4f1
"Boosts and potions!"
...
Fixed crate opening such that the item has an iOpt of 1.
2020-09-14 18:36:50 +02:00
Gent
a976fef2b4
Implement vendor stack logic
2020-09-14 10:25:15 -04:00
Gent
da8c833587
Implement buyback
...
Sellability tweak
Add additional item categories
2020-09-14 10:25:15 -04:00
Gent
c91022030c
Load item tables + price implementation
2020-09-14 10:25:15 -04:00
Gent
f55cc8f36d
Load vendor tables
2020-09-14 10:24:55 -04:00
9cc5f3e4d5
Cleaned up comment formatting.
...
The incantation was: sed -i 's://\([^ ]\):// \1:' src/*.[ch]pp
Lines of code that was commented out were then manually reverted.
2020-09-14 16:07:05 +02:00
131997f34f
Cleaned up all whitespace issues.
...
The incantation was: sed -i 's/[ \t]*$//g' src/*.[ch]pp
2020-09-14 16:07:05 +02:00
ed86bc9160
Assorted cleanups and fixes.
...
* Clean up spacing/indentation
* Proper enum formatting
* Fix nano dismissal (for real this time)
* Do not copy Player struct when a pointer is right there
* Stop looking after the trade partner has been found
* Make sure we're shifting unsigned values (and 64-bit when they need to be)
* Look for JSONs in tdata/
* Add a dbsaveinterval to the example config.ini, in the login category
2020-09-14 16:07:05 +02:00
darkredtitan
38d5998a6e
Sanity checks for creating and deleting characters.
...
Co-authored-by: kamilprzyb <kamilprzybspam@wp.pl>
2020-09-14 16:07:02 +02:00
kamilprzyb
c7189a5cef
added saving missions
2020-09-14 16:07:02 +02:00
kamilprzyb
de15e2004b
added bank functionality, refactored itemMoveHandler
...
Co-authored-by: Cake Lancelot <CakeLancelot@users.noreply.github.com>
2020-09-14 16:07:02 +02:00
darkredtitan
480cca82fa
Make name checking case insensitive.
...
Co-authored-by: kamilprzyb <kamilprzybspam@wp.pl>
2020-09-14 16:06:57 +02:00
kamilprzyb
3d83f93167
added periodic DB saves, fixed some settings
2020-09-14 01:38:27 +02:00
kamilprzyb
1d9a7139a8
deleteing player deletes inventory and nanos, minor tweaks to settings
2020-09-14 01:38:27 +02:00
kamilprzyb
2fd7a8c6fc
Implemented saving inventory and nanos
2020-09-14 01:38:27 +02:00
kamilprzyb
fc57cae37d
added saving character when a connection with shard is killed
2020-09-14 01:38:04 +02:00
Gent Semaj
3cfec7aab3
Implement transportation framework + full S.C.A.M.P.E.R. functionality ( #86 )
...
* Add transportation registration
* Add S.C.A.M.P.E.R. functionality
Co-authored-by: dongresource <dongresource@protonmail.com>
2020-09-13 22:26:16 +02:00
CakeLancelot
29e53117e7
Merge pull request #72 from FinnHornhoover/msys-mingw-compile-fix
...
Warnings and compile errors for MSYS2 MinGW64
2020-09-13 07:35:32 -05:00
c1ac2250a0
Minor changes.
...
This was me fixing a few bugs and finding that Gent was working on some
of the same ones, then awkwardly merging the changes together.
2020-09-12 22:43:04 +02:00
a4716b0164
Merge pull request #82 from gsemaj/nanos
...
Improve revival code
2020-09-12 22:10:49 +02:00
FinnHornhoover
91f512d740
added version checking for GCC
2020-09-12 22:27:03 +03:00
Gent
4880e4af12
Revamp revival code
2020-09-12 14:21:36 -04:00
fe370df534
Merge pull request #81 from gsemaj/auth
...
Validate cookie data
2020-09-12 18:03:26 +02:00
Gent
2b1a028b3d
Validate cookie data
2020-09-12 11:41:31 -04:00
be99714495
Possible fix for the login error bug.
2020-09-12 17:09:11 +02:00
4c06163b51
Properly validate vendor logic.
...
Also, iTimeLimit should be 0.
2020-09-12 16:10:53 +02:00
0c97969757
Merge pull request #80 from gsemaj/vendor2
...
Add sell functionality to vendors
2020-09-12 16:01:23 +02:00
Gent
4e7352da66
Add sell functionality to vendors
2020-09-11 22:04:23 -04:00
5747c24479
[bugfix] Don't set iType on empty item slots.
...
This confuses ItemManager::findFreeSlot().
2020-09-12 02:25:45 +02:00
579aa9d31d
Save pointer to Player struct in CNSocket.
...
This is an insignificant optimization now, but will be necessary when we
start switching around the the algorithms and datastructures used in
proximity detection.
2020-09-12 01:22:58 +02:00
Ariii
3865249387
Vendors, set nano skill command + serverside command issues fixed ( #74 )
...
Added basic shopkeeper functions, a player can buy the preset 3 items (cannonbolt set), all shopkeepers have the same items atm (need to check the shopkeeper tabledata), setting itemprice is something I didn't figure out.
Added set nano skill command
Implemented a switch for certain commands like health/taros/fusionmatter etc to be handled on the serverside aswell
Co-authored-by: dongresource <dongresource@protonmail.com>
2020-09-11 23:19:03 +02:00
468840c9ea
Fixed gcc vs clang preprocessor tomfoolery.
2020-09-11 00:19:21 +02:00