diff options
author | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-31 05:37:40 +0000 |
---|---|---|
committer | ultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec> | 2008-07-31 05:37:40 +0000 |
commit | 51680d33aa582128f94a6091fba2e203ebba8faa (patch) | |
tree | e4e3ac63e0cf1b77468f9d593fcc8cc51638cb17 /src/map/clif.c | |
parent | b0931e719ce6db2f887e752b1cf55424857a9a1f (diff) | |
download | hercules-51680d33aa582128f94a6091fba2e203ebba8faa.tar.gz hercules-51680d33aa582128f94a6091fba2e203ebba8faa.tar.bz2 hercules-51680d33aa582128f94a6091fba2e203ebba8faa.tar.xz hercules-51680d33aa582128f94a6091fba2e203ebba8faa.zip |
Removed the mob controller system, now a customization (see topic:194375).
The system consists of
* script command to spawn a controlled mob
* script commands to attach npcs to such mobs and manipulate their AI
* a page of documentation for these commands
* callbacks at various source code locations that invoke the attached npcs
* two npc examples
git-svn-id: https://rathena.svn.sourceforge.net/svnroot/rathena/trunk@13021 54d463be-8e91-2dee-dedb-b68131a5f0ec
Diffstat (limited to 'src/map/clif.c')
-rw-r--r-- | src/map/clif.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/map/clif.c b/src/map/clif.c index 0190eb24e..66e094f5f 100644 --- a/src/map/clif.c +++ b/src/map/clif.c @@ -8200,9 +8200,8 @@ void clif_parse_GlobalMessage(int fd, struct map_session_data* sd) WFIFOSET(fd, WFIFOW(fd,2)); #ifdef PCRE_SUPPORT - // trigger listening mobs/npcs + // trigger listening npcs map_foreachinrange(npc_chat_sub, &sd->bl, AREA_SIZE, BL_NPC, text, textlen, &sd->bl); - map_foreachinrange(mob_chat_sub, &sd->bl, AREA_SIZE, BL_MOB, text, textlen, &sd->bl); #endif // check for special supernovice phrase @@ -8841,8 +8840,7 @@ void clif_parse_NpcClicked(int fd,struct map_session_data *sd) if (!bl) return; switch (bl->type) { case BL_MOB: - if (!((TBL_MOB *)bl)->nd || !mob_script_callback((TBL_MOB *)bl, &sd->bl, CALLBACK_NPCCLICK)) - clif_parse_ActionRequest_sub(sd, 0x07, bl->id, gettick()); + clif_parse_ActionRequest_sub(sd, 0x07, bl->id, gettick()); break; case BL_PC: clif_parse_ActionRequest_sub(sd, 0x07, bl->id, gettick()); |