Added eq.attack(client_name) to lua.

This commit is contained in:
KimLS 2013-06-28 16:30:27 -07:00
parent f46f7bd528
commit 7b5b1b2583

View File

@ -969,6 +969,10 @@ void lua_add_spawn_point(luabind::object table) {
}
}
void lua_attack(const char *client_name) {
quest_manager.attack(client_name);
}
luabind::scope lua_register_general() {
return luabind::namespace_("eq")
[
@ -1117,7 +1121,8 @@ luabind::scope lua_register_general() {
luabind::def("remove_area", &lua_remove_area),
luabind::def("clear_areas", &lua_clear_areas),
luabind::def("add_spawn_point", &lua_add_spawn_point),
luabind::def("remove_spawn_point", &lua_remove_spawn_point)
luabind::def("remove_spawn_point", &lua_remove_spawn_point),
luabind::def("attack", &lua_attack)
];
}