diff options
author | HoraK-FDF <horak-fdf@web.de> | 2022-11-12 03:45:39 +0100 |
---|---|---|
committer | HoraK-FDF <horak-fdf@web.de> | 2022-11-12 03:45:39 +0100 |
commit | 8770123bbd5a5ee19d1723b0381200dc4c0075a4 (patch) | |
tree | faf5585d9d0fce42dcd55d943b0e2587b3f9ed49 /src | |
parent | 3d254665a7b9ec900f39670bb1fd382d06f2c517 (diff) | |
download | tmwa-8770123bbd5a5ee19d1723b0381200dc4c0075a4.tar.gz tmwa-8770123bbd5a5ee19d1723b0381200dc4c0075a4.tar.bz2 tmwa-8770123bbd5a5ee19d1723b0381200dc4c0075a4.tar.xz tmwa-8770123bbd5a5ee19d1723b0381200dc4c0075a4.zip |
mobinfo add2
Diffstat (limited to 'src')
-rw-r--r-- | src/map/atcommand.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/map/atcommand.cpp b/src/map/atcommand.cpp index 0de297f..b4faed5 100644 --- a/src/map/atcommand.cpp +++ b/src/map/atcommand.cpp @@ -1834,6 +1834,9 @@ ATCE atcommand_mobinfo(Session *s, dumb_ptr<map_session_data> sd, if ((mob_id = wrap<Species>(static_cast<uint16_t>(atoi(name.c_str())))) == Species()) mob_id = mobdb_searchname(name); + else + mob_id = mobdb_checkid(mob_id); + if (mob_id == Species()) return ATCE::EXIST; @@ -5452,7 +5455,7 @@ Map<XString, AtCommandInfo> atcommand_info = 98, atcommand_model, "Change your hairstyle and hair color"_s}}, {"mobinfo"_s, {"<mob-id-or-name>"_s, - 0, atcommand_mobinfo, + 20, atcommand_mobinfo, "Show stats of a monster."_s}}, {"summon"_s, {"<mob-id-or-name>"_s, 50, atcommand_summon, |