summaryrefslogtreecommitdiff
path: root/src/map/unit.c
diff options
context:
space:
mode:
authorultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-31 05:37:40 +0000
committerultramage <ultramage@54d463be-8e91-2dee-dedb-b68131a5f0ec>2008-07-31 05:37:40 +0000
commit51680d33aa582128f94a6091fba2e203ebba8faa (patch)
treee4e3ac63e0cf1b77468f9d593fcc8cc51638cb17 /src/map/unit.c
parentb0931e719ce6db2f887e752b1cf55424857a9a1f (diff)
downloadhercules-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/unit.c')
-rw-r--r--src/map/unit.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/map/unit.c b/src/map/unit.c
index 4c2ff82b9..e52d60782 100644
--- a/src/map/unit.c
+++ b/src/map/unit.c
@@ -256,8 +256,6 @@ static int unit_walktoxy_timer(int tid, unsigned int tick, int id, intptr data)
else { //Stopped walking. Update to_x and to_y to current location [Skotlex]
ud->to_x = bl->x;
ud->to_y = bl->y;
- if(md && md->nd) // Tell the script engine we've finished walking (for AI pathfinding)
- mob_script_callback(md, NULL, CALLBACK_WALKACK);
}
return 0;
}
@@ -630,11 +628,6 @@ int unit_warp(struct block_list *bl,short m,short x,short y,int type)
clif_spawn(bl);
skill_unit_move(bl,gettick(),1);
- if(bl->type == BL_MOB){
- TBL_MOB *md = (TBL_MOB *)bl;
- if(md->nd) // Tell the script engine we've warped
- mob_script_callback(md, NULL, CALLBACK_WARPACK);
- }
return 0;
}