diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-01-01 14:09:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-01-02 22:17:34 +0300 |
commit | 2b4df46f3962e7eff3b810669b4fcf114a673503 (patch) | |
tree | 9575b8e55dfea0a5acb0ab3dc05a19c9345ea045 /src/map/atcommand.c | |
parent | 3dc29e4a4ecdc2f474223461bd18d5beabcd9994 (diff) | |
download | hercules-2b4df46f3962e7eff3b810669b4fcf114a673503.tar.gz hercules-2b4df46f3962e7eff3b810669b4fcf114a673503.tar.bz2 hercules-2b4df46f3962e7eff3b810669b4fcf114a673503.tar.xz hercules-2b4df46f3962e7eff3b810669b4fcf114a673503.zip |
Add npcdb_checkid to npc interface.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r-- | src/map/atcommand.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/map/atcommand.c b/src/map/atcommand.c index 6f97141b2..5e50a06ee 100644 --- a/src/map/atcommand.c +++ b/src/map/atcommand.c @@ -4591,7 +4591,7 @@ ACMD(disguise) if ((id = atoi(message)) > 0) { //Acquired an ID - if (!mob->db_checkid(id) && !npcdb_checkid(id)) + if (!mob->db_checkid(id) && !npc->db_checkid(id)) id = 0; //Invalid id for either mobs or npcs. } else { //Acquired a Name @@ -4643,7 +4643,7 @@ ACMD(disguiseall) if ((mob_id = mob->db_searchname(message)) == 0) // check name first (to avoid possible name begining by a number) mob_id = atoi(message); - if (!mob->db_checkid(mob_id) && !npcdb_checkid(mob_id)) { //if mob or npc... + if (!mob->db_checkid(mob_id) && !npc->db_checkid(mob_id)) { //if mob or npc... clif->message(fd, msg_txt(123)); // Monster/NPC name/id not found. return false; } @@ -4676,7 +4676,7 @@ ACMD(disguiseguild) } if( (id = atoi(monster)) > 0 ) { - if( !mob->db_checkid(id) && !npcdb_checkid(id) ) + if( !mob->db_checkid(id) && !npc->db_checkid(id) ) id = 0; } else { if( (id = mob->db_searchname(monster)) == 0 ) { |