Added support for quests to enable and then redisable processing of movement.

This commit is contained in:
Noudess
2020-07-27 10:43:24 -04:00
parent 44a1256eb9
commit 8e7591cd4b
7 changed files with 32 additions and 1 deletions
+5
View File
@@ -389,6 +389,10 @@ void lua_repop_zone() {
quest_manager.repopzone();
}
void lua_process_mobs_while_zone_empty(bool on) {
quest_manager.processmobswhilezoneempty(on);
}
bool lua_is_disc_tome(int item_id) {
return quest_manager.isdisctome(item_id);
}
@@ -2167,6 +2171,7 @@ luabind::scope lua_register_general() {
luabind::def("depop_all", (void(*)(int))&lua_depop_all),
luabind::def("depop_zone", &lua_depop_zone),
luabind::def("repop_zone", &lua_repop_zone),
luabind::def("process_mobs_while_zone_empty", &lua_process_mobs_while_zone_empty),
luabind::def("is_disc_tome", &lua_is_disc_tome),
luabind::def("get_race_name", (std::string(*)(uint16))&lua_get_race_name),
luabind::def("get_spell_name", (std::string(*)(uint32))&lua_get_spell_name),