Commit Graph

185 Commits

Author SHA1 Message Date
Aleos
3a0b3cceef Merge branch 'master' into feature/map_zones 2024-09-20 09:38:17 -04:00
AoShinHo
077f714e05 Converted ZC_SKILLINFO_DELETE to struct (#8595)
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-09-15 02:49:31 +02:00
AoShinHo
61b3f4a34d Converted ZC_USE_SKILL to struct (#8599)
Co-authored-by: Atemo <Atemo@users.noreply.github.com>
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-09-15 01:42:12 +02:00
AoShinHo
70e8518a32 Implemented /resetcooltime (#8613)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-09-14 19:26:49 +02:00
Singe Horizontal
5452ae4038 Enable Log reloading (#8612) 2024-09-10 22:19:47 +02:00
aleos
eacd54bf62 Add missing atcommand reference 2024-09-06 12:25:44 -04:00
AoShinHo
d5267c63a9 Converted ZC_NOTIFY_ACT to struct (#8571)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-08-27 09:59:26 +02:00
AoShinHo
f3c8c70c81 Improved status_isdead and status_get_status_data (#8570)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-08-22 22:36:29 +02:00
Aleos
f0a1847377 Merge branch 'master' into feature/map_zones 2024-06-21 08:59:37 -04:00
Lemongrass3110
34eb4be25b Preparatory cleanup of parties (#8418) 2024-06-12 15:39:24 +02:00
Lemongrass3110
9c9dcc8cab Preparatory cleanup of guilds (#8417) 2024-06-12 14:47:52 +02:00
Daegaladh
6ca99e7852 Fixed potentially dangerous map_addflooritem calls and related behaviors (#8360)
*Removed potentially dangerous map_additemfloor calls
*Added weight/inventory checks for marry atcommand
*Fixed overweight message for box items
*Fixed inventory space check for box items to match official requirement (the total number of the items the box will give you *r min 10, plus 1)
*Fixed inventory space message for box items
*Fixed pet egg creation not deleting the pet data when failed to add it to the inventory
*Fixed pet egg creation dropping the egg on the floor when failed to add it to the inventory
*Fixed pet equipment dropping on the floor when failed to retrieve the item
*Added a battle configuration to prevent removing the pet equipment (and disappear into nothingness) when failed to retrieve the item
*Added missing skill_drop_items_full checks on several skills (official behavior makes the items disappear)
---------

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-06-10 22:44:19 +02:00
Lemongrass3110
48b4623f3e Fixed all warnings in MSVS (#8391)
Fixes #2859
Fixes #3570
Fixes #8389
2024-06-04 03:07:16 +02:00
aleos
2553658eb9 Merge branch 'master' into feature/map_zones 2024-05-31 12:15:40 -04:00
Daegaladh
1f9a43c9d2 Replaces more constant names with the official ones (#8374)
Co-authored-by: Aleos <aleos89@users.noreply.github.com>
2024-05-31 14:51:59 +02:00
Atemo
361530a1b6 Converted some packets to structs (#8351) 2024-05-21 21:28:01 +02:00
Atemo
d1cf6f4ac7 Converted some packets to structs (#8332) 2024-05-20 21:13:59 +02:00
Lemongrass3110
da8229b8f5 Added some suggested code improvements (#8331)
Fixes #8309

Thanks to @mrpond
2024-05-13 17:46:47 +02:00
Jittapan Pluemsumran
d445497870 Converted a bunch of packets to structs (#8295)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-05-09 23:06:32 +02:00
aleos
6ffcedcda8 Merge branch 'master' into feature/map_zones
# Conflicts:
#	conf/msg_conf/map_msg.conf
2024-05-07 12:38:19 -04:00
aleos
477c845027 Clean ups from review
Thanks to @Lemongrass3110!
2024-05-07 12:26:13 -04:00
Banana
fd9b475446 Added a command to reload cash shop db (#3257)
Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2024-05-07 10:08:55 +02:00
aleos
074fdfbd5c Refactor a few functions to use sd lookup 2024-05-03 16:26:42 -04:00
Aleos
849f1ec477 Merge branch 'master' into feature/map_zones 2024-05-03 14:16:05 -04:00
Lemongrass3110
b48948822a Replaced NULL with nullptr (#8298) 2024-05-03 19:38:13 +02:00
aleos
1e4c6ffaab Merge branch 'master' into feature/map_zones 2024-04-16 12:48:27 -04:00
Lemongrass3110
cb42dceb87 Switched most C headers to C++ (#8225) 2024-04-07 22:14:51 +02:00
aleos
f56c45cd50 Revert PvP/GvG atcommands
* Revert atcommand pvpon/pvpoff.
* Revert atcommand gvgon/gvgoff.
2024-01-23 08:45:21 -05:00
aleos
fc3cc3c1c2 Fixes atcommands for PvP and GvG toggle
* Fixes atcommands pvpon, pvpoff, gvgon, and gvgoff to properly toggle the current map with the appropriate zone.
* Atcommand pvpon will assign the MAPTYPE_NOPENALTY_FREEPKZONE zone.
* Atcommand gvgon will assign the MAPTYPE_EVENT_GUILDWAR zone.
* Adds getMapZone() to return a map's zone.
* Adds setZone() to set a map's zone.
Thanks to @Atemo!
2024-01-18 10:22:07 -05:00
aleos
c178f03a26 Convert s_map_zone_data storage to shared_ptr 2024-01-17 16:09:36 -05:00
aleos
e405a39733 Fixes incorrect message display 2024-01-14 11:22:12 -05:00
aleos
6568ccff5d Cleanup atcommand mapinfo
* Adjust checks for faster lookup.
2024-01-14 11:20:48 -05:00
aleos
1e4a219832 Implements mapflag MF_FLEE_PENALTY
* Deprecate the bg_flee_penalty and gvg_flee_penalty battle configs.
* Removes hardcoded restrictions limiting to only BG and GvG maps.
2024-01-14 11:19:33 -05:00
aleos
39f6e1492b Initial implementation of Map Zones
* Implements Map Zones which allows easier configuration of map settings.
* The restricted mapflag has been removed as they will no longer be needed.
* General cleanups and optimizations.
2024-01-12 15:43:52 -05:00
Lemon
7c153416bc Improved randomness (part 1) (#7882)
Faster and with no module bias

Removed rnd_init, rnd_uint32 and rnd_uniform
From now on we will only use rnd_value(min, max) for values in range [min, max] and rnd_chance(chance, base) for chances

Fixes #7881
Fixes #7883
Fixes #7884
Fixes #7885

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2023-12-20 00:12:15 +01:00
AshiHanna
a7f0aab600 Add the stockall command (#8008)
* The command will transfer all items from the cart to the inventory based on the item type.
2023-12-12 08:12:06 -05:00
Vincent Stumpf
833966f47b Convert guild_db to unordered_map (#7612)
* Refactor guild db to STL container

* Split up struct guild and MapGuild/CharGuild
2023-06-16 19:42:55 -07:00
Atemo
aa8f501388 Added atcommand "setcard" (#7804)
Thanks to @aleos89 and @Lemongrass3110 !
2023-06-08 20:08:26 +02:00
Atemo
38d335a267 Added more information for atcommand refine (#7803) 2023-06-08 14:01:43 +02:00
Aleos
5b832de199 Minor cleanup to mapflags (#7782)
* Adds missing documentation for mf_norodex.
* Updates atcommand mapflag to display information on some missing mapflags.
* Removes "Other Flags2" and combine list with "Other Flags" for atcommand mapflag.
2023-06-07 10:11:32 -04:00
Vincent Stumpf
08a1c41d1b Refactor MapFlag accessors (#7783)
Use methods instead of direct member access.
2023-06-03 17:38:29 -07:00
Pokye
9907721a69 Added a mapflag to block BANK (#7773) 2023-05-22 12:23:46 -04:00
Vincent Stumpf
7dd6eb5182 Add other player in mail transactions (#7568)
* Add other player's char_id in mail transactions

Thanks to @tokeiburu

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2023-03-14 02:30:23 -07:00
Vincent Stumpf
8f4a1d2932 Remove relative includes for 3rdparty imports (#7609)
This also changes the imports for config, custom to use the src include path
2023-03-07 16:21:28 -08:00
Aleos
240f71cbce Converts Homunculus Database to YAML (#4659)
* Converts the Homunculus Database and Homunculus Skill Tree Database into one YAML flat file.
* General cleanups and optimizations.
* Includes CSV2YAML converter.
Thanks to @Lemongrass3110 and @Atemo!
Co-authored-by: Atemo <capucrath@gmail.com>
2023-02-15 14:42:51 -05:00
Vincent Stumpf
e235c9cab4 Change common and config includes to use <> (#7596) 2023-02-12 12:46:06 -08:00
Lemon
7e62670882 Improved itemlink logic (#7532)
Fixed tags and separators for various packet versions.

If itemlink is disabled it will output the item name with the refine as prefix and the slots as suffix (if equipment)
It will also append [0] if the item is an equipment and has 0 slots (to make it easier to tell from non-equipment items)

Disabled feature on packet versions older than 2015-11-04 until proven otherwise

Fixes #7441

Co-authored-by: Lemongrass3110 <lemongrass@kstp.at>
2023-01-23 10:49:18 +01:00
Lemongrass3110
14cb61d598 Removed mapindex from char-server (#7533)
Converted last_point to mapname
Converted save_point to mapname
Converted memo to mapname
Converted start point to mapname
Removed default map
Converted party member to mapname
Converted maplists to mapname
Removed mapindex loading
Fixed instance loading with multiple map-servers
Fixed castle loading with multiple map-servers
Fixed battleground loading with multiple map-servers
Fixed warping between map-servers

Thanks to @aleos89 for his help!
2023-01-11 16:54:53 +01:00
Lemongrass3110
c9aaf540bf Added reloadbarterdb (#7530)
Fixes #7520

Thanks to @attackjom
2023-01-06 00:23:25 +01:00
Lemongrass3110
2c4ee64b59 Start refactoring the core to C++ (#7303) 2022-12-20 23:37:31 +01:00