eq.follow() and eq.stop_follow()

This commit is contained in:
KimLS 2013-07-02 14:16:16 -07:00
parent 1868d0e7a3
commit b7fcd5b02a
2 changed files with 19 additions and 1 deletions

View File

@ -1,5 +1,8 @@
EQEMu Changelog (Started on Sept 24, 2003 15:50)
-------------------------------------------------------
== 07/02/2013 ==
KLS: Exported eq.follow(entity_id, [distance]) and eq.stop_follow() to lua.
== 07/01/2013 ==
demonstar55: Fix Monster Summoning related to giants/cyclops
demonstar55: Prevent Monster Summoning from summoning a portal in bothunder

View File

@ -981,6 +981,18 @@ void lua_attack_npc_type(int npc_type) {
quest_manager.attacknpctype(npc_type);
}
void lua_follow(int entity_id) {
quest_manager.follow(entity_id, 10);
}
void lua_follow(int entity_id, int distance) {
quest_manager.follow(entity_id, distance);
}
void lua_stop_follow() {
quest_manager.sfollow();
}
luabind::scope lua_register_general() {
return luabind::namespace_("eq")
[
@ -1132,7 +1144,10 @@ luabind::scope lua_register_general() {
luabind::def("remove_spawn_point", &lua_remove_spawn_point),
luabind::def("attack", &lua_attack),
luabind::def("attack_npc", &lua_attack_npc),
luabind::def("attack_npc_type", &lua_attack_npc_type)
luabind::def("attack_npc_type", &lua_attack_npc_type),
luabind::def("follow", (void(*)(int))&lua_follow),
luabind::def("follow", (void(*)(int,int))&lua_follow),
luabind::def("stop_follow", &lua_stop_follow)
];
}