Age | Commit message (Collapse) | Author | Files | Lines |
|
Fix replace statement formatting in storage save function.
|
|
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
Fix a race condition when saving the storage on logout
|
|
The storage data is no longer cached in the char server. This removal
doesn't cause any performance loss, since the cached data was refreshed
(loaded from the database) after every save operation. This commit
moves the load at the beginning of the save rather than at the end, and
discars the cached copy after the save is completed.
Related to #1754
Signed-off-by: Haru <haru@dotalux.com>
|
|
Thanks to @MishimaHaruna for the fix.
|
|
Fix storage saving checks and amount update.
|
|
Special thanks to @MishimaHaruna for the fix.
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
Fix memory leak in storage item vector (Fixes #1751)
|
|
|
|
Dismemberment of `storage_data` from `mmo_charstatus`.
|
|
|
|
Remove loading and saving of storage_data through char.c
Re-declaration of structure storage_data as a vector.
Re-code of portions in the map-server using storage_data.
A new approach is taken by saving the loaded storage data from sql into memory for the duration of the session, thereby removing the need of querying the database to re-load all items everytime a storage save routine is issued from the map-server.
Saving of storage items is done through a new function that significantly reduces the number of queries compared to char_memitemdata_tosql(), and therefore run-time speed. This method potentially reduces the number of update and delete queries from MAX_STORAGE (which could be >= 600) times to literally 1.
Storage items are stored in a dynamically allocated array and handled accordingly.
struct mmo_charstatus size reduces by 34,800 bytes.
Update pc_checkitem() with masks for item checks.
`sd->state.itemcheck` has been changed to `sd->itemcheck` of type `enum pc_checkitem_types`
`battle/items.conf` has been updated to reflect configuration changes.
Further updates to assert a successful reception of storage data in related functions.
|
|
add channel handler events
|
|
Update Exp Table
|
|
|
|
Optimize Uwe Kleine NPC, fix typos and an unintended fallthrough in quests_ein
Uwe Kleine NPC had a lot of repetition, solved by using functions.
There was a case where you'd select the option "About Cooking"
which only displays text when ein_cook % 2 == 1 and ein_cook < 10,
for any other case it would fallthrough to the next option.
Wrong grammar and typos have been corrected as well,
some of them outside of the Uwe Kleine NPC.
|
|
Uwe Kleine NPC had a lot of repetition, solved by using functions.
There was a case where you'd select the option "About Cooking"
which only displays text when ein_cook % 2 == 1 and ein_cook < 10,
for any other case it would fallthrough to the next option.
Wrong grammar and typos have been corrected as well,
some of them outside of the Uwe Kleine NPC.
|
|
Values updated according to:
http://ro.gnjoy.com/news/update/View.asp?seq=162&curpage=1
|
|
Updated *showscript documentation description.
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
Implemented Official Summer 2 Costume
|
|
|
|
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
Cash Foods Update
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
expose the bank vault to the script engine
|
|
|
|
Add packets for most RagexeRE 2016 clients
|
|
Added job checks for @bodystyle command
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
Signed-off-by: Jedzkie <jedzkie13@rocketmail.com>
|
|
Fixes #994
|
|
|
|
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
add permission checking buildins, expose PC permission constants
|
|
allow checkoption et al to check another player
|
|
|
|
Fixes an issue where the unequipped items with options do not re-calculate status.
|
|
|
|
Signed-off-by: HerculesWSAPI <dev@herc.ws>
|
|
Signed-off-by: Haru <haru@dotalux.com>
|
|
This adds some entries from recent and old updates that were missed
when adding the corresponding migrations.
Signed-off-by: Haru <haru@dotalux.com>
|
|
|
|
|
|
add has_permission()
add can_use_command()
expose PC permission constants
|
|
Implemented official Giant Fly Wing Effect
|