summaryrefslogtreecommitdiff
path: root/src/map/atcommand.c
diff options
context:
space:
mode:
authorHaruna <haru@dotalux.com>2015-01-05 21:35:48 +0100
committerHaruna <haru@dotalux.com>2015-01-05 21:35:48 +0100
commit095aaf5d3a6b108b59cb98b3c63ad836be65a4ed (patch)
tree4fa98033b59af09377134c77e1500138db078ae5 /src/map/atcommand.c
parent3dc29e4a4ecdc2f474223461bd18d5beabcd9994 (diff)
parent046ed2c6e94bc3016351cadb6f4d792807acb63d (diff)
downloadhercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.tar.gz
hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.tar.bz2
hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.tar.xz
hercules-095aaf5d3a6b108b59cb98b3c63ad836be65a4ed.zip
Merge pull request #433 from 4144/viewdata
Add npcdb_checkid to npc interface.
Diffstat (limited to 'src/map/atcommand.c')
-rw-r--r--src/map/atcommand.c6
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 ) {