mirror of
https://github.com/EQEmu/Server.git
synced 2026-06-20 22:08:22 +00:00
Added some base work for this
This commit is contained in:
@@ -170,6 +170,7 @@ SET(zone_sources
|
||||
zonedb.cpp
|
||||
zone_base_data.cpp
|
||||
zone_event_scheduler.cpp
|
||||
zone_finable_locations.cpp
|
||||
zone_npc_factions.cpp
|
||||
zone_reload.cpp
|
||||
zoning.cpp
|
||||
|
||||
@@ -858,6 +858,9 @@ void Client::CompleteConnect()
|
||||
if (ClientVersion() >= EQ::versions::ClientVersion::SoD)
|
||||
entity_list.SendFindableNPCList(this);
|
||||
|
||||
if (ClientVersion() >= EQ::versions::ClientVersion::RoF2)
|
||||
zone->SendFindableLocations(this);
|
||||
|
||||
if (IsInAGuild()) {
|
||||
if (firstlogon == 1) {
|
||||
guild_mgr.UpdateDbMemberOnline(CharacterID(), true);
|
||||
|
||||
@@ -839,6 +839,7 @@ luabind::scope lua_register_packet_opcodes() {
|
||||
luabind::value("GroupLeaderChange", static_cast<int>(OP_GroupLeaderChange)),
|
||||
luabind::value("GroupLeadershipAAUpdate", static_cast<int>(OP_GroupLeadershipAAUpdate)),
|
||||
luabind::value("GroupRoles", static_cast<int>(OP_GroupRoles)),
|
||||
luabind::value("OP_SendFindableLocations", static_cast<int>(OP_SendFindableLocations)),
|
||||
luabind::value("SendFindableNPCs", static_cast<int>(OP_SendFindableNPCs)),
|
||||
luabind::value("HideCorpse", static_cast<int>(OP_HideCorpse)),
|
||||
luabind::value("TargetBuffs", static_cast<int>(OP_TargetBuffs)),
|
||||
|
||||
@@ -2005,6 +2005,15 @@ void WorldServer::HandleMessage(uint16 opcode, const EQ::Net::Packet &p)
|
||||
|
||||
break;
|
||||
}
|
||||
case ServerOP_ReloadFindableLocations:
|
||||
{
|
||||
if (zone && zone->IsLoaded()) {
|
||||
zone->SendReloadMessage("Findable Locations");
|
||||
zone->ReloadFindableLocations();
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
case ServerOP_ReloadBlockedSpells:
|
||||
{
|
||||
if (zone && zone->IsLoaded()) {
|
||||
|
||||
@@ -1200,6 +1200,7 @@ bool Zone::Init(bool is_static) {
|
||||
LoadNPCEmotes(&npc_emote_list);
|
||||
LoadAlternateAdvancement();
|
||||
LoadBaseData();
|
||||
LoadFindableLocations();
|
||||
LoadMerchants();
|
||||
LoadTempMerchantData();
|
||||
|
||||
|
||||
@@ -454,6 +454,12 @@ public:
|
||||
void LoadBaseData();
|
||||
void ReloadBaseData();
|
||||
|
||||
// Findable Locations
|
||||
void LoadFindableLocations();
|
||||
void ReloadFindableLocations();
|
||||
void ClearFindableLocations();
|
||||
void SendFindableLocations(Client* client = nullptr);
|
||||
|
||||
|
||||
private:
|
||||
bool allow_mercs;
|
||||
@@ -518,6 +524,8 @@ private:
|
||||
|
||||
// Base Data
|
||||
std::vector<BaseDataRepository::BaseData> m_base_data = { };
|
||||
|
||||
// Findable Locations
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
#include "zone.h"
|
||||
|
||||
void Zone::LoadFindableLocations() {
|
||||
}
|
||||
|
||||
void Zone::ReloadFindableLocations() {
|
||||
}
|
||||
|
||||
void Zone::ClearFindableLocations() {
|
||||
}
|
||||
|
||||
void Zone::SendFindableLocations(Client* client) {
|
||||
}
|
||||
Reference in New Issue
Block a user