317 Commits

Author SHA1 Message Date
Robert Paciorek
e88a5db3bf more friendly response for profile not found 2023-09-13 14:57:45 +02:00
Robert Paciorek
31a985334d fix: missing rewards for Friendship2023Story02 2023-09-13 14:57:45 +02:00
Robert Paciorek
31cf0915d3 add AchievementPointType = 11 (Trophies) 2023-09-13 14:57:45 +02:00
Robert Paciorek
0c41722d14 fix: Chimeragon Racing Saddle stays in the shop... 2023-09-13 14:57:45 +02:00
Robert Paciorek
70a28f4d1b bugfix: fuse item from inventory blueprint 2023-09-13 14:57:45 +02:00
Robert Paciorek
c6ad11b5d7 support for random quantity box prize
- add ItemService.GetItemQuantity
- add ItemService.CheckAndOpenBox and new form of ItemService.OpenBox
- add runes to DT rewards
2023-09-13 14:57:45 +02:00
Robert Paciorek
e57e5ad44b add int overflow protection for achievement values 2023-09-13 14:57:45 +02:00
Robert Paciorek
9b1609c6ad repeatable mission support 2023-09-13 14:57:45 +02:00
Robert Paciorek
ed8cba8159 bugfixes: removing item in SetCommonInventory, ...
- fix removing item from inventtory in SetCommonInventory (regresion after switch to InventoryService)
- fix null exception in SellItem on invalid UserInventoryCommonIDs
- remove unused fields in AchievementService (are in AchievementStoreSingleton)
2023-09-05 07:46:44 +02:00
Robert Paciorek
883fbd2181 add missing RedeemRequest 2023-09-04 21:00:43 +02:00
Robert Paciorek
5dbd28e83c support for mystery boxes and bundles 2023-09-04 20:50:47 +02:00
Robert Paciorek
656f39398f bugfix: not saved achievement rewards
AchievementService Add*/Apply* function do NOT save data to DB
2023-09-04 20:50:47 +02:00
Robert Paciorek
645d1f30ad bugfix: reward DT with correct gender items 2023-09-04 20:50:47 +02:00
Robert Paciorek
82d31853ea stable mission rewards
- implement SetAchievementByEntityIDs endpoint
- add stable achivments to achievementsids.xml (generated from TimedMissionDO.xml)
- remove AddAchievementPointsAndGetReward, AddAchievementPoints now return AchievementReward
- add ApplyPayout to proxy
2023-09-04 20:50:47 +02:00
Spirtix
45a105af2e add Chimeragon snoggletog skin to the store 2023-09-03 19:52:29 +02:00
Robert Paciorek
9508af4199 fix Cogs/Incredible Machines achievement rewards 2023-09-03 19:40:18 +02:00
Robert Paciorek
a5cda2b906 add blueprints to DT rewards 2023-09-03 19:40:18 +02:00
Robert Paciorek
d9e3315d41 bugfixes for mmo info from API server
- fix database exception in GetAllActivePetsByuserId
- fix exception when GetUserProfileByUserID call with invalid userId
2023-09-03 19:39:29 +02:00
Robert Paciorek
391be35a7a fix vikings profile and vist farm on MMO 2023-09-03 19:35:04 +02:00
Robert Paciorek
d122786778 fix error in ProcessRewardedItems on empty request 2023-09-03 19:34:41 +02:00
Spirtix
c6290b3ba7 update gitignore 2023-09-03 12:08:25 +02:00
Spirtix
efb2958124 remove InventoryService from AchievementStore 2023-09-03 12:07:07 +02:00
Robert Paciorek
9949fb5e7d split AchievementService into scoped and singleton 2023-09-02 12:38:18 +02:00
Robert Paciorek
d95a117ef0 use RS_DATA/Content/ in items definition
... instead of http://media.schoolofdragons.com/ to fix some missing UI images ... thanks to Denzaya
2023-09-02 12:38:18 +02:00
Robert Paciorek
626764adb6 add log request on exception 2023-09-02 12:38:18 +02:00
Robert Paciorek
4544c6a3d1 fix crash on reward from DT without player dragon 2023-09-02 12:38:18 +02:00
Robert Paciorek
a1f1ee0e29 bugfix: get/set user pairs from viking apiToken 2023-09-02 12:38:18 +02:00
Robert Paciorek
b5e76d1846 DT reward bugfix + GetUserCurrency function
- bugfix DT rewards:
  - fix selling from reward screen
  - fix showing in inventory without reload
- add InventoryService.SellInventoryItem
- add AchievementService.GetUserCurrency function
2023-09-02 12:38:18 +02:00
Robert Paciorek
c039337430 use VikingSession for DT items API 2023-09-02 12:38:18 +02:00
Robert Paciorek
51c490aad9 unification KeyValuePair KeyValuePairByUserID API (and use VikingSession interface for its) 2023-09-02 12:38:18 +02:00
rpaciorek
e3314ae1f1
Viking session via ActionFilter (#29) 2023-08-31 21:01:55 +02:00
rpaciorek
81e5718e05
foreign keys for table PairData + DragonId column + DB schema improvements (#30)
* DB schema improvements

- add column DragonId to table PairData
- add foreign keys for table PairData
- remove unused column InventoryId from Vikings table
- simplifying relations viking -> selected dragon
  - remove SelectedViking and SelectedVikingId from Dragon
  - remove column SelectedVikingId from Dragons table
- cleanup and arrangement code in DBContext.cs

* support for dragons PairData in KeyValueService

and in "pairs" API endpoints
2023-08-31 20:46:03 +02:00
rpaciorek
7bee6c620a
dragons tactics (battle) backpack (#26)
* return battle item as battle items

placeholder - no saved stats, always use default stats

* Blacksmith API implementation

* ApplyRewards (DT rewards) and AddBattleItems

also temporary disable some AchievementsTask rewards from DT ... probably should not be repeatable ...

* support "box tickets" blueprints

- add OpenBox in ItemService (should be useful for other boxes also)
- move checking item category to ItemService (ItemHasCategory)

* InventoryService and full DragonTactics rewards

- move "add to inventory" to InventoryService
- move creating CommonInventoryData from inventory to InventoryService
- move CreateItemStats() to ItemService
- assigning random "item" reward from DT based on dtrewards.xml (at this moment list of all DT items not listed in store)
- rework dragon XP and add player XP and gems reward to DT
2023-08-31 20:42:03 +02:00
Spirtix
abe674ccf8 add missing endpoint to proxy 2023-08-28 08:45:29 +02:00
rpaciorek
d0eacb75b6
Achievement race condition fix (#28) 2023-08-28 08:35:05 +02:00
Spirtix
e564a44b13 name suggestion bugfix 2023-08-27 22:03:44 +02:00
rpaciorek
665089d5ef
support AchievementTask and AchievementID rewards (#25)
- add task and id reward xml databases
   - thanks to Project Edge community for sniffed network data!
- implement SetAchievementAndGetReward, SetUserAchievementAndGetReward
- partially implement SetUserAchievementTask
- move rewards logic to AchievementService
- show real value of farming and fishing XP
- show UDP points

Co-authored-by: Spirtix <michal.prazak1@gmail.com>
2023-08-23 22:07:08 +02:00
Robert Paciorek
dd9dfa4873 support for farm on old clients
- add support UserItemPositionSetRequest without item (but with UserInventoryCommonID)
2023-08-23 21:57:57 +02:00
Robert Paciorek
2f89f37c93 send membership for old clients 2023-08-23 21:57:57 +02:00
Robert Paciorek
ada1fd5338 support for importer
- XP import interface
- allow overwrite dragon creation date for importer
2023-08-23 21:57:57 +02:00
J. D
99fe6cca02
Implement name suggestions (#24) 2023-08-23 21:56:02 +02:00
Robert Paciorek
d7e62ffbc3 add missing DeleteProfileStatus 2023-08-19 21:19:29 +02:00
rpaciorek
d5fb8ce5f1
viking and user deletion (#19) 2023-08-19 19:16:08 +02:00
J. D
c3bb769934
ContentController.cs: Handle CommonInventoryRequests in CreatePet (#20) 2023-08-18 22:47:37 +02:00
Robert Paciorek
17303d9256 unlock all viking slots (placeholder) 2023-08-16 16:36:18 +02:00
Spirtix
5d62a068ac temporarily disable mmo to fix loading issues 2023-08-15 22:38:52 +02:00
Spirtix
5e6eba3af3 fix null growth state when hatching some dragons 2023-08-15 14:59:47 +02:00
Robert Paciorek
fb582b4c24 fix error and missing xp on dragon ageup
- fix error when GetAchievementsByUserID is called with dragonId instead of userID
- add dragon XP when ageUp by ticket
2023-08-15 08:11:56 +02:00
Spirtix
2a0b62552e inject AchievementService to MissionService 2023-08-14 19:29:33 +02:00
rpaciorek
406ebe20c2
initial support for XP points (#16)
* GetPetAchievementsByUserID and enum for PointTypes

* add RankService

* use AchievementPointTypes for PointTypeID

... insted of int in schema

* support for player XP, fix dragon XP

- database table
- return correct value in API call
- save XP from mission

* rename RankService to AchievementService

* use addAchievementPoints for all non item reward

this could be a good place for wallet servicing too ... so currency reward too

* return const XP value for farming and fishing

we don't have gathering method for those XPs yet

* fix avatar schema, fix coding style
2023-08-14 18:34:14 +02:00