mirror of
https://github.com/EQEmu/Server.git
synced 2026-09-02 16:46:37 +00:00
[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:
+9
-3
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user