[Quest API] Add new zone name methods to Perl and Lua. (#1309)

- Add quest::GetZoneShortName(zone_id) to Perl.
- Add quest::GetZoneLongNameByID(zone_id) to Perl.
- Add eq.get_zone_id_by_name(zone_name) to Lua.
- Add eq.get_zone_short_name_by_id(zone_id) to Lua.
- Add eq.get_zone_long_name_by_id(zone_id) to Lua.
- Add eq.get_zone_long_name_by_name(zone_name) to Lua.
This commit is contained in:
Alex
2021-03-28 21:25:50 -04:00
committed by GitHub
parent ba64d6f494
commit 97c11a1199
4 changed files with 65 additions and 3 deletions
+9 -3
View File
@@ -3219,9 +3219,15 @@ int32 QuestManager::GetZoneID(const char *zone) {
std::string QuestManager::GetZoneLongName(std::string zone_short_name)
{
return zone_store.GetZoneLongName(
zone_store.GetZoneID(zone_short_name)
);
return ZoneLongName(ZoneID(zone_short_name));
}
std::string QuestManager::GetZoneLongNameByID(uint32 zone_id) {
return ZoneLongName(zone_id);
}
std::string QuestManager::GetZoneShortName(uint32 zone_id) {
return ZoneName(zone_id);
}
void QuestManager::CrossZoneAssignTaskByCharID(int character_id, uint32 task_id, bool enforce_level_requirement) {