HerculesWS / Hercules

Hercules is a collaborative software development project revolving around the creation of a robust massively multiplayer online role playing game (MMORPG) server package. Written in C, the program is very versatile and provides NPCs, warps and modifications. The project is jointly managed by a group of volunteers located around the world as well as a tremendous community providing QA and support. Hercules is a continuation of the original Athena project.
http://herc.ws
GNU General Public License v3.0
903 stars 757 forks source link

Add *getunitparam to obtain values set via unit_parameters_db.conf in scripts #3323

Closed skyleo closed 1 month ago

skyleo commented 2 months ago

Pull Request Prelude

Changes Proposed

Add a new script command named getunitparam to obtain the values set via unit_parameters_db.conf which used to be obtainable via getbattleflag(...)

In relation to: https://github.com/HerculesWS/Hercules/pull/3214

NOTE: The deprecation warning of the deprecated keys for the battle flags, is not shown when using getbattleflag(..), but zero (or the default value) is silently returned instead.

Issues addressed: None