[Commands] Cleanup #ai Command. (#1980)

- Cleanup messages and logic.
- Remove #ai start/#ai stop as they can crash zones and are mostly useless.
- Add EQ::constants::GetConsiderLevelMap() and EQ::constants::GetConsiderLevelName().
- Add quest::getconsiderlevelname(consider_level) to Perl.
- Add eq.get_consider_level_name(consider_level) to Lua.
This commit is contained in:
Kinglykrab
2022-02-11 16:26:08 -05:00
committed by GitHub
parent 99793cab8b
commit d2d7b8108d
7 changed files with 310 additions and 118 deletions
+5
View File
@@ -3367,6 +3367,10 @@ std::string lua_get_body_type_name(uint32 bodytype_id) {
return quest_manager.getbodytypename(bodytype_id);
}
std::string lua_get_consider_level_name(uint8 consider_level) {
return quest_manager.getconsiderlevelname(consider_level);
}
std::string lua_get_environmental_damage_name(uint8 damage_type) {
return quest_manager.getenvironmentaldamagename(damage_type);
}
@@ -3818,6 +3822,7 @@ luabind::scope lua_register_general() {
luabind::def("get_faction_name", &lua_get_faction_name),
luabind::def("get_language_name", &lua_get_language_name),
luabind::def("get_body_type_name", &lua_get_body_type_name),
luabind::def("get_consider_level_name", &lua_get_consider_level_name),
luabind::def("get_environmental_damage_name", &lua_get_environmental_damage_name),
/*