diff options
author | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-24 23:49:05 +0000 |
---|---|---|
committer | toms <toms@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2006-08-24 23:49:05 +0000 |
commit | d4370c97fdca04e6c1d1fb8223acd08c0b140692 (patch) | |
tree | 778f894bb5e278d6f3958f8ca63e8baa59b6298b /src/map/atcommand.c | |
parent | 1a418b0d54045b0cd7cef6bfee4d43412e6d3889 (diff) | |
download | hercules-d4370c97fdca04e6c1d1fb8223acd08c0b140692.tar.gz hercules-d4370c97fdca04e6c1d1fb8223acd08c0b140692.tar.bz2 hercules-d4370c97fdca04e6c1d1fb8223acd08c0b140692.tar.xz hercules-d4370c97fdca04e6c1d1fb8223acd08c0b140692.zip |
- Cleanup/typo on homunc's code
- Modified @reloadmobdb & @reloadskilldb to reload homunc's db too
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@8476 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 28b096a0f..c4da0af2f 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -5484,6 +5484,7 @@ int atcommand_reloadmobdb( mob_reload();
do_final_pet();
read_petdb();
+ merc_reload();
clif_displaymessage(fd, msg_txt(98)); // Monster database reloaded.
return 0;
@@ -5499,6 +5500,7 @@ int atcommand_reloadskilldb( {
nullpo_retr(-1, sd);
skill_reload();
+ merc_skill_reload();
clif_displaymessage(fd, msg_txt(99)); // Skill database reloaded.
return 0;
@@ -9823,11 +9825,11 @@ atcommand_makehomun( nullpo_retr(-1, sd);
if(sscanf(message, "%d", &homunid)<1)
return -1;
- if( homunid < 6001 || homunid > 6016 )
+ if( homunid < HM_CLASS_BASE || homunid > HM_CLASS_BASE + MAX_HOMUNCULUS_CLASS - 1 )
return -1;
if(sd->status.hom_id == 0)
{
- merc_create_homunculus(sd,homunid);
+ merc_create_homunculus_request(sd,homunid);
}
else
{
|